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

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

rc/rc16 toolkit issue.

File size: 3.7 KB
Line 
1# $Id: setup.os2debwat11.mk,v 1.14 2002-08-27 03:58:01 bird Exp $
2
3# ---OS2, DEBUG, WAT11-------------------------
4ENV_NAME="OS/2, Debug, Watcom C/C++ v11.0c"
5ENV_STATUS=OK
6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 watcomc11c
8!else
9ENV_ENVS_FORCE=vac308 watcomc11c
10!endif
11!undef ENV_16BIT
12
13
14#
15# Include some shared standard stuff: ALP, VAC optional stuff.
16#
17AS_DEBUG_TYPE = Codeview
18!include $(PATH_MAKE)\setup.os2debalp.mk
19!include $(PATH_MAKE)\setup.os2prfrc.mk
20!include $(PATH_MAKE)\setup.os2prfwrc.mk
21!include $(PATH_MAKE)\setup.optional.watcom11x.mk
22
23
24#
25# The tools
26#
27AR=ilib.exe
28CC=wcc386.exe
29CXX=wpp386.exe
30LINK=wlink.exe
31IMPLIB=implib.exe
32
33
34#
35# The flags
36#
37AR_FLAGS=/nologo /noignorecase
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";
46
47CC_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
48CC_FLAGS_EXE=$(CC_FLAGS) -zc
49CC_FLAGS_DLL=$(CC_FLAGS) -zc -bd
50CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf -zu
51CC_FLAGS_VDD=$(CC_FLAGS_SYS)
52CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
53CC_OBJ_OUT=-fo=
54CC_LST_OUT=
55CC_PC_2_STDOUT=-pc
56
57CXX_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
58CXX_FLAGS_EXE=$(CXX_FLAGS) -zc
59CXX_FLAGS_DLL=$(CXX_FLAGS) -zc -bd
60CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf -zu
61CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
62CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
63CXX_OBJ_OUT=-fo=
64CXX_LST_OUT=
65CXX_PC_2_STDOUT=-pc
66
67!if "$(CC_AS_CXX)" != ""
68! if "$(CXX_AS_CC)" != ""
69! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
70! endif
71! error
72! endif
73CC=$(CXX)
74CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
75CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
76CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
77CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
78CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
79!endif
80!if "$(CXX_AS_CC)" != ""
81CXX=$(CC)
82CXX_FLAGS_EXE=$(CC_FLAGS_EXE)
83CXX_FLAGS_DLL=$(CC_FLAGS_DLL)
84CXX_FLAGS_SYS=$(CC_FLAGS_SYS)
85CXX_FLAGS_VDD=$(CC_FLAGS_VDD)
86CXX_FLAGS_IFS=$(CC_FLAGS_IFS)
87!endif
88
89IMPLIB_FLAGS=/NOI /Nologo
90
91LINK_FLAGS=Option eliminate, manglednames, caseexact, cache $(_LD_OPTIONAL) Debug codeview all
92LINK_FLAGS_EXE=$(LINK_FLAGS)
93LINK_FLAGS_DLL=$(LINK_FLAGS)
94LINK_FLAGS_SYS=$(LINK_FLAGS) segment type code preload segment type data preload Option internalrelocs, togglerelocs
95LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
96LINK_FLAGS_IFS=$(LINK_FLAGS_DLL) segment type code preload segment type data preload
97LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
98LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
99LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
100LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
101LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
102LINK_LNK1=file $(TARGET_OBJS: =^
103file )
104LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
105LINK_LNK3=option map=$(TARGET_MAP)
106LINK_LNK4=library $(TARGET_LIBS: =^, )
107LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
108
109
110
111#
112# Libraries and object files.
113#
114LIB_OS = os2386.lib
115!if "$(_CXX_XCPT)" == "-xd"
116LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
117LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
118LIB_C_RTDLL = clbrdll.lib # TODO
119LIB_C_NRE = $(LIB_C_OBJ) # TODO
120!else
121LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
122LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
123LIB_C_RTDLL = clbrdll.lib # TODO
124LIB_C_NRE = $(LIB_C_OBJ) # TODO
125!endif
126LIB_C_DMNGL =
127OBJ_PROFILE =
128
129# ---OS2, DEBUG, WAT11-------------------------
130
Note: See TracBrowser for help on using the repository browser.