source: trunk/make/setup.os2relmscv6.mk@ 8334

Last change on this file since 8334 was 8334, checked in by bird, 23 years ago

Build level. optional C/C++ flags.

File size: 3.4 KB
Line 
1# $Id: setup.os2relmscv6.mk,v 1.5 2002-04-30 06:20:04 bird Exp $
2
3# ---OS2, RELEASE, MSCV6-------------------------
4ENV_NAME="OS/2, Debug, Microsoft C v6.0a"
5ENV_STATUS=OK
6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 mscv6
8!else
9ENV_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#
22AR=ilib.exe
23CC=cl.exe
24CXX=false
25LINK=ilink.exe
26IMPLIB=implib.exe
27RC=rc.exe
28RL=rc.exe
29EXEPACK=lxlite.exe
30
31
32#
33# The flags
34#
35AR_FLAGS=/nologo /noignorecase
36AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
37_AR_LNK1= "$(TARGET_OBJS: ="&^
38")"
39AR_LNK1= $(_AR_LNK1:""=)
40AR_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)
74CC_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
103CC_FLAGS=/nologo /c /DDEBUG /DOS2 /W0 $(CC_SEGS) /G2s /Ogeitln $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES) $(ALL_INCLUDES) /I$(PATH_INCLUDES)
104CC_FLAGS_EXE=$(CC_FLAGS)
105CC_FLAGS_DLL=$(CC_FLAGS)
106CC_FLAGS_CRT=$(CC_FLAGS)
107CC_FLAGS_SYS=$(CC_FLAGS) /DRING0
108CC_FLAGS_IFS=$(CC_FLAGS_SYS)
109CC_OBJ_OUT=/Fo
110CC_LST_OUT=/Fa
111CC_PC_2_STDOUT=/P /E
112
113CXX_FLAGS=
114CXX_FLAGS_EXE=
115CXX_FLAGS_DLL=
116CXX_FLAGS_CRT=
117CXX_FLAGS_SYS=
118CXX_FLAGS_IFS=
119CXX_OBJ_OUT=
120CXX_LST_OUT=
121CXX_PC_2_STDOUT=
122
123IMPLIB_FLAGS=/NOI /Nologo
124
125LINK_FLAGS=/nofree /nologo /map /NOE /NOD /PACKCODE /PACKDATA /EXEPACK:2 /LINENUMBERS /NODEBUG
126LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /BASE:0x10000 /STACK:$(TARGET_STACKSIZE)
127LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
128LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16 /NOIgnorecase
129LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16 /NOIgnorecase
130LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
131LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
132LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
133LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
134LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
135LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
136LINK_LNK1=$(TARGET_OBJS: =+^
137),
138LINK_LNK2=$(TARGET),
139LINK_LNK3=$(TARGET_MAP),
140LINK_LNK4=$(TARGET_LIBS: =+^
141),
142LINK_LNK5=$(TARGET_DEF_LINK)
143
144RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
145RL_FLAGS=-x2 -n
146
147
148#
149# Libraries and object files.
150#
151LIB_OS = os2286.lib
152LIB_C_OBJ = clibcep.lib
153LIB_C_DLL = clibcep.lib
154LIB_C_RTDLL = clibcep.lib
155LIB_C_NRE =
156LIB_C_DMNGL =
157OBJ_PROFILE =
158
159# ---OS2, RELEASE, MSCV6-------------------------
160
161
Note: See TracBrowser for help on using the repository browser.