-export VERBOSE = yes
-export BUILD_MAP = yes
-export BUILD_SYM = no
-
# Default to half-verbose mode
ifeq ($(VERBOSE),no)
Q = @
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
+export HOST=mingw32-linux
+endif
endif
# Default to building map files which includes source and asm code