svn path=/branches/xmlbuildsystem/; revision=13952
+.PHONY: all
+.PHONY: clean
+all: makefile.auto
+
+ifeq ($(HOST),)
+OSDETECT=$(word 1,$(shell gcc -dumpmachine))
+
+all: detect_os
+
+detect_os:
+ifeq ($(OSDETECT),mingw32)
+ HOST=mingw32-windows
+else
+ HOST=mingw32-linux
+endif
+endif
+
# Default to half-verbose mode
ifeq ($(VERBOSE),no)
Q = @
NUL = NUL
endif
-.PHONY: all
-.PHONY: clean
-
-all: makefile.auto
-
ifneq ($(ROS_INTERMEDIATE),)
$(ROS_INTERMEDIATE)tools: $(ROS_INTERMEDIATE)
${nmkdir} $(ROS_INTERMEDIATE)tools
-MAKEFLAGS += --no-print-directory --silent\r
+MAKEFLAGS += --no-print-directory\r
\r
$(DEFAULT):\r
@$(MAKE) -C $(TOP) $(DEFAULT)\r