source: trunk/make/setup.os2debwat11.mk@ 8423

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

Merged in latest changes.

File size: 3.7 KB
RevLine 
[8423]1# $Id: setup.os2debwat11.mk,v 1.8 2002-05-16 11:37:02 bird Exp $
[8252]2
[8296]3# ---OS2, DEBUG, WAT11-------------------------
4ENV_NAME="OS/2, Debug, Watcom C/C++ v11.0c"
[8252]5ENV_STATUS=OK
[8294]6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 watcomc11c
8!else
9ENV_ENVS_FORCE=vac308 watcomc11c
10!endif
[8423]11!undef ENV_16BIT
[8252]12
[8296]13
[8252]14#
[8334]15# Include some shared standard stuff: ALP, VAC optional stuff.
[8252]16#
17!include $(PATH_MAKE)\setup.os2debalp.mk
[8334]18!include $(PATH_MAKE)\setup.optional.watcom11x.mk
[8252]19
[8296]20
[8252]21#
22# The tools
23#
24AR=ilib.exe
[8423]25AR=lib.exe
[8252]26CC=wcc386.exe
27CXX=wpp386.exe
28LINK=wlink.exe
29IMPLIB=implib.exe
30RC=rc.exe
31RL=rc.exe
32EXEPACK=lxlite.exe
33
34
35#
36# The flags
37#
38AR_FLAGS=/nologo /noignorecase
[8423]39AR_CMD=$(AR) $(AR_FLAGS) @$(TARGET_LNK)
40_AR_LNK1= $(TARGET), ^
41+"$(TARGET_OBJS: ="+^
[8252]42")"
43AR_LNK1= $(_AR_LNK1:""=)
44AR_LNK2= $(@R).lst
45
[8354]46CC_FLAGS=-bt=os2v2 -dDEBUG -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -d2 -hc -zc $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
[8252]47CC_FLAGS_EXE=$(CC_FLAGS)
48CC_FLAGS_DLL=$(CC_FLAGS) -bd
[8354]49CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf
[8292]50CC_FLAGS_VDD=$(CC_FLAGS_SYS)
[8334]51CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
[8252]52CC_OBJ_OUT=-fo=
53CC_LST_OUT=
[8354]54CC_PC_2_STDOUT=-pc
[8252]55
[8423]56CXX_FLAGS=-bt=os2v2 -dDEBUG -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -d2 -hc -zc $(_CXX_OPTIONAL) $(CXX_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CXX_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
[8252]57CXX_FLAGS_EXE=$(CXX_FLAGS)
58CXX_FLAGS_DLL=$(CXX_FLAGS) -bd
59CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
[8292]60CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
[8334]61CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
[8252]62CXX_OBJ_OUT=-fo=
[8334]63CXX_LST_OUT=
64CXX_PC_2_STDOUT=-pc
[8252]65
[8423]66!if "$(CC_AS_CXX)" != ""
67! if "$(CXX_AS_CC)" != ""
68! if [@(ECHO) $(CLRERR)Error: Do you think you're smart? CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
69! endif
70! error
71! endif
72CC=$(CXX)
73CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
74CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
75CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
76CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
77CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
78!endif
79!if "$(CXX_AS_CC)" != ""
80CXX=$(CC)
81CXX_FLAGS_EXE=$(C_FLAGS_EXE)
82CXX_FLAGS_DLL=$(C_FLAGS_DLL)
83CXX_FLAGS_SYS=$(C_FLAGS_SYS)
84CXX_FLAGS_VDD=$(C_FLAGS_VDD)
85CXX_FLAGS_IFS=$(C_FLAGS_IFS)
86!endif
87
[8252]88IMPLIB_FLAGS=/NOI /Nologo
89
[8362]90LINK_FLAGS=Sort global Debug codeview Option quiet, dosseg, eliminate, manglednames, caseexact
[8252]91LINK_FLAGS_EXE=$(LINK_FLAGS)
92LINK_FLAGS_DLL=$(LINK_FLAGS)
[8362]93LINK_FLAGS_SYS=$(LINK_FLAGS) Option oneautodata, internalrelocs, togglerelocs
94LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
95LINK_FLAGS_IFS=$(LINK_FLAGS_SYS)
[8252]96LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
97LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
98LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
[8292]99LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
[8252]100LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
[8362]101LINK_LNK1=file $(TARGET_OBJS: =^
102file )
103LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
[8252]104LINK_LNK3=option map=$(TARGET_MAP)
[8362]105LINK_LNK4=library $(TARGET_LIBS: =^, )
106LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
[8252]107
[8423]108RC_FLAGS=-r -n $(RC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(RC_INCLUDES:-I=-i ) $(ALL_INCLUDES:-I=-i ) -i $(PATH_INCLUDES:;= -i )
[8252]109RL_FLAGS=-x2 -n
110
[8296]111
[8252]112#
113# Libraries and object files.
114#
115LIB_OS = os2386.lib
[8423]116!if "$(_CXX_XCPT)" == "-xd"
117LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
118LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
119LIB_C_RTDLL = clbrdll.lib # TODO
120LIB_C_NRE = $(LIB_C_OBJ) # TODO
121!else
122LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
123LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
124LIB_C_RTDLL = clbrdll.lib # TODO
125LIB_C_NRE = $(LIB_C_OBJ) # TODO
126!endif
[8252]127LIB_C_DMNGL =
128OBJ_PROFILE =
129
[8296]130# ---OS2, DEBUG, WAT11-------------------------
[8252]131
Note: See TracBrowser for help on using the repository browser.