]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # File: Makeva.env | |
3 | # Author: David Webster | |
4 | # Created: Wed Apr 17 08:36:42 1999 | |
5 | # Updated: | |
6 | # | |
7 | # VisualAge C++ V3.0 makefile include file | |
8 | # | |
9 | ||
10 | # Suffixes | |
11 | OBJSUFF=obj | |
12 | SRCSUFF=cpp | |
13 | ||
14 | OS2FLAGS=/c /W3 /D__VISAGECPP__ /Ss /Q /N100 | |
15 | OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16 | |
16 | OS2LIBFLAGS=/NOL /NOE | |
17 | ||
18 | # Set an environment variable, WXWIN, to your WXWIN directory | |
19 | WXDIR=$(WXWIN) | |
20 | ||
21 | # Set to where your UPM and LAN libs are | |
22 | UPMLIB=C:\OS2TK45\LIB | |
23 | NETLIB=C:\OS2TK45\LIB | |
24 | TCPIP=C:\OS2TK45\LIB | |
25 | ||
26 | WXSRC=$(WXDIR)\src\os2 | |
27 | WXINC=$(WXDIR)\include | |
28 | WXBASESRC=$(WXDIR)\src\common | |
29 | EXTRAINC=$(WXDIR)\src\png | |
30 | LINK=icc | |
31 | RC=rc | |
32 | ||
33 | ##################################################################### | |
34 | # These are the possible DLL/non-DLL usages: | |
35 | # | |
36 | # Type _DLL/_WINDLL WXUSINGDLL WXMAKINGDLL Library | |
37 | #-------------------------------------------------------------------- | |
38 | # Normal application - - - wx.lib | |
39 | # | |
40 | # wxWin as DLL Defined - Defined wx23.lib | |
41 | # | |
42 | # App using wxWin DLL - Defined - wx23.lib | |
43 | # | |
44 | # App built as one DLL Defined - - wx.lib | |
45 | # | |
46 | ###################################################################### | |
47 | # | |
48 | # Compiling your app: | |
49 | #-------------------- | |
50 | # when compiling an app to use the DLL version of wxWindows | |
51 | # (but not to be a DLL itself), set WXUSINGDLL to 1 in your | |
52 | # makefile just before including ntwxwin.mak. | |
53 | # To compile wxWin _and_ app itself as a DLL, set DLL to 1 | |
54 | # in ntwxwin.mak, and do not set WXUSINGDLL. | |
55 | # | |
56 | # Compiling wxWindows: | |
57 | #--------------------- | |
58 | # Use the dll target to compile wxWindows as DLL; then make 'pch' | |
59 | # to generate a precompiled header for your apps to use. BUG: must compile without | |
60 | # wxExpr (USE_WX_RESOURCES = 0) for this to link properly. Don't know why yet. | |
61 | # Use the dllapp target to compile wxWindows for making a DLL app (not implemented yet) | |
62 | ||
63 | #DLL=0 | |
64 | ||
65 | !if "$(WXUSINGDLL)" == "1" | |
66 | EXTRADLLFLAGS=/DWXUSINGDLL=1 | |
67 | EXTRALNKFLAGS=/EXEC | |
68 | !endif | |
69 | ||
70 | !if "$(WXMAKINGDLL)" == "1" | |
71 | EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__ | |
72 | EXTRALNKFLAGS=/DLL | |
73 | !endif | |
74 | ||
75 | !if "$(WXMAKINGDLL)" == "0" && "$(DLL)" == "1" | |
76 | EXTRADLLFLAGS= | |
77 | EXTRALNKFLAGS=/EXEC | |
78 | !endif | |
79 | ||
80 | !ifndef FINAL | |
81 | FINAL=0 | |
82 | DEBUG=1 | |
83 | !endif | |
84 | ||
85 | !ifndef DLL | |
86 | DLL=0 | |
87 | !endif | |
88 | ||
89 | # This sets 'D' to a suitable directory name | |
90 | # for this kind of build, and WXLIBNAME to one of wx (static release), wx_d (static debug), | |
91 | # wx200 (DLL release), wx200_d (DLL debug) | |
92 | ||
93 | !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1" | |
94 | WXLIBNAME=wx23 | |
95 | !else | |
96 | WXLIBNAME=wx | |
97 | !endif | |
98 | ||
99 | !if "$(NEW_WXLIBNAME)" != "" | |
100 | WXLIBNAME=$(NEW_WXLIBNAME) | |
101 | !endif | |
102 | ||
103 | !if "$(FINAL)" == "1" | |
104 | !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1" | |
105 | D=RelseOS2DLL | |
106 | !else | |
107 | D=RelseOS2 | |
108 | !endif | |
109 | !else | |
110 | !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1" | |
111 | D=DebugOS2DLL | |
112 | !else | |
113 | D=DebugOS2 | |
114 | !endif | |
115 | !endif | |
116 | ||
117 | WXLIB=$(WXDIR)\lib\$(WXLIBNAME).lib | |
118 | ||
119 | INC=-I$(WXINC) -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib -I$(WXDIR)/src/xpm -I$(WXDIR)/src/tiff -I$(WXDIR)/src/png -I$(EXTRAINC) | |
120 | !if "$(WXMAKINGDLL)" == "1" | |
121 | LINKLIBS=CPPOM30I.LIB CPPOOC3I.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB $(TCPIP)\TCP32DLL.LIB $(TCPIP)\SO32DLL.LIB | |
122 | EXTRALIBS=$(WXDIR)\lib\os2pngd.lib $(WXDIR)\lib\os2zlibd.lib $(WXDIR)\lib\os2jpegd.lib $(WXDIR)\lib\os2xpmd.lib $(WXDIR)\lib\os2tiffd.lib | |
123 | LIBS=$(LINKLIBS) $(EXTRALIBS) | |
124 | !else | |
125 | LINKLIBS=CPPOM30.LIB CPPOOC3.LIB OS2386.LIB $(UPMLIB)\UPM32.LIB $(NETLIB)\NETAPI32.LIB $(TCPIP)\TCP32DLL.LIB $(TCPIP)\SO32DLL.LIB | |
126 | EXTRALIBS=$(WXDIR)\lib\os2png.lib $(WXDIR)\lib\os2zlib.lib $(WXDIR)\lib\os2jpeg.lib $(WXDIR)\lib\os2xpm.lib $(WXDIR)\lib\os2tiff.lib | |
127 | LIBS=$(WXLIB) $(LINKLIBS) $(EXTRALIBS) | |
128 | !endif | |
129 | ||
130 | MAKEPRECOMP=/FiWX/WXPREC.H | |
131 | OPTIONS= | |
132 | ||
133 | !if "$(FINAL)" == "0" | |
134 | OPT = | |
135 | DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb | |
136 | LINK_DEBUG_FLAGS=/DEBUG | |
137 | CRTFLAG=/Gm /Gd | |
138 | !else | |
139 | # /O1 - smallest code | |
140 | # /O2 - fastest code | |
141 | OPT = /O+ /Oc /G5 | |
142 | DEBUG_FLAGS= | |
143 | LINK_DEBUG_FLAGS=/RELEASE | |
144 | CRTFLAG=/Gm /Gd | |
145 | !endif | |
146 | ||
147 | !if "$(DLL)" == "0" | |
148 | ||
149 | !if "$(NOPCH)" == "1" | |
150 | PCH= | |
151 | PRECOMP= | |
152 | MAKEPRECOMP= | |
153 | !else | |
154 | PCH=$(WXLIBNAME).pch | |
155 | PRECOMP=/Si$(PCH) | |
156 | MAKEPRECOMP=/Fi$(PCH) | |
157 | !endif | |
158 | ||
159 | CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS) | |
160 | # If you don't include wxprec.h, use CPPFLAGS2 | |
161 | CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) $(CRTFLAG) $(OVERRIDEFLAGS) | |
162 | LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS) | |
163 | ||
164 | !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1" | |
165 | DUMMY=dummydll | |
166 | !else | |
167 | DUMMY=dummy | |
168 | !endif | |
169 | ||
170 | !else | |
171 | ||
172 | !if "$(WXMAKINGDLL)" == "1" || "$(WXUSINGDLL)" == "1" | |
173 | PCH=$(WXLIBNAME).pch | |
174 | DUMMY=dummydll | |
175 | !else | |
176 | PCH=$(WXLIBNAME).pch | |
177 | DUMMY=dummy | |
178 | !endif | |
179 | ||
180 | PRECOMP=/SiWX/WXPREC.H | |
181 | CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXPM__ $(INC) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS) | |
182 | CPPFLAGS2=$(OS2FLAGS) $(DEBUG_FLAGS) /D__WXPM__ $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) $(EXTRADLLFLAGS) | |
183 | LINKFLAGS=$(OS2LINKFLAGS) $(LINK_DEBUG_FLAGS) $(EXTRALNKFLAGS) | |
184 | !endif | |
185 | ||
186 | DUMMYOBJ=$(WXDIR)\src\os2\$D\$(DUMMY).obj | |
187 | ||
188 | .c.obj: | |
189 | icc @<< | |
190 | $(CPPFLAGS2) /Fo$@ /c $< | |
191 | << | |
192 | ||
193 | .cpp.obj: | |
194 | icc @<< | |
195 | $(CPPFLAGS2) /Fo$@ /c $< | |
196 | << | |
197 |