1 | # $Id: setup.os2debwat11.mk,v 1.7 2002-05-01 04:00:18 bird Exp $
|
---|
2 |
|
---|
3 | # ---OS2, DEBUG, WAT11-------------------------
|
---|
4 | ENV_NAME="OS/2, Debug, Watcom C/C++ v11.0c"
|
---|
5 | ENV_STATUS=OK
|
---|
6 | !if "$(ENV_ENVS)" == ""
|
---|
7 | ENV_ENVS=vac308 watcomc11c
|
---|
8 | !else
|
---|
9 | ENV_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 | #
|
---|
23 | AR=ilib.exe
|
---|
24 | CC=wcc386.exe
|
---|
25 | CXX=wpp386.exe
|
---|
26 | LINK=wlink.exe
|
---|
27 | IMPLIB=implib.exe
|
---|
28 | RC=rc.exe
|
---|
29 | RL=rc.exe
|
---|
30 | EXEPACK=lxlite.exe
|
---|
31 |
|
---|
32 |
|
---|
33 | #
|
---|
34 | # The flags
|
---|
35 | #
|
---|
36 | AR_FLAGS=/nologo /noignorecase
|
---|
37 | AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
|
---|
38 | _AR_LNK1= "$(TARGET_OBJS: ="&^
|
---|
39 | ")"
|
---|
40 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
41 | AR_LNK2= $(@R).lst
|
---|
42 |
|
---|
43 | CC_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
|
---|
44 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
45 | CC_FLAGS_DLL=$(CC_FLAGS) -bd
|
---|
46 | CC_FLAGS_SYS=$(CC_FLAGS) -s -zdp -zff -zgf
|
---|
47 | CC_FLAGS_VDD=$(CC_FLAGS_SYS)
|
---|
48 | CC_FLAGS_IFS=$(CC_FLAGS_SYS) -bd
|
---|
49 | CC_OBJ_OUT=-fo=
|
---|
50 | CC_LST_OUT=
|
---|
51 | CC_PC_2_STDOUT=-pc
|
---|
52 |
|
---|
53 | CXX_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
|
---|
54 | CXX_FLAGS_EXE=$(CXX_FLAGS)
|
---|
55 | CXX_FLAGS_DLL=$(CXX_FLAGS) -bd
|
---|
56 | CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
|
---|
57 | CXX_FLAGS_VDD=$(CXX_FLAGS_SYS)
|
---|
58 | CXX_FLAGS_IFS=$(CXX_FLAGS_SYS) -bd
|
---|
59 | CXX_OBJ_OUT=-fo=
|
---|
60 | CXX_LST_OUT=
|
---|
61 | CXX_PC_2_STDOUT=-pc
|
---|
62 |
|
---|
63 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
64 |
|
---|
65 | LINK_FLAGS=Sort global Debug codeview Option quiet, dosseg, eliminate, manglednames, caseexact
|
---|
66 | LINK_FLAGS_EXE=$(LINK_FLAGS)
|
---|
67 | LINK_FLAGS_DLL=$(LINK_FLAGS)
|
---|
68 | LINK_FLAGS_SYS=$(LINK_FLAGS) Option oneautodata, internalrelocs, togglerelocs
|
---|
69 | LINK_FLAGS_VDD=$(LINK_FLAGS_SYS)
|
---|
70 | LINK_FLAGS_IFS=$(LINK_FLAGS_SYS)
|
---|
71 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
72 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
73 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
74 | LINK_CMD_VDD=$(LINK) $(LINK_FLAGS_VDD) @$(TARGET_LNK)
|
---|
75 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
76 | LINK_LNK1=file $(TARGET_OBJS: =^
|
---|
77 | file )
|
---|
78 | LINK_LNK2=libpath $(WATCOM)\lib386\os2;$(WATCOM)\lib386;
|
---|
79 | LINK_LNK3=option map=$(TARGET_MAP)
|
---|
80 | LINK_LNK4=library $(TARGET_LIBS: =^, )
|
---|
81 | LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
|
---|
82 |
|
---|
83 | RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
|
---|
84 | RL_FLAGS=-x2 -n
|
---|
85 |
|
---|
86 |
|
---|
87 | #
|
---|
88 | # Libraries and object files.
|
---|
89 | #
|
---|
90 | LIB_OS = os2386.lib
|
---|
91 | LIB_C_OBJ = clib3r.lib
|
---|
92 | LIB_C_DLL = clbrdll.lib
|
---|
93 | LIB_C_RTDLL = clbrdll.lib
|
---|
94 | LIB_C_NRE = clib3r.lib
|
---|
95 | LIB_C_DMNGL =
|
---|
96 | OBJ_PROFILE =
|
---|
97 |
|
---|
98 | # ---OS2, DEBUG, WAT11-------------------------
|
---|
99 |
|
---|