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

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

Support for forced environment change, using BUILD_ENV_FORCE,
BUILD_ENVS_PRE and BUILD_ENVS_POST.
(first successful try)

File size: 2.7 KB
Line 
1# $Id: setup.os2debwat11.mk,v 1.3 2002-04-22 01:59:34 bird Exp $
2
3# ---OS2, DEBUG, VAC308-------------------------
4ENV_NAME="OS/2, Debug, Watcom 11.0c"
5ENV_STATUS=OK
6!if "$(ENV_ENVS)" == ""
7ENV_ENVS=vac308 watcomc11c
8!else
9ENV_ENVS_FORCE=vac308 watcomc11c
10!endif
11
12#
13# Include some shared standard stuff: ALP.
14#
15!include $(PATH_MAKE)\setup.os2debalp.mk
16
17#
18# The tools
19#
20AR=ilib.exe
21CC=wcc386.exe
22CXX=wpp386.exe
23LINK=wlink.exe
24IMPLIB=implib.exe
25RC=rc.exe
26RL=rc.exe
27EXEPACK=lxlite.exe
28
29
30#
31# The flags
32#
33AR_FLAGS=/nologo /noignorecase
34AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
35_AR_LNK1= "$(TARGET_OBJS: ="&^
36")"
37AR_LNK1= $(_AR_LNK1:""=)
38AR_LNK2= $(@R).lst
39
40CC_FLAGS_OS = -bt=os2v2
41
42CC_FLAGS=$(CC_FLAGS_OS) -zq -zl -bm -ze -w4 -dDEBUG -d2 -hc -zc $(CC_DEFINES) $(ALL_DEFINES) $(BUILD_DEFINES) $(CC_INCLUDES:-I=-i=) $(ALL_INCLUDES:-I=-i=) -i=$(PATH_INCLUDES) -i=$(WATCOM)\h
43CC_FLAGS_EXE=$(CC_FLAGS)
44CC_FLAGS_DLL=$(CC_FLAGS) -bd
45CC_FLAGS_CRT=$(CC_FLAGS) -bd -br
46CC_FLAGS_SYS=$(CC_FLAGS)
47CC_FLAGS_VDD=$(CC_FLAGS_SYS)
48CC_FLAGS_IFS=$(CC_FLAGS_SYS)
49CC_OBJ_OUT=-fo=
50CC_LST_OUT=
51CC_PC_2_STDOUT=
52
53CXX_FLAGS=$(CC_FLAGS_OS) -zq -zl -bm -ze -w4 -dDEBUG -d2 -hc -zc $(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_CRT=$(CXX_FLAGS) -bd -br
57CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
58CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
59CXX_FLAGS_IFS=$(CXX_FLAGS_SYS)
60CXX_OBJ_OUT=-fo=
61CXX_PC_2_STDOUT=
62
63IMPLIB_FLAGS=/NOI /Nologo
64
65LINK_FLAGS=format os2 lx pmcompatible option quiet, map
66LINK_FLAGS_EXE=$(LINK_FLAGS)
67LINK_FLAGS_DLL=$(LINK_FLAGS)
68LINK_FLAGS_SYS=format os2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview
69LINK_FLAGS_VDD=format os2 virtdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview
70LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
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;$(WATCOM)\lib386\os2;
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# Libraries and object files.
88#
89LIB_OS = os2386.lib
90LIB_C_OBJ = clib3r.lib
91LIB_C_DLL = clbrdll.lib
92LIB_C_RTDLL = clbrdll.lib
93LIB_C_NRE = clib3r.lib
94LIB_C_DMNGL =
95OBJ_PROFILE =
96
97# ---OS2, DEBUG, VAC308-------------------------
98
Note: See TracBrowser for help on using the repository browser.