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

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

Flags adjustments.
Added options.

File size: 3.8 KB
RevLine 
[9137]1# $Id: setup.os2debwat11.mk,v 1.13 2002-08-27 03:03:14 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#
[9137]17AS_DEBUG_TYPE = Codeview
[8252]18!include $(PATH_MAKE)\setup.os2debalp.mk
[9120]19!include $(PATH_MAKE)\setup.os2prfwrc.mk
[8334]20!include $(PATH_MAKE)\setup.optional.watcom11x.mk
[8252]21
[8296]22
[8252]23#
24# The tools
25#
26AR=ilib.exe
27CC=wcc386.exe
28CXX=wpp386.exe
29LINK=wlink.exe
30IMPLIB=implib.exe
31RC=rc.exe
32RL=rc.exe
33
34
35#
36# The flags
37#
38AR_FLAGS=/nologo /noignorecase
[9060]39AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
40AR_LNK1= "$(@R).$(EXT_LIB)"
41AR_LNK2=y
42_AR_LNK3= +"$(TARGET_OBJS: ="&^
43 +")"
44AR_LNK3= $(_AR_LNK3:+""&^
45=)
46AR_LNK4= "$(@R).lst";
[8252]47
[9137]48CC_FLAGS=-bt=os2v2 -dDEBUG -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -zld -d2 -hc $(_CC_OPTIONAL) $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
49CC_FLAGS_EXE=$(CC_FLAGS) -zc
50CC_FLAGS_DLL=$(CC_FLAGS) -zc -bd
51CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf -zu
[8292]52CC_FLAGS_VDD=$(CC_FLAGS_SYS)
[8334]53CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
[8252]54CC_OBJ_OUT=-fo=
55CC_LST_OUT=
[8354]56CC_PC_2_STDOUT=-pc
[8252]57
[9137]58CXX_FLAGS=-bt=os2v2 -dDEBUG -dOS2 -d__32BIT__ -d__i386__ -5r -zq -bm -ze -w4 -zld -d2 -hc $(_CXX_OPTIONAL) $(CXX_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CXX_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
59CXX_FLAGS_EXE=$(CXX_FLAGS) -zc
60CXX_FLAGS_DLL=$(CXX_FLAGS) -zc -bd
61CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf -zu
[8292]62CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
[8334]63CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
[8252]64CXX_OBJ_OUT=-fo=
[8334]65CXX_LST_OUT=
66CXX_PC_2_STDOUT=-pc
[8252]67
[8423]68!if "$(CC_AS_CXX)" != ""
69! if "$(CXX_AS_CC)" != ""
[9066]70! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
[8423]71! endif
72! error
73! endif
74CC=$(CXX)
75CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
76CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
77CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
78CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
79CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
80!endif
81!if "$(CXX_AS_CC)" != ""
82CXX=$(CC)
[9066]83CXX_FLAGS_EXE=$(CC_FLAGS_EXE)
84CXX_FLAGS_DLL=$(CC_FLAGS_DLL)
85CXX_FLAGS_SYS=$(CC_FLAGS_SYS)
86CXX_FLAGS_VDD=$(CC_FLAGS_VDD)
87CXX_FLAGS_IFS=$(CC_FLAGS_IFS)
[8423]88!endif
89
[8252]90IMPLIB_FLAGS=/NOI /Nologo
91
[9137]92LINK_FLAGS=Option eliminate, manglednames, caseexact, cache $(_LD_OPTIONAL) Debug codeview all
[8252]93LINK_FLAGS_EXE=$(LINK_FLAGS)
94LINK_FLAGS_DLL=$(LINK_FLAGS)
[9137]95LINK_FLAGS_SYS=$(LINK_FLAGS) segment type code preload segment type data preload Option internalrelocs, togglerelocs
[8362]96LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
[9137]97LINK_FLAGS_IFS=$(LINK_FLAGS_DLL) segment type code preload segment type data preload
[8252]98LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
99LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
100LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
[8292]101LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
[8252]102LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
[8362]103LINK_LNK1=file $(TARGET_OBJS: =^
104file )
105LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
[8252]106LINK_LNK3=option map=$(TARGET_MAP)
[8362]107LINK_LNK4=library $(TARGET_LIBS: =^, )
108LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
[8252]109
[8423]110RC_FLAGS=-r -n $(RC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(RC_INCLUDES:-I=-i ) $(ALL_INCLUDES:-I=-i ) -i $(PATH_INCLUDES:;= -i )
[8252]111RL_FLAGS=-x2 -n
112
[8296]113
[8252]114#
115# Libraries and object files.
116#
117LIB_OS = os2386.lib
[8423]118!if "$(_CXX_XCPT)" == "-xd"
119LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
120LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
121LIB_C_RTDLL = clbrdll.lib # TODO
122LIB_C_NRE = $(LIB_C_OBJ) # TODO
123!else
124LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
125LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
126LIB_C_RTDLL = clbrdll.lib # TODO
127LIB_C_NRE = $(LIB_C_OBJ) # TODO
128!endif
[8252]129LIB_C_DMNGL =
130OBJ_PROFILE =
131
[8296]132# ---OS2, DEBUG, WAT11-------------------------
[8252]133
Note: See TracBrowser for help on using the repository browser.