1 | # $Id: setup.os2debwat11.mk,v 1.1 2002-04-13 04:39:38 bird Exp $
|
---|
2 |
|
---|
3 | # ---OS2, DEBUG, VAC308-------------------------
|
---|
4 | ENV_NAME="OS/2, Debug, IBM VisualAge for C++ 3.08"
|
---|
5 | ENV_STATUS=OK
|
---|
6 |
|
---|
7 | #
|
---|
8 | # Include some shared standard stuff: ALP.
|
---|
9 | #
|
---|
10 | !include $(PATH_MAKE)\setup.os2debalp.mk
|
---|
11 |
|
---|
12 | #
|
---|
13 | # The tools
|
---|
14 | #
|
---|
15 | AR=ilib.exe
|
---|
16 | CC=wcc386.exe
|
---|
17 | CXX=wpp386.exe
|
---|
18 | LINK=wlink.exe
|
---|
19 | IMPLIB=implib.exe
|
---|
20 | RC=rc.exe
|
---|
21 | RL=rc.exe
|
---|
22 | EXEPACK=lxlite.exe
|
---|
23 |
|
---|
24 |
|
---|
25 | #
|
---|
26 | # The flags
|
---|
27 | #
|
---|
28 | AR_FLAGS=/nologo /noignorecase
|
---|
29 | AR_CMD=$(AR) $(AR_FLAGS) $@ @$(TARGET_LNK)
|
---|
30 | _AR_LNK1= "$(TARGET_OBJS: ="&^
|
---|
31 | ")"
|
---|
32 | AR_LNK1= $(_AR_LNK1:""=)
|
---|
33 | AR_LNK2= $(@R).lst
|
---|
34 |
|
---|
35 | CC_FLAGS_OS = -bt=os2v2
|
---|
36 |
|
---|
37 | CC_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
|
---|
38 | CC_FLAGS_EXE=$(CC_FLAGS)
|
---|
39 | CC_FLAGS_DLL=$(CC_FLAGS) -bd
|
---|
40 | CC_FLAGS_CRT=$(CC_FLAGS) -bd -br
|
---|
41 | CC_FLAGS_SYS=$(CC_FLAGS)
|
---|
42 | CC_FLAGS_IFS=$(CC_FLAGS_SYS)
|
---|
43 | CC_OBJ_OUT=-fo=
|
---|
44 | CC_LST_OUT=
|
---|
45 | CC_PC_2_STDOUT=
|
---|
46 |
|
---|
47 | CXX_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
|
---|
48 | CXX_FLAGS_EXE=$(CXX_FLAGS)
|
---|
49 | CXX_FLAGS_DLL=$(CXX_FLAGS) -bd
|
---|
50 | CXX_FLAGS_CRT=$(CXX_FLAGS) -bd -br
|
---|
51 | CXX_FLAGS_SYS=$(CXX_FLAGS) -s -zdp -zff -zgf
|
---|
52 | CC_FLAGS_IFS=$(CC_FLAGS_SYS)
|
---|
53 | CXX_OBJ_OUT=-fo=
|
---|
54 | CXX_PC_2_STDOUT=
|
---|
55 |
|
---|
56 | IMPLIB_FLAGS=/NOI /Nologo
|
---|
57 |
|
---|
58 | LINK_FLAGS=/nofree /nologo /de /map /NOE /NOD /Optfunc /PACKCODE /PACKDATA
|
---|
59 | LINK_FLAGS_EXE=$(LINK_FLAGS) /EXECutable /STACK:$(TARGET_STACKSIZE)
|
---|
60 | LINK_FLAGS_DLL=$(LINK_FLAGS) /DLL
|
---|
61 | LINK_FLAGS_SYS=$(LINK_FLAGS) /PDD /Align:16 /NOIgnorecase
|
---|
62 | LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
|
---|
63 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
64 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
65 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
66 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
67 | !if 0 # nofree works better for me (kso) when working with my drivers...
|
---|
68 | LINK_LNK1=$(TARGET_OBJS: =^
|
---|
69 | )
|
---|
70 | LINK_LNK2=/OUT:$(TARGET)
|
---|
71 | LINK_LNK3=/MAP:$(TARGET_MAP)
|
---|
72 | LINK_LNK4=$(TARGET_LIBS: =^
|
---|
73 | )
|
---|
74 | LINK_LNK5=$(TARGET_DEF)
|
---|
75 | !else
|
---|
76 | LINK_LNK1=$(TARGET_OBJS: =+^
|
---|
77 | ),
|
---|
78 | LINK_LNK2=$(TARGET),
|
---|
79 | LINK_LNK3=$(TARGET_MAP),
|
---|
80 | LINK_LNK4=$(TARGET_LIBS: =+^
|
---|
81 | ),
|
---|
82 | LINK_LNK5=$(TARGET_DEF)
|
---|
83 | !endif
|
---|
84 |
|
---|
85 | LINK_FLAGS=format os2 lx pmcompatible option quiet, map
|
---|
86 | LINK_FLAGS_EXE=$(LINK_FLAGS)
|
---|
87 | LINK_FLAGS_DLL=$(LINK_FLAGS)
|
---|
88 | LINK_FLAGS_SYS=format os2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview
|
---|
89 | LINK_FLAGS_IFS=$(LINK_FLAGS_DLL)
|
---|
90 | LINK_CMD_EXE=$(LINK) $(LINK_FLAGS_EXE) @$(TARGET_LNK)
|
---|
91 | LINK_CMD_DLL=$(LINK) $(LINK_FLAGS_DLL) @$(TARGET_LNK)
|
---|
92 | LINK_CMD_SYS=$(LINK) $(LINK_FLAGS_SYS) @$(TARGET_LNK)
|
---|
93 | LINK_CMD_IFS=$(LINK) $(LINK_FLAGS_IFS) @$(TARGET_LNK)
|
---|
94 | LINK_LNK1=file $(TARGET_OBJS: =^
|
---|
95 | file )
|
---|
96 | LINK_LNK2=libpath $(WATCOM)\lib386;$(WATCOM)\lib386\os2;
|
---|
97 | LINK_LNK3=option map=$(TARGET_MAP)
|
---|
98 | LINK_LNK4=library $(TARGET_LIBS: =^, )
|
---|
99 | LINK_LNK5=name $(PATH_TARGET)\$(TARGET_NAME).$(TARGET_EXT)
|
---|
100 |
|
---|
101 | RC_FLAGS=-r -n -i $(PATH_INCLUDES:;= -i ) $(RC_DEFINES) $(RC_INCLUDES)
|
---|
102 | RL_FLAGS=-x2 -n
|
---|
103 |
|
---|
104 | #
|
---|
105 | # Libraries and object files.
|
---|
106 | #
|
---|
107 | LIB_OS = os2386.lib
|
---|
108 | LIB_C_OBJ = clib3r.lib
|
---|
109 | LIB_C_DLL = clbrdll.lib
|
---|
110 | LIB_C_RTDLL = clbrdll.lib
|
---|
111 | LIB_C_NRE = clib3r.lib
|
---|
112 | LIB_C_DMNGL =
|
---|
113 | OBJ_PROFILE =
|
---|
114 |
|
---|
115 | # ---OS2, DEBUG, VAC308-------------------------
|
---|
116 |
|
---|