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

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

Support for .def files with the watcom linker.

File size: 2.7 KB
Line 
1# $Id: setup.os2debwat11.mk,v 1.7 2002-05-01 04:00:18 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
12
13#
14# Include some shared standard stuff: ALP, VAC optional stuff.
15#
16!include $(PATH_MAKE)\setup.os2debalp.mk
17!include $(PATH_MAKE)\setup.optional.watcom11x.mk
18
19
20#
21# The tools
22#
23AR=ilib.exe
24CC=wcc386.exe
25CXX=wpp386.exe
26LINK=wlink.exe
27IMPLIB=implib.exe
28RC=rc.exe
29RL=rc.exe
30EXEPACK=lxlite.exe
31
32
33#
34# The flags
35#
36AR_FLAGS=/nologo /noignorecase
37AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
38_AR_LNK1= "$(TARGET_OBJS: ="&^
39")"
40AR_LNK1= $(_AR_LNK1:""=)
41AR_LNK2= $(@R).lst
42
43CC_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
44CC_FLAGS_EXE=$(CC_FLAGS)
45CC_FLAGS_DLL=$(CC_FLAGS) -bd
46CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf
47CC_FLAGS_VDD=$(CC_FLAGS_SYS)
48CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
49CC_OBJ_OUT=-fo=
50CC_LST_OUT=
51CC_PC_2_STDOUT=-pc
52
53CXX_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
54CXX_FLAGS_EXE=$(CXX_FLAGS)
55CXX_FLAGS_DLL=$(CXX_FLAGS) -bd
56CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
57CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
58CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
59CXX_OBJ_OUT=-fo=
60CXX_LST_OUT=
61CXX_PC_2_STDOUT=-pc
62
63IMPLIB_FLAGS=/NOI /Nologo
64
65LINK_FLAGS=Sort global Debug codeview Option quiet, dosseg, eliminate, manglednames, caseexact
66LINK_FLAGS_EXE=$(LINK_FLAGS)
67LINK_FLAGS_DLL=$(LINK_FLAGS)
68LINK_FLAGS_SYS=$(LINK_FLAGS) Option oneautodata, internalrelocs, togglerelocs
69LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
70LINK_FLAGS_IFS=$(LINK_FLAGS_SYS)
71LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
72LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
73LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
74LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
75LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
76LINK_LNK1=file $(TARGET_OBJS: =^
77file )
78LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
79LINK_LNK3=option map=$(TARGET_MAP)
80LINK_LNK4=library $(TARGET_LIBS: =^, )
81LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
82
83RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
84RL_FLAGS=-x2 -n
85
86
87#
88# Libraries and object files.
89#
90LIB_OS = os2386.lib
91LIB_C_OBJ = clib3r.lib
92LIB_C_DLL = clbrdll.lib
93LIB_C_RTDLL = clbrdll.lib
94LIB_C_NRE = clib3r.lib
95LIB_C_DMNGL =
96OBJ_PROFILE =
97
98# ---OS2, DEBUG, WAT11-------------------------
99
Note: See TracBrowser for help on using the repository browser.