-
Notifications
You must be signed in to change notification settings - Fork 34
/
wcedefs.mak
76 lines (73 loc) · 2.23 KB
/
wcedefs.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Set WCEVERSION and WCELDVERSION
!IF "$(OSVERSION)"=="WCE200"
WCEVERSION=200
WCELDVERSION=2.00
!ELSEIF "$(OSVERSION)"=="WCE201"
WCEVERSION=201
WCELDVERSION=2.01
!ELSEIF "$(OSVERSION)"=="WCE210"
WCEVERSION=210
WCELDVERSION=2.10
!ELSEIF "$(OSVERSION)"=="WCE211"
WCEVERSION=211
WCELDVERSION=2.11
!ELSEIF "$(OSVERSION)"=="WCE212"
WCEVERSION=212
WCELDVERSION=2.12
!ELSEIF "$(OSVERSION)"=="WCE300"
WCEVERSION=300
WCELDVERSION=3.00
!ELSEIF "$(OSVERSION)"=="WCE420"
WCEVERSION=420
WCELDVERSION=4.20
!ELSE
!ERROR Unexpected OSVERSION environment variable value
!ENDIF
# Set WCEPLATFORM to PLATFORM, with spaces replaced with underscores, and uppercased
!IF "$(PLATFORM)"=="MS HPC"
WCEPLATFORM=MS_HPC
!ELSEIF "$(PLATFORM)"=="MS HPC Pro"
WCEPLATFORM=MS_HPC_PRO
!ELSEIF "$(PLATFORM)"=="ms palm size pc"
WCEPLATFORM=MS_PALM_SIZE_PC
!ELSEIF "$(PLATFORM)"=="ms pocket pc"
WCEPLATFORM=MS_POCKET_PC_2000
!ELSEIF "$(PLATFORM)"=="Pocket PC 2002"
WCEPLATFORM=MS_POCKET_PC_2002
!ELSEIF "$(PLATFORM)"=="POCKET PC 2003"
WCEPLATFORM=MS_POCKET_PC_2003
!ENDIF
# Set WCETARGETCPU, WCETARGETCPUDEFS and WCETARGETDEFS
WCETARGETDEFS=-DWCEPLATFORM=$(WCEPLATFORM)
!IF "$(TARGETCPU)"=="X86"
WCETARGETCPU=X86
WCETARGETCPUDEFS=-Dx86 -D_X86_
WCELDFLAGS=/nodefaultlib:oldnames.lib coredll.lib corelibc.lib
!ELSEIF "$(TARGETCPU)"=="X86EM" || "$(TARGETCPU)"=="X86EMnset CFG=none"
WCETARGETCPU=X86
WCETARGETCPUDEFS=-Dx86 -D_X86_
WCETARGETDEFS=$(WCETARGETDEFS) -D_WIN32_WCE_EMULATION
!ELSEIF "$(TARGETCPU)"=="SH3"
WCETARGETCPU=$(TARGETCPU)
WCETARGETCPUDEFS=-DSH3 -D_SH3_ -DSHx
!ELSEIF "$(TARGETCPU)"=="SH4"
WCETARGETCPU=$(TARGETCPU)
WCETARGETCPUDEFS=-DSH4 -D_SH4_ -DSHx
!ELSEIF "$(TARGETCPU)"=="R4100" || "$(TARGETCPU)"=="R4111" || "$(TARGETCPU)"=="R4300"
WCETARGETCPU=$(TARGETCPU)
WCETARGETCPUDEFS=-DMIPS -D_MIPS_ -DMIPS_R4000
!ELSEIF "$(TARGETCPU)"=="ARMV4" || "$(TARGETCPU)"=="ARMV4T" || "$(TARGETCPU)"=="ARMV4I"
WCETARGETCPU=ARM
WCETARGETCPUDEFS=-DARM -D_ARM_ -D_M_ARM -D$(TARGETCPU) -D_$(TARGETCPU)_
WCECC=clarm
!ELSE
WCETARGETCPU=$(TARGETCPU)
WCETARGETCPUDEFS=-D$(TARGETCPU) -D_$(TARGETCPU)_
!ENDIF
WCETARGETDEFS=$(WCETARGETDEFS) $(WCETARGETCPUDEFS) -DUNDER_CE=$(WCEVERSION) -D_WIN32_CE=$(WCEVERSION)
# Set CPU type for link
!IF "$(WCETARGETCPU)"=="X86"
WCELDMACHINE=IX86
!ELSE
WCELDMACHINE=$(WCETARGETCPU)
!ENDIF