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

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

Splitted out the watcom linker into it own config files.
Option to use ilink with watcom environments.

File size: 3.0 KB
Line 
1# $Id: setup.os2debwat11.mk,v 1.15 2002-08-28 04:42:05 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.os2debrc.mk
20!include $(PATH_MAKE)\setup.os2debwrc.mk
21!ifdef LD_USE_ILINK
22LD_OLDCPP = 1
23! include $(PATH_MAKE)\setup.os2debilink.mk
24!else
25_LD_LIBPATH = $(PATH_WATCOM)\lib386\os2;$(PATH_WATCOM)\lib386;
26! include $(PATH_MAKE)\setup.os2debwlink.mk
27!endif
28!include $(PATH_MAKE)\setup.optional.watcom11x.mk
29
30
31#
32# The tools
33#
34AR=ilib.exe
35CC=wcc386.exe
36CXX=wpp386.exe
37IMPLIB=implib.exe
38
39
40#
41# The flags
42#
43AR_FLAGS=/nologo /noignorecase
44AR_CMD=$(AR) $(AR_FLAGS) @"$(TARGET_LNK)"
45AR_LNK1= "$(@R).$(EXT_LIB)"
46AR_LNK2=y
47_AR_LNK3= +"$(TARGET_OBJS: ="&^
48 +")"
49AR_LNK3= $(_AR_LNK3:+""&^
50=)
51AR_LNK4= "$(@R).lst";
52
53CC_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
54CC_FLAGS_EXE=$(CC_FLAGS) -zc
55CC_FLAGS_DLL=$(CC_FLAGS) -zc -bd
56CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf -zu
57CC_FLAGS_VDD=$(CC_FLAGS_SYS)
58CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
59CC_OBJ_OUT=-fo=
60CC_LST_OUT=
61CC_PC_2_STDOUT=-pc
62
63CXX_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
64CXX_FLAGS_EXE=$(CXX_FLAGS) -zc
65CXX_FLAGS_DLL=$(CXX_FLAGS) -zc -bd
66CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf -zu
67CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
68CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
69CXX_OBJ_OUT=-fo=
70CXX_LST_OUT=
71CXX_PC_2_STDOUT=-pc
72
73!if "$(CC_AS_CXX)" != ""
74! if "$(CXX_AS_CC)" != ""
75! if [@(ECHO) $(CLRERR)Error: CC_AS_CXX and CXX_AS_CC is mutual execlusive!$(CLRRST)]
76! endif
77! error
78! endif
79CC=$(CXX)
80CC_FLAGS_EXE=$(CXX_FLAGS_EXE)
81CC_FLAGS_DLL=$(CXX_FLAGS_DLL)
82CC_FLAGS_SYS=$(CXX_FLAGS_SYS)
83CC_FLAGS_VDD=$(CXX_FLAGS_VDD)
84CC_FLAGS_IFS=$(CXX_FLAGS_IFS)
85!endif
86!if "$(CXX_AS_CC)" != ""
87CXX=$(CC)
88CXX_FLAGS_EXE=$(CC_FLAGS_EXE)
89CXX_FLAGS_DLL=$(CC_FLAGS_DLL)
90CXX_FLAGS_SYS=$(CC_FLAGS_SYS)
91CXX_FLAGS_VDD=$(CC_FLAGS_VDD)
92CXX_FLAGS_IFS=$(CC_FLAGS_IFS)
93!endif
94
95IMPLIB_FLAGS=/NOI /Nologo
96
97
98#
99# Libraries and object files.
100#
101LIB_OS = os2386.lib
102!if "$(_CXX_XCPT)" == "-xd"
103LIB_C_OBJ = clib3r.lib plibmt3r.lib math387r.lib emu387.lib
104LIB_C_DLL = clbrdll.lib plbrdll.lib mt7rdll.lib emu387.lib
105LIB_C_RTDLL = clbrdll.lib # TODO
106LIB_C_NRE = $(LIB_C_OBJ) # TODO
107!else
108LIB_C_OBJ = clib3r.lib plbxmt3r.lib math387r.lib emu387.lib
109LIB_C_DLL = clbrdll.lib plbrdllx.lib mt7rdll.lib emu387.lib
110LIB_C_RTDLL = clbrdll.lib # TODO
111LIB_C_NRE = $(LIB_C_OBJ) # TODO
112!endif
113LIB_C_DMNGL =
114OBJ_PROFILE =
115
116# ---OS2, DEBUG, WAT11-------------------------
117
Note: See TracBrowser for help on using the repository browser.