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

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

rc/rc16 toolkit issue.

File size: 3.2 KB
Line 
1# $Id: setup.os2debmscv6.mk,v 1.12 2002-08-27 03:58:00 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!include $(PATH_MAKE)\setup.os2prfrc.mk
19!include $(PATH_MAKE)\setup.os2prfwrc.mk
20
21
22#
23# The tools
24#
25AR=ilib.exe
26CC=cl386.exe
27CXX=false
28LINK=ilink.exe
29IMPLIB=implib.exe
30
31
32#
33# The flags
34#
35AR_FLAGS=/nologo /noignorecase
36AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
37AR_LNK1= "$(@R).$(EXT_LIB)"
38AR_LNK2=y
39_AR_LNK3= +"$(TARGET_OBJS: ="&^
40 +")"
41AR_LNK3= $(_AR_LNK3:+""&^
42=)
43AR_LNK4= "$(@R).lst";
44
45
46#
47# C Compiler flags.
48#
49_CC_SEG_TEXT =
50_CC_SEG_DATA =
51_CC_SEG_XCPT =
52_CC_DEFAULT_LIBS = /Zl
53_CC_PACK = /Zp
54_CC_MODEL =
55
56!ifdef ALL_SEG_TEXT
57_CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
58!endif
59!ifdef CC_SEG_TEXT
60_CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
61!endif
62!ifdef ALL_SEG_DATA
63_CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
64!endif
65!ifdef CC_SEG_DATA
66_CC_SEG_DATA=/ND$(CC_SEG_TEXT)
67!endif
68!if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
69_CC_DEFAULT_LIBS =
70!endif
71!ifdef ALL_PACK
72_CC_PACK = /Zp$(ALL_PACK)
73!endif
74!ifdef CC_PACK
75_CC_PACK = /Zp$(CC_PACK)
76!endif
77!if defined(CXX_MODEL) || defined(ALL_MODEL)
78! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
79! endif
80!endif
81
82_CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
83
84CC_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)
85CC_FLAGS_EXE=$(CC_FLAGS)
86CC_FLAGS_DLL=$(CC_FLAGS)
87CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs /Owis
88CC_FLAGS_IFS=$(CC_FLAGS_SYS)
89CC_OBJ_OUT=/Fo
90CC_LST_OUT=/Fl
91CC_PC_2_STDOUT=/P /C /E
92
93CXX_FLAGS=
94CXX_FLAGS_EXE=
95CXX_FLAGS_DLL=
96CXX_FLAGS_SYS=
97CXX_FLAGS_IFS=
98CXX_OBJ_OUT=
99CXX_LST_OUT=
100CXX_PC_2_STDOUT=
101
102!if "$(CC_AS_CXX)" != ""
103! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX is not supported by this compiler!$(CLRRST)]
104! endif
105! error
106!endif
107!if "$(CXX_AS_CC)" != ""
108! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
109! endif
110! error
111!endif
112
113IMPLIB_FLAGS=/NOI /Nologo
114
115LINK_FLAGS=/nofree /nologo /de /map /linenumbers /NOIgnorecase /NOE /NOD /PACKCODE /PACKDATA
116LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
117LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
118LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
119LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
120LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
121LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
122LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
123LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
124LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
125LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
126LINK_LNK1=$(TARGET_OBJS: =+^
127),
128LINK_LNK2=$(TARGET),
129LINK_LNK3=$(TARGET_MAP),
130LINK_LNK4=$(TARGET_LIBS: =+^
131),
132LINK_LNK5=$(TARGET_DEF_LINK)
133
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.