-# Default to verbose mode
+# Default to half-verbose mode
ifeq ($(VERBOSE),no)
Q = @
+ HALFVERBOSEECHO = @:
+ # Do not print "Entering directory ..."
+ export MAKEFLAGS += --no-print-directory
+ # Be silent
+ export MAKEFLAGS += --silent
else
+ifeq ($(VERBOSE),yes)
Q =
+ HALFVERBOSEECHO = @:
+else
+ Q = @
+ # the following is a hack to get the target name for wine dlls
+ # it's disabled because it produces warnings about overriden rules for author.c
+ #ifeq ($(TARGET_TYPE),winedll)
+ # export TOOLS_PATH = $(PATH_TO_TOP)/tools
+ # -include Makefile.ros
+ #endif
+ ifeq ($(TARGET_NAME),)
+ HALFVERBOSEECHO = @echo
+ else
+ HALFVERBOSEECHO = @echo $(TARGET_NAME):
+ endif
+ # Do not print "Entering directory ..."
+ export MAKEFLAGS += --no-print-directory
+ # Be silent
+ export MAKEFLAGS += --silent
+endif
endif
export MAKE := @$(MAKE)
ifeq ($(VERBOSE),no)
-# Do not print "Entering directory ..."
-export MAKEFLAGS += --no-print-directory
-# Be silent
-export MAKEFLAGS += --silent
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
-ifeq ($(FULL_MAP),)
-export FULL_MAP = yes
+# Other options are: yes
+ifeq ($(BUILD_MAP),)
+export BUILD_MAP = full
+endif
+
+# Default to dumping .sym files out of .nostrip files
+ifeq ($(BUILD_SYM),)
+export BUILD_SYM = yes
endif
# Default to minimal dependencies, making components not
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)
export OS2_PATH_INC=$(OS2_PATH)/include
# Other systems integration
-export ROOT_PATH=$(PATH_TO_TOP)/..
+export REGTESTS_PATH=$(PATH_TO_TOP)/regtests
export REGTESTS_PATH_INC=$(PATH_TO_TOP)/regtests/shared