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

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

Changed 16-bit compiler to *mscv6-16.mk and the 32-bit one use *mscv6.mk.

File size: 3.0 KB
Line 
1# $Id: setup.os2relmscv6.mk,v 1.6 2002-04-30 19:45:53 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
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=cl386.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#
44# C Compiler flags.
45#
46_CC_SEG_TEXT =
47_CC_SEG_DATA =
48_CC_SEG_XCPT =
49_CC_DEFAULT_LIBS = /Zl
50_CC_PACK = /Zp
51_CC_MODEL =
52
53!ifdef ALL_SEG_TEXT
54_CC_SEG_TEXT=/NT$(ALL_SEG_TEXT)
55!endif
56!ifdef CC_SEG_TEXT
57_CC_SEG_TEXT=/NT$(CC_SEG_TEXT)
58!endif
59!ifdef ALL_SEG_DATA
60_CC_SEG_DATA=/ND$(ALL_SEG_TEXT)
61!endif
62!ifdef CC_SEG_DATA
63_CC_SEG_DATA=/ND$(CC_SEG_TEXT)
64!endif
65!if defined(CC_DEFAULT_LIBS) || defined(ALL_DEFAULT_LIBS)
66_CC_DEFAULT_LIBS =
67!endif
68!ifdef ALL_PACK
69_CC_PACK = /Zp$(ALL_PACK)
70!endif
71!ifdef CC_PACK
72_CC_PACK = /Zp$(CC_PACK)
73!endif
74!if defined(CXX_MODEL) || defined(ALL_MODEL)
75! if [$(ECHO) warning: CXX_MODEL/ALL_MODEL isn't supported by this compiler$(CLRRST)]
76! endif
77!endif
78
79_CC_OPTIONAL = $(_CC_SEG_TEXT) $(_CC_SEG_DATA) $(_CC_SEG_XCPT) $(_CC_DEFAULT_LIBS) $(_CC_PACK) $(_CC_MODEL)
80
81CC_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)
82CC_FLAGS_EXE=$(CC_FLAGS)
83CC_FLAGS_DLL=$(CC_FLAGS)
84CC_FLAGS_SYS=$(CC_FLAGS) /DRING0 /Gs
85CC_FLAGS_IFS=$(CC_FLAGS_SYS)
86CC_OBJ_OUT=/Fo
87CC_LST_OUT=/Fl
88CC_PC_2_STDOUT=/P /C /E
89
90CXX_FLAGS=
91CXX_FLAGS_EXE=
92CXX_FLAGS_DLL=
93CXX_FLAGS_SYS=
94CXX_FLAGS_IFS=
95CXX_OBJ_OUT=
96CXX_LST_OUT=
97CXX_PC_2_STDOUT=
98
99IMPLIB_FLAGS=/NOI /Nologo
100
101LINK_FLAGS=/nofree /nologo /map /NOE /NOD /PACKCODE /PACKDATA /EXEPACK:2 /LINENUMBERS /NODEBUG
102LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /BASE:0x10000 /STACK:$(TARGET_STACKSIZE)
103LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
104LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16 /NOIgnorecase
105LINK_FLAGS_VDD=$(LINK_FLAGS) /VDD /Align:16 /NOIgnorecase
106LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
107LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
108LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
109LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
110LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
111LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
112LINK_LNK1=$(TARGET_OBJS: =+^
113),
114LINK_LNK2=$(TARGET),
115LINK_LNK3=$(TARGET_MAP),
116LINK_LNK4=$(TARGET_LIBS: =+^
117),
118LINK_LNK5=$(TARGET_DEF_LINK)
119
120RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
121RL_FLAGS=-x2 -n
122
123
124#
125# Libraries and object files.
126#
127LIB_OS = os2386.lib
128LIB_C_OBJ = libc.lib
129LIB_C_DLL = libc.lib
130LIB_C_RTDLL = libc.lib
131LIB_C_NRE =
132LIB_C_DMNGL =
133OBJ_PROFILE =
134
135# ---OS2, RELEASE, MSCV6-------------------------
136
Note: See TracBrowser for help on using the repository browser.