source: trunk/make/setup.os2debmscv6.mk@ 8423

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

Merged in latest changes.

File size: 3.3 KB
Line 
1# $Id: setup.os2debmscv6.mk,v 1.8 2002-05-16 11:37:01 bird Exp $
2
3# ---OS2, DEBUG, MSCV6-------------------------
4ENV_NAME="OS/2, Debug, Microsoft C v6.0a 32-bit"
5ENV_STATUS=OK
6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 mscv6
8!else
9ENV_ENVS_FORCE=vac308 mscv6
10!endif
11!undef ENV_16BIT
12
13
14#
15# Include some shared standard stuff: ALP.
16#
17!include $(PATH_MAKE)\setup.os2debalp.mk
18
19
20#
21# The tools
22#
23AR=ilib.exe
24CC=cl386.exe
25CXX=false
26LINK=ilink.exe
27IMPLIB=implib.exe
28RC=rc.exe
29RL=rc.exe
30EXEPACK=lxlite.exe
31
32
33#
34# The flags
35#
36AR_FLAGS=/nologo /noignorecase
37AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
38_AR_LNK1= "$(TARGET_OBJS: ="&^
39")"
40AR_LNK1= $(_AR_LNK1:""=)
41AR_LNK2= $(@R).lst
42
43
44#
45# C Compiler flags.
46#
47_CC_SEG_TEXT =
48_CC_SEG_DATA =
49_CC_SEG_XCPT =
50_CC_DEFAULT_LIBS = /Zl
51_CC_PACK = /Zp
52_CC_MODEL =
53
54!ifdef ALL_SEG_TEXT
55_CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
56!endif
57!ifdef CC_SEG_TEXT
58_CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
59!endif
60!ifdef ALL_SEG_DATA
61_CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
62!endif
63!ifdef CC_SEG_DATA
64_CC_SEG_DATA=/ND$(CC_SEG_TEXT)
65!endif
66!if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
67_CC_DEFAULT_LIBS =
68!endif
69!ifdef ALL_PACK
70_CC_PACK = /Zp$(ALL_PACK)
71!endif
72!ifdef CC_PACK
73_CC_PACK = /Zp$(CC_PACK)
74!endif
75!if defined(CXX_MODEL) || defined(ALL_MODEL)
76! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
77! endif
78!endif
79
80_CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
81
82CC_FLAGS=/nologo /c /DDEBUG /DOS2 /D__32BIT__ /D__i386__ /W0 /G3 /Zi $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES) $(ALL_INCLUDES) /I$(PATH_INCLUDES)
83CC_FLAGS_EXE=$(CC_FLAGS)
84CC_FLAGS_DLL=$(CC_FLAGS)
85CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs /Owis
86CC_FLAGS_IFS=$(CC_FLAGS_SYS)
87CC_OBJ_OUT=/Fo
88CC_LST_OUT=/Fl
89CC_PC_2_STDOUT=/P /C /E
90
91CXX_FLAGS=
92CXX_FLAGS_EXE=
93CXX_FLAGS_DLL=
94CXX_FLAGS_SYS=
95CXX_FLAGS_IFS=
96CXX_OBJ_OUT=
97CXX_LST_OUT=
98CXX_PC_2_STDOUT=
99
100!if "$(CC_AS_CXX)" != ""
101! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX is not supported by this compiler!$(CLRRST)]
102! endif
103! error
104!endif
105!if "$(CXX_AS_CC)" != ""
106! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
107! endif
108! error
109!endif
110
111IMPLIB_FLAGS=/NOI /Nologo
112
113LINK_FLAGS=/nofree /nologo /de /map /linenumbers /NOIgnorecase /NOE /NOD /Optfunc /PACKCODE /PACKDATA
114LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
115LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
116LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
117LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
118LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
119LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
120LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
121LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
122LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
123LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
124LINK_LNK1=$(TARGET_OBJS: =+^
125),
126LINK_LNK2=$(TARGET),
127LINK_LNK3=$(TARGET_MAP),
128LINK_LNK4=$(TARGET_LIBS: =+^
129),
130LINK_LNK5=$(TARGET_DEF_LINK)
131
132RC_FLAGS=-r -n $(RC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(RC_INCLUDES:-I=-i ) $(ALL_INCLUDES:-I=-i ) -i $(PATH_INCLUDES:;= -i )
133RL_FLAGS=-x2 -n
134
135
136#
137# Libraries and object files.
138#
139LIB_OS = os2386.lib
140LIB_C_OBJ = libc.lib
141LIB_C_DLL = libc.lib
142LIB_C_RTDLL = libc.lib
143LIB_C_NRE =
144LIB_C_DMNGL =
145OBJ_PROFILE =
146
147# ---OS2, DEBUG, MSCV6-------------------------
148
Note: See TracBrowser for help on using the repository browser.