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

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

Include wrc setup. Removed /Optfunc as it removed public names without removing the code; which is confusing.

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