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