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