source: trunk/make/setup.os2relmscv6.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.3 KB
Line 
1# $Id: setup.os2relmscv6.mk,v 1.12 2002-08-27 03:58:02 bird Exp $
2
3# ---OS2, RELEASE, MSCV6-------------------------
4ENV_NAME="OS/2, Release, 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.os2relalp.mk
18!include $(PATH_MAKE)\setup.os2relrc.mk
19!include $(PATH_MAKE)\setup.os2relwrc.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#
48# C Compiler flags.
49#
50_CC_SEG_TEXT =
51_CC_SEG_DATA =
52_CC_SEG_XCPT =
53_CC_DEFAULT_LIBS = /Zl
54_CC_PACK = /Zp
55_CC_MODEL =
56
57!ifdef ALL_SEG_TEXT
58_CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
59!endif
60!ifdef CC_SEG_TEXT
61_CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
62!endif
63!ifdef ALL_SEG_DATA
64_CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
65!endif
66!ifdef CC_SEG_DATA
67_CC_SEG_DATA=/ND$(CC_SEG_TEXT)
68!endif
69!if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
70_CC_DEFAULT_LIBS =
71!endif
72!ifdef ALL_PACK
73_CC_PACK = /Zp$(ALL_PACK)
74!endif
75!ifdef CC_PACK
76_CC_PACK = /Zp$(CC_PACK)
77!endif
78!if defined(CXX_MODEL) || defined(ALL_MODEL)
79! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
80! endif
81!endif
82
83_CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
84
85CC_FLAGS=/nologo /c /DDEBUG /DOS2 /D__32BIT__ /D__i386__ /W0 /G3 /Ogeitln /Zi $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES) $(ALL_INCLUDES) /I$(PATH_INCLUDES)
86CC_FLAGS_EXE=$(CC_FLAGS)
87CC_FLAGS_DLL=$(CC_FLAGS)
88CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs
89CC_FLAGS_IFS=$(CC_FLAGS_SYS)
90CC_OBJ_OUT=/Fo
91CC_LST_OUT=/Fl
92CC_PC_2_STDOUT=/P /C /E
93
94CXX_FLAGS=
95CXX_FLAGS_EXE=
96CXX_FLAGS_DLL=
97CXX_FLAGS_SYS=
98CXX_FLAGS_IFS=
99CXX_OBJ_OUT=
100CXX_LST_OUT=
101CXX_PC_2_STDOUT=
102
103!if "$(CC_AS_CXX)" != ""
104! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX is not supported by this compiler!$(CLRRST)]
105! endif
106! error
107!endif
108!if "$(CXX_AS_CC)" != ""
109! if [@(ECHO) $(CLRERR)Error: CXX_AS_CC is not supported by this compiler!$(CLRRST)]
110! endif
111! error
112!endif
113
114IMPLIB_FLAGS=/NOI /Nologo
115
116LINK_FLAGS=/nofree /nologo /map /linenumbers /NOIgnorecase /NOE /NOD /PACKCODE /PACKDATA /EXEPACK:2 /Debug
117LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /BASE:0x10000 /STACK:$(TARGET_STACKSIZE)
118LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
119LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16
120LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16
121LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
122LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) "@$(TARGET_LNK)"
123LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) "@$(TARGET_LNK)"
124LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) "@$(TARGET_LNK)"
125LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) "@$(TARGET_LNK)"
126LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) "@$(TARGET_LNK)"
127LINK_LNK1=$(TARGET_OBJS: =+^
128),
129LINK_LNK2=$(TARGET),
130LINK_LNK3=$(TARGET_MAP),
131LINK_LNK4=$(TARGET_LIBS: =+^
132),
133LINK_LNK5=$(TARGET_DEF_LINK)
134
135
136
137#
138# Libraries and object files.
139#
140LIB_OS = os2386.lib
141LIB_C_OBJ = libc.lib
142LIB_C_DLL = libc.lib
143LIB_C_RTDLL = libc.lib
144LIB_C_NRE =
145LIB_C_DMNGL =
146OBJ_PROFILE =
147
148# ---OS2, RELEASE, MSCV6-------------------------
149
Note: See TracBrowser for help on using the repository browser.