KD System Rewrite:
[reactos.git] / reactos / rules.mak
index b490f75..f6ffdf5 100644 (file)
@@ -35,9 +35,13 @@ export MAKE := @$(MAKE)
 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)
+export HOST=mingw32-windows
+else
+export HOST=mingw32-linux
+endif
 endif
 
 # Default to building map files which includes source and asm code
@@ -162,6 +166,8 @@ export CDMAKE = $(Q)$(TOOLS_PATH)/cdmake/cdmake
 export BIN2RES = $(Q)$(TOOLS_PATH)/bin2res/bin2res
 export XSLTPROC = $(Q)xsltproc
 export MS2PS = $(Q)$(TOOLS_PATH)/ms2ps/ms2ps
+export WRC = $(Q)$(TOOLS_PATH)/wrc/wrc
+export WIDL = $(Q)$(TOOLS_PATH)/widl/widl
 
 export STD_CFLAGS = -I$(PATH_TO_TOP)/include -I$(W32API_PATH)/include -pipe -march=$(OARCH) -D_M_IX86
 export STD_CPPFLAGS = $(STD_CFLAGS)