1 | # $Id: setup.os2relmscv6.mk,v 1.5 2002-04-30 06:20:04 bird Exp $
|
---|
2 |
|
---|
3 | # ---OS2, RELEASE, MSCV6-------------------------
|
---|
4 | ENV_NAME="OS/2, Debug, Microsoft C v6.0a"
|
---|
5 | ENV_STATUS=OK
|
---|
6 | !if "$(ENV_ENVS)" == ""
|
---|
7 | ENV_ENVS=vac308 mscv6
|
---|
8 | !else
|
---|
9 | ENV_ENVS_FORCE=vac308 mscv6
|
---|
10 | !endif
|
---|
11 |
|
---|
12 |
|
---|
13 | #
|
---|
14 | # Include some shared standard stuff: ALP.
|
---|
15 | #
|
---|
16 | !include $(PATH_MAKE)\setup.os2relalp.mk
|
---|
17 |
|
---|
18 |
|
---|
19 | #
|
---|
20 | # The tools
|
---|
21 | #
|
---|
22 | AR=ilib.exe
|
---|
23 | CC=cl.exe
|
---|
24 | CXX=false
|
---|
25 | LINK=ilink.exe
|
---|
26 | IMPLIB=implib.exe
|
---|
27 | RC=rc.exe
|
---|
28 | RL=rc.exe
|
---|
29 | EXEPACK=lxlite.exe
|
---|
30 |
|
---|
31 |
|
---|
32 | #
|
---|
33 | # The flags
|
---|
34 | #
|
---|
35 | AR_FLAGS=/nologo /noignorecase
|
---|
36 | AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
|
---|
37 | _AR_LNK1= "$(TARGET_OBJS: ="&^
|
---|
38 | ")"
|
---|
39 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
40 | AR_LNK2= $(@R).lst
|
---|
41 |
|
---|
42 | #
|
---|
43 | # C Compiler flags.
|
---|
44 | #
|
---|
45 | _CC_SEG_TEXT =
|
---|
46 | _CC_SEG_DATA =
|
---|
47 | _CC_SEG_XCPT =
|
---|
48 | _CC_DEFAULT_LIBS = /Zl
|
---|
49 | _CC_PACK = /Zp
|
---|
50 | _CC_MODEL = /Asfw
|
---|
51 |
|
---|
52 | !ifdef ALL_SEG_TEXT
|
---|
53 | _CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
|
---|
54 | !endif
|
---|
55 | !ifdef CC_SEG_TEXT
|
---|
56 | _CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
|
---|
57 | !endif
|
---|
58 | !ifdef ALL_SEG_DATA
|
---|
59 | _CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
|
---|
60 | !endif
|
---|
61 | !ifdef CC_SEG_DATA
|
---|
62 | _CC_SEG_DATA=/ND$(CC_SEG_TEXT)
|
---|
63 | !endif
|
---|
64 | !if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
|
---|
65 | _CC_DEFAULT_LIBS =
|
---|
66 | !endif
|
---|
67 | !ifdef ALL_PACK
|
---|
68 | _CC_PACK = /Zp$(ALL_PACK)
|
---|
69 | !endif
|
---|
70 | !ifdef CC_PACK
|
---|
71 | _CC_PACK = /Zp$(CC_PACK)
|
---|
72 | !endif
|
---|
73 | !if !defined(CC_MODEL) && defined(ALL_MODEL)
|
---|
74 | CC_MODEL = $(ALL_MODEL)
|
---|
75 | !endif
|
---|
76 | !ifdef CC_MODEL
|
---|
77 | _CC_MODEL =
|
---|
78 | !endif
|
---|
79 | !if "$(CC_MODEL)" == "TINY"
|
---|
80 | _CC_MODEL = /AT
|
---|
81 | !endif
|
---|
82 | !if "$(CC_MODEL)" == "SMALL"
|
---|
83 | _CC_MODEL = /AS
|
---|
84 | !endif
|
---|
85 | !if "$(CC_MODEL)" == "COMPACT"
|
---|
86 | _CC_MODEL = /AC
|
---|
87 | !endif
|
---|
88 | !if "$(CC_MODEL)" == "MEDIUM"
|
---|
89 | _CC_MODEL = /AM
|
---|
90 | !endif
|
---|
91 | !if "$(CC_MODEL)" == "LARGE"
|
---|
92 | _CC_MODEL = /AL
|
---|
93 | !endif
|
---|
94 | !if "$(CC_MODEL)" == "HUGE"
|
---|
95 | _CC_MODEL = /AH
|
---|
96 | !endif
|
---|
97 | !if "$(_CC_MODEL)" == ""
|
---|
98 | ! error Invalid MODEL. CC_MODEL=$(CC_MODEL)
|
---|
99 | !endif
|
---|
100 |
|
---|
101 | _CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
|
---|
102 |
|
---|
103 | CC_FLAGS=/nologo /c /DDEBUG /DOS2 /W0 $(CC_SEGS) /G2s /Ogeitln $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES) $(ALL_INCLUDES) /I$(PATH_INCLUDES)
|
---|
104 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
105 | CC_FLAGS_DLL=$(CC_FLAGS)
|
---|
106 | CC_FLAGS_CRT=$(CC_FLAGS)
|
---|
107 | CC_FLAGS_SYS=$(CC_FLAGS) /DRING0
|
---|
108 | CC_FLAGS_IFS=$(CC_FLAGS_SYS)
|
---|
109 | CC_OBJ_OUT=/Fo
|
---|
110 | CC_LST_OUT=/Fa
|
---|
111 | CC_PC_2_STDOUT=/P /E
|
---|
112 |
|
---|
113 | CXX_FLAGS=
|
---|
114 | CXX_FLAGS_EXE=
|
---|
115 | CXX_FLAGS_DLL=
|
---|
116 | CXX_FLAGS_CRT=
|
---|
117 | CXX_FLAGS_SYS=
|
---|
118 | CXX_FLAGS_IFS=
|
---|
119 | CXX_OBJ_OUT=
|
---|
120 | CXX_LST_OUT=
|
---|
121 | CXX_PC_2_STDOUT=
|
---|
122 |
|
---|
123 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
124 |
|
---|
125 | LINK_FLAGS=/nofree /nologo /map /NOE /NOD /PACKCODE /PACKDATA /EXEPACK:2 /LINENUMBERS /NODEBUG
|
---|
126 | LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /BASE:0x10000 /STACK:$(TARGET_STACKSIZE)
|
---|
127 | LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
|
---|
128 | LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16 /NOIgnorecase
|
---|
129 | LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16 /NOIgnorecase
|
---|
130 | LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
|
---|
131 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
132 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
133 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
134 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
|
---|
135 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
136 | LINK_LNK1=$(TARGET_OBJS: =+^
|
---|
137 | ),
|
---|
138 | LINK_LNK2=$(TARGET),
|
---|
139 | LINK_LNK3=$(TARGET_MAP),
|
---|
140 | LINK_LNK4=$(TARGET_LIBS: =+^
|
---|
141 | ),
|
---|
142 | LINK_LNK5=$(TARGET_DEF_LINK)
|
---|
143 |
|
---|
144 | RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
|
---|
145 | RL_FLAGS=-x2 -n
|
---|
146 |
|
---|
147 |
|
---|
148 | #
|
---|
149 | # Libraries and object files.
|
---|
150 | #
|
---|
151 | LIB_OS = os2286.lib
|
---|
152 | LIB_C_OBJ = clibcep.lib
|
---|
153 | LIB_C_DLL = clibcep.lib
|
---|
154 | LIB_C_RTDLL = clibcep.lib
|
---|
155 | LIB_C_NRE =
|
---|
156 | LIB_C_DMNGL =
|
---|
157 | OBJ_PROFILE =
|
---|
158 |
|
---|
159 | # ---OS2, RELEASE, MSCV6-------------------------
|
---|
160 |
|
---|
161 |
|
---|