detect windows instead of assuming it
Modified: trunk/reactos/rules.mak
--- trunk/reactos/rules.mak 2005-03-12 04:14:09 UTC (rev 13952) +++ trunk/reactos/rules.mak 2005-03-12 04:20:35 UTC (rev 13953) @@ -35,10 +35,14 @@
ifeq ($(VERBOSE),no) endif
-# Windows is default host environment
+# detect Windows host environment
ifeq ($(HOST),)
-export HOST = mingw32-windows
+ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32) +HOST=mingw32-windows +else +HOST=mingw32-linux
endif
+endif
# Default to building map files which includes source and asm code # Other options are: yes