1# Time-stamp: <04/04/30 23:36:48 ptr> 2# $Id$ 3 4!if "$(TARGET_PROC)" == "" 5!error No target processor configured! Please rerun configure.bat! 6!endif 7 8!if "$(CC)" == "" 9!error CC not set, run the proper WCE*.bat from this shell to set it! 10!endif 11 12# All the batchfiles to setup the environment yield different 13# compilers which they put into CC. 14CXX = $(CC) 15 16DEFS_COMMON = $(DEFS_COMMON) /D _WIN32_WCE=$(CEVERSION) /D UNDER_CE=$(CEVERSION) /D "UNICODE" 17LDFLAGS_COMMON = $(LDFLAGS_COMMON) coredll.lib corelibc.lib /nodefaultlib:LIBC.lib /nodefaultlib:"oldnames.lib" 18LDFLAGS_COMMON = $(LDFLAGS_COMMON) /stack:0x10000,0x1000 /subsystem:WINDOWSCE /align:"4096" 19 20# increase compiler memory in order to compile deeply nested template code 21OPT_STLDBG = $(OPT_STLDBG) /Zm800 22OPT_STATIC_STLDBG = $(OPT_STATIC_STLDBG) /Zm800 23 24# activate global (whole program) optimizations 25OPT_REL = $(OPT_REL) /Og 26OPT_STATIC_REL = $(OPT_STATIC_REL) /Og 27 28# ARM specific settings 29!if "$(TARGET_PROC)" == "arm" 30DEFS_COMMON = $(DEFS_COMMON) /D "ARM" /D "_ARM_" 31OPT_COMMON = $(OPT_COMMON) 32LDFLAGS_COMMON = $(LDFLAGS_COMMON) /MACHINE:ARM 33!endif 34 35# x86 specific settings 36!if "$(TARGET_PROC)" == "x86" 37DEFS_COMMON = $(DEFS_COMMON) /D "x86" /D "_X86_" 38OPT_COMMON = $(OPT_COMMON) 39!if "$(TARGET_PROC_SUBTYPE)" == "emulator" 40DEFS_COMMON = $(DEFS_COMMON) /D "_STLP_WCE_TARGET_PROC_SUBTYPE_EMULATOR" 41!endif 42LDFLAGS_COMMON = $(LDFLAGS_COMMON) /MACHINE:X86 $(CEx86Corelibc) 43!endif 44 45# MIPS specific settings 46!if "$(TARGET_PROC)" == "mips" 47DEFS_COMMON = $(DEFS_COMMON) /D "_MIPS_" /D "MIPS" /D "$(TARGET_PROC_SUBTYPE)" 48OPT_COMMON = $(OPT_COMMON) 49LDFLAGS_COMMON = $(LDFLAGS_COMMON) /MACHINE:MIPS 50!endif 51 52# SH3 specific settings 53!if "$(TARGET_PROC)" == "sh3" 54DEFS_COMMON = $(DEFS_COMMON) /D "SH3" /D "_SH3_" /D "SHx" 55OPT_COMMON = $(OPT_COMMON) 56LDFLAGS_COMMON = $(LDFLAGS_COMMON) /MACHINE:SH3 57!endif 58 59# SH4 specific settings 60!if "$(TARGET_PROC)" == "sh4" 61DEFS_COMMON = $(DEFS_COMMON) /D "SH4" /D "_SH4_" /D "SHx" 62OPT_COMMON = $(OPT_COMMON) /Qsh4 63LDFLAGS_COMMON = $(LDFLAGS_COMMON) /MACHINE:SH4 64!endif 65 66 67# without exceptions 68CFLAGS_COMMON = /nologo /TC /W4 /GF 69CFLAGS_REL = $(CFLAGS_COMMON) $(OPT_REL) 70CFLAGS_STATIC_REL = $(CFLAGS_COMMON) $(OPT_STATIC_REL) 71CFLAGS_DBG = $(CFLAGS_COMMON) $(OPT_DBG) 72CFLAGS_STATIC_DBG = $(CFLAGS_COMMON) $(OPT_STATIC_DBG) 73CFLAGS_STLDBG = $(CFLAGS_COMMON) $(OPT_STLDBG) 74CFLAGS_STATIC_STLDBG = $(CFLAGS_COMMON) $(OPT_STATIC_STLDBG) 75CXXFLAGS_COMMON = /nologo /TP /W4 /GF 76CXXFLAGS_REL = $(CXXFLAGS_COMMON) $(OPT_REL) 77CXXFLAGS_STATIC_REL = $(CXXFLAGS_COMMON) $(OPT_STATIC_REL) 78CXXFLAGS_DBG = $(CXXFLAGS_COMMON) $(OPT_DBG) 79CXXFLAGS_STATIC_DBG = $(CXXFLAGS_COMMON) $(OPT_STATIC_DBG) 80CXXFLAGS_STLDBG = $(CXXFLAGS_COMMON) $(OPT_STLDBG) 81CXXFLAGS_STATIC_STLDBG = $(CXXFLAGS_COMMON) $(OPT_STATIC_STLDBG) 82 83!include evc-common.mak