Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # |
2 | # File: makefile.nt | |
3 | # Author: Julian Smart | |
4 | # Created: 1997 | |
3848ffef | 5 | # Updated: |
2bda0e17 KB |
6 | # Copyright: (c) 1997, Julian Smart |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit) | |
11 | # Arguments: | |
12 | # | |
13 | # FINAL=1 argument to nmake to build version with no debugging info. | |
14 | # dll builds a library (wxdll.lib) suitable for creating DLLs | |
2bda0e17 | 15 | # |
48d1144b | 16 | !include <..\makevc.env> |
2bda0e17 KB |
17 | |
18 | THISDIR=$(WXWIN)\src\msw | |
19 | ||
20 | !if "$(WXMAKINGDLL)" == "1" | |
ca5c8b2d JS |
21 | LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll |
22 | DUMMYOBJ=$D\dummydll.obj | |
2bda0e17 KB |
23 | !else |
24 | LIBTARGET=$(WXLIB) | |
ca5c8b2d | 25 | DUMMYOBJ=$D\dummy.obj |
2bda0e17 KB |
26 | !endif |
27 | ||
b23386b2 | 28 | # Please set these according to the settings in setup.h, so we can include |
2bda0e17 KB |
29 | # the appropriate libraries in wx.lib |
30 | ||
b23386b2 | 31 | # This one overrides the others, to be consistent with the settings in setup.h |
2bda0e17 KB |
32 | MINIMAL_WXWINDOWS_SETUP=0 |
33 | ||
2bda0e17 KB |
34 | PERIPH_LIBS= |
35 | PERIPH_TARGET= | |
36 | PERIPH_CLEAN_TARGET= | |
37 | ||
f97c9854 JS |
38 | # These are absolute paths, so that the compiler |
39 | # generates correct __FILE__ symbols for debugging. | |
40 | # Otherwise you don't be able to double-click on a memory | |
41 | # error to load that file. | |
42 | GENDIR=$(WXDIR)\src\generic | |
43 | COMMDIR=$(WXDIR)\src\common | |
2bda0e17 | 44 | OLEDIR=ole |
f97c9854 | 45 | MSWDIR=$(WXDIR)\src\msw |
ca5c8b2d | 46 | DOCDIR = $(WXDIR)\docs |
2bda0e17 | 47 | |
ca5c8b2d JS |
48 | {..\generic}.cpp{..\generic\$D}.obj: |
49 | cl @<< | |
50 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
2bda0e17 KB |
51 | << |
52 | ||
ca5c8b2d JS |
53 | {..\common}.cpp{..\common\$D}.obj: |
54 | cl @<< | |
55 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
89c684ef JS |
56 | << |
57 | ||
ca5c8b2d JS |
58 | {..\msw}.cpp{..\msw\$D}.obj: |
59 | cl @<< | |
60 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
2bda0e17 KB |
61 | << |
62 | ||
ca5c8b2d JS |
63 | {..\msw\ole}.cpp{..\msw\ole\$D}.obj: |
64 | cl @<< | |
65 | $(CPPFLAGS) /Fo$@ /c /Tp $< | |
2bda0e17 KB |
66 | << |
67 | ||
ca5c8b2d JS |
68 | GENERICOBJS= \ |
69 | ..\generic\$D\choicdgg.obj \ | |
70 | ..\generic\$D\gridg.obj \ | |
71 | ..\generic\$D\laywin.obj \ | |
72 | ..\generic\$D\panelg.obj \ | |
73 | ..\generic\$D\prop.obj \ | |
74 | ..\generic\$D\propform.obj \ | |
75 | ..\generic\$D\proplist.obj \ | |
76 | ..\generic\$D\sashwin.obj \ | |
77 | ..\generic\$D\scrolwin.obj \ | |
78 | ..\generic\$D\splitter.obj \ | |
79 | ..\generic\$D\statusbr.obj \ | |
80 | ..\generic\$D\tabg.obj \ | |
81 | ..\generic\$D\textdlgg.obj | |
82 | ||
83 | # ..\generic\$D\imaglist.obj \ | |
84 | # ..\generic\$D\treectrl.obj \ | |
85 | # ..\generic\$D\listctrl.obj \ | |
86 | # ..\generic\$D\notebook.obj \ | |
2bda0e17 | 87 | |
ca5c8b2d JS |
88 | # These are generic things that don't need to be compiled on MSW, |
89 | # but sometimes it's useful to do so for testing purposes. | |
90 | NONESSENTIALOBJS= \ | |
91 | ..\generic\$D\printps.obj \ | |
92 | ..\generic\$D\prntdlgg.obj \ | |
93 | ..\generic\$D\msgdlgg.obj \ | |
94 | ..\generic\$D\helpxlp.obj \ | |
95 | ..\generic\$D\colrdlgg.obj \ | |
96 | ..\generic\$D\fontdlgg.obj | |
2bda0e17 | 97 | |
ca5c8b2d JS |
98 | COMMONOBJS = \ |
99 | ..\common\$D\cmndata.obj \ | |
100 | ..\common\$D\config.obj \ | |
eebc8b5e | 101 | ..\common\$D\dcbase.obj \ |
ca5c8b2d JS |
102 | ..\common\$D\db.obj \ |
103 | ..\common\$D\dbtable.obj \ | |
104 | ..\common\$D\docview.obj \ | |
105 | ..\common\$D\docmdi.obj \ | |
106 | ..\common\$D\dynarray.obj \ | |
107 | ..\common\$D\dynlib.obj \ | |
108 | ..\common\$D\event.obj \ | |
109 | ..\common\$D\file.obj \ | |
110 | ..\common\$D\filefn.obj \ | |
111 | ..\common\$D\fileconf.obj \ | |
112 | ..\common\$D\framecmn.obj \ | |
113 | ..\common\$D\ftp.obj \ | |
114 | ..\common\$D\gdicmn.obj \ | |
115 | ..\common\$D\image.obj \ | |
e9c4b1a2 JS |
116 | ..\common\$D\imagjpeg.obj \ |
117 | ..\common\$D\imagpng.obj \ | |
e702ff0f | 118 | ..\common\$D\imaggif.obj \ |
ca5c8b2d JS |
119 | ..\common\$D\intl.obj \ |
120 | ..\common\$D\ipcbase.obj \ | |
121 | ..\common\$D\helpbase.obj \ | |
122 | ..\common\$D\layout.obj \ | |
123 | ..\common\$D\log.obj \ | |
124 | ..\common\$D\memory.obj \ | |
125 | ..\common\$D\mimetype.obj \ | |
126 | ..\common\$D\module.obj \ | |
127 | ..\common\$D\odbc.obj \ | |
128 | ..\common\$D\object.obj \ | |
129 | ..\common\$D\prntbase.obj \ | |
130 | ..\common\$D\resource.obj \ | |
131 | ..\common\$D\tbarbase.obj \ | |
132 | ..\common\$D\tbarsmpl.obj \ | |
133 | ..\common\$D\textfile.obj \ | |
134 | ..\common\$D\timercmn.obj \ | |
135 | ..\common\$D\utilscmn.obj \ | |
136 | ..\common\$D\validate.obj \ | |
137 | ..\common\$D\valgen.obj \ | |
138 | ..\common\$D\valtext.obj \ | |
139 | ..\common\$D\date.obj \ | |
140 | ..\common\$D\hash.obj \ | |
141 | ..\common\$D\list.obj \ | |
7bcb11d3 | 142 | ..\common\$D\paper.obj \ |
ca5c8b2d JS |
143 | ..\common\$D\string.obj \ |
144 | ..\common\$D\socket.obj \ | |
145 | ..\common\$D\sckaddr.obj \ | |
70190256 | 146 | ..\common\$D\sckint.obj \ |
ca5c8b2d JS |
147 | ..\common\$D\sckfile.obj \ |
148 | ..\common\$D\sckipc.obj \ | |
149 | ..\common\$D\sckstrm.obj \ | |
150 | ..\common\$D\url.obj \ | |
151 | ..\common\$D\http.obj \ | |
152 | ..\common\$D\protocol.obj \ | |
153 | ..\common\$D\time.obj \ | |
154 | ..\common\$D\tokenzr.obj \ | |
155 | ..\common\$D\wxexpr.obj \ | |
156 | ..\common\$D\y_tab.obj \ | |
157 | ..\common\$D\extended.obj \ | |
158 | ..\common\$D\process.obj \ | |
159 | ..\common\$D\wfstream.obj \ | |
160 | ..\common\$D\mstream.obj \ | |
161 | ..\common\$D\zstream.obj \ | |
162 | ..\common\$D\stream.obj \ | |
163 | ..\common\$D\datstrm.obj \ | |
164 | ..\common\$D\objstrm.obj \ | |
165 | ..\common\$D\variant.obj \ | |
f3dbd876 OK |
166 | ..\common\$D\wincmn.obj \ |
167 | ..\common\$D\wxchar.obj | |
2bda0e17 | 168 | |
ca5c8b2d JS |
169 | MSWOBJS = \ |
170 | ..\msw\$D\accel.obj \ | |
171 | ..\msw\$D\app.obj \ | |
172 | ..\msw\$D\bitmap.obj \ | |
173 | ..\msw\$D\bmpbuttn.obj \ | |
174 | ..\msw\$D\brush.obj \ | |
175 | ..\msw\$D\button.obj \ | |
176 | ..\msw\$D\checkbox.obj \ | |
177 | ..\msw\$D\checklst.obj \ | |
789295bf | 178 | ..\msw\$D\caret.obj \ |
ca5c8b2d JS |
179 | ..\msw\$D\choice.obj \ |
180 | ..\msw\$D\clipbrd.obj \ | |
181 | ..\msw\$D\colordlg.obj \ | |
182 | ..\msw\$D\colour.obj \ | |
183 | ..\msw\$D\combobox.obj \ | |
184 | ..\msw\$D\control.obj \ | |
185 | ..\msw\$D\curico.obj \ | |
186 | ..\msw\$D\cursor.obj \ | |
187 | ..\msw\$D\data.obj \ | |
188 | ..\msw\$D\dc.obj \ | |
189 | ..\msw\$D\dcmemory.obj \ | |
190 | ..\msw\$D\dcclient.obj \ | |
191 | ..\msw\$D\dcprint.obj \ | |
192 | ..\msw\$D\dcscreen.obj \ | |
193 | ..\msw\$D\dde.obj \ | |
194 | ..\msw\$D\dialog.obj \ | |
195 | ..\msw\$D\dib.obj \ | |
196 | ..\msw\$D\dibutils.obj \ | |
197 | ..\msw\$D\dirdlg.obj \ | |
6c41a418 | 198 | ..\msw\$D\dragimag.obj \ |
ca5c8b2d JS |
199 | ..\msw\$D\filedlg.obj \ |
200 | ..\msw\$D\font.obj \ | |
201 | ..\msw\$D\fontdlg.obj \ | |
202 | ..\msw\$D\frame.obj \ | |
203 | ..\msw\$D\gauge95.obj \ | |
204 | ..\msw\$D\gaugemsw.obj \ | |
205 | ..\msw\$D\gdiobj.obj \ | |
206 | ..\msw\$D\helpwin.obj \ | |
207 | ..\msw\$D\icon.obj \ | |
208 | ..\msw\$D\iniconf.obj \ | |
209 | ..\msw\$D\joystick.obj \ | |
210 | ..\msw\$D\imaglist.obj \ | |
211 | ..\msw\$D\listbox.obj \ | |
212 | ..\msw\$D\listctrl.obj \ | |
213 | ..\msw\$D\main.obj \ | |
214 | ..\msw\$D\mdi.obj \ | |
215 | ..\msw\$D\menu.obj \ | |
216 | ..\msw\$D\menuitem.obj \ | |
217 | ..\msw\$D\metafile.obj \ | |
218 | ..\msw\$D\minifram.obj \ | |
219 | ..\msw\$D\msgdlg.obj \ | |
220 | ..\msw\$D\nativdlg.obj \ | |
221 | ..\msw\$D\notebook.obj \ | |
222 | ..\msw\$D\ownerdrw.obj \ | |
223 | ..\msw\$D\palette.obj \ | |
224 | ..\msw\$D\pen.obj \ | |
225 | ..\msw\$D\penwin.obj \ | |
226 | ..\msw\$D\pnghand.obj \ | |
227 | ..\msw\$D\printdlg.obj \ | |
228 | ..\msw\$D\printwin.obj \ | |
229 | ..\msw\$D\radiobox.obj \ | |
230 | ..\msw\$D\radiobut.obj \ | |
231 | ..\msw\$D\region.obj \ | |
232 | ..\msw\$D\registry.obj \ | |
233 | ..\msw\$D\regconf.obj \ | |
234 | ..\msw\$D\scrolbar.obj \ | |
235 | ..\msw\$D\settings.obj \ | |
236 | ..\msw\$D\slidrmsw.obj \ | |
237 | ..\msw\$D\slider95.obj \ | |
238 | ..\msw\$D\spinbutt.obj \ | |
239 | ..\msw\$D\statbmp.obj \ | |
240 | ..\msw\$D\statbox.obj \ | |
241 | ..\msw\$D\statbr95.obj \ | |
242 | ..\msw\$D\stattext.obj \ | |
243 | ..\msw\$D\tabctrl.obj \ | |
244 | ..\msw\$D\taskbar.obj \ | |
245 | ..\msw\$D\tbar95.obj \ | |
246 | ..\msw\$D\tbarmsw.obj \ | |
247 | ..\msw\$D\textctrl.obj \ | |
248 | ..\msw\$D\thread.obj \ | |
249 | ..\msw\$D\timer.obj \ | |
250 | ..\msw\$D\tooltip.obj \ | |
251 | ..\msw\$D\treectrl.obj \ | |
252 | ..\msw\$D\utils.obj \ | |
253 | ..\msw\$D\utilsexc.obj \ | |
254 | ..\msw\ole\$D\uuid.obj \ | |
255 | ..\msw\$D\wave.obj \ | |
256 | ..\msw\$D\window.obj \ | |
257 | ..\msw\$D\xpmhand.obj \ | |
258 | ..\msw\ole\$D\dataobj.obj \ | |
259 | ..\msw\ole\$D\automtn.obj \ | |
260 | ..\msw\ole\$D\droptgt.obj \ | |
261 | ..\msw\ole\$D\dropsrc.obj \ | |
262 | ..\msw\ole\$D\oleutils.obj | |
2bda0e17 | 263 | |
ca5c8b2d JS |
264 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. |
265 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) | |
fcc6dddd | 266 | |
ca5c8b2d | 267 | # Normal, static library |
0f3e3e0c | 268 | all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg $(LIBTARGET) |
fcc6dddd | 269 | |
e12f91dc | 270 | dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D |
fcc6dddd | 271 | |
ca5c8b2d JS |
272 | test: $(MSWDIR)\$D\wave.obj |
273 | test2: ..\common\Debug\config.obj | |
fcc6dddd | 274 | |
ca5c8b2d JS |
275 | $D: |
276 | mkdir $D | |
fcc6dddd | 277 | |
ca5c8b2d JS |
278 | $(COMMDIR)\$D: |
279 | mkdir $(COMMDIR)\$D | |
fcc6dddd | 280 | |
ca5c8b2d JS |
281 | $(MSWDIR)\$D: |
282 | mkdir $(MSWDIR)\$D | |
fcc6dddd | 283 | |
ca5c8b2d JS |
284 | $(GENDIR)\$D: |
285 | mkdir $(GENDIR)\$D | |
fcc6dddd | 286 | |
ca5c8b2d JS |
287 | $(OLEDIR)\$D: |
288 | mkdir $(OLEDIR)\$D | |
fcc6dddd | 289 | |
ca5c8b2d JS |
290 | # wxWindows library as DLL |
291 | dll: | |
a4fe6524 | 292 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) |
2bda0e17 | 293 | |
ca5c8b2d | 294 | cleandll: |
a4fe6524 | 295 | nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) |
2bda0e17 | 296 | |
ca5c8b2d JS |
297 | # wxWindows + app as DLL. Only affects main.cpp. |
298 | dllapp: | |
299 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 | |
79c3e0e1 | 300 | |
ca5c8b2d JS |
301 | # wxWindows + app as DLL, for Netscape plugin - remove DllMain. |
302 | dllnp: | |
303 | nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1 | |
79c3e0e1 | 304 | |
ca5c8b2d JS |
305 | # Use this to make dummy.obj and generate a PCH. |
306 | # You might use the dll target, then the pch target, in order to | |
307 | # generate a DLL, then a PCH/dummy.obj for compiling your applications with. | |
308 | # | |
309 | # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH | |
310 | # are associated with wx.lib. When using a DLL version of wxWindows, however, | |
311 | # the DLL is compiled without a PCH, so you only need it for compiling the app. | |
312 | # In fact headers are compiled differently depending on whether a DLL is being made | |
313 | # or an app is calling the DLL exported functionality (WXDLLEXPORT is different | |
314 | # in each case) so you couldn't use the same PCH. | |
e12f91dc | 315 | pch: |
a4fe6524 | 316 | nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME) |
79c3e0e1 | 317 | |
ca5c8b2d JS |
318 | pch1: dirs $(DUMMYOBJ) |
319 | echo $(DUMMYOBJ) | |
79c3e0e1 | 320 | |
ca5c8b2d | 321 | !if "$(WXMAKINGDLL)" != "1" |
cf447356 | 322 | |
ca5c8b2d | 323 | ### Static library |
fcc6dddd | 324 | |
ca5c8b2d JS |
325 | $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS) |
326 | -erase $(LIBTARGET) | |
327 | $(implib) @<< | |
328 | -out:$@ | |
329 | -machine:$(CPU) | |
330 | $(OBJECTS) $(PERIPH_LIBS) | |
cf447356 GL |
331 | << |
332 | ||
ca5c8b2d | 333 | !else |
341287bf | 334 | |
ca5c8b2d | 335 | ### Update the import library |
3d8bd7d6 | 336 | |
ca5c8b2d JS |
337 | $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS) |
338 | $(implib) @<< | |
339 | -machine:$(CPU) | |
340 | -def:wx.def | |
341 | $(DUMMYOBJ) $(OBJECTS) | |
342 | -out:$(WXDIR)\lib\$(WXLIBNAME).lib | |
ca7731b7 GL |
343 | << |
344 | ||
ca5c8b2d JS |
345 | # Update the dynamic link library |
346 | $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\$(WXLIBNAME).lib | |
347 | $(link) @<< | |
348 | $(LINKFLAGS) | |
349 | -out:$(WXDIR)\lib\$(WXLIBNAME).dll | |
350 | $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(WXDIR)\lib\winpng.lib $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\xpm.lib | |
2bda0e17 KB |
351 | << |
352 | ||
ca5c8b2d | 353 | !endif |
2bda0e17 | 354 | |
2bda0e17 KB |
355 | |
356 | ######################################################## | |
ca5c8b2d | 357 | # Windows-specific objects |
2bda0e17 | 358 | |
ca5c8b2d JS |
359 | $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h |
360 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp | |
2bda0e17 | 361 | |
ca5c8b2d | 362 | $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h |
2bda0e17 | 363 | cl @<< |
ca5c8b2d | 364 | $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp |
2bda0e17 KB |
365 | << |
366 | ||
ca5c8b2d | 367 | # If taking wxWindows from CVS, setup.h doesn't exist yet. |
b23386b2 JS |
368 | # Actually the 'if not exist setup.h' test doesn't work |
369 | # (copies the file anyway) | |
370 | # we'll have to comment this rule out. | |
371 | ||
372 | #$(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h | |
373 | # cd "$(WXDIR)"\include\wx\msw | |
374 | # if not exist setup.h copy setup0.h setup.h | |
375 | # cd "$(WXDIR)"\src\msw | |
2bda0e17 | 376 | |
ca5c8b2d | 377 | ..\common\$D\extended.obj: ..\common\extended.c |
f60d0f94 | 378 | cl @<< |
ca5c8b2d | 379 | $(CPPFLAGS2) /c $(COMMDIR)\extended.c /Fo$@ |
f60d0f94 JS |
380 | << |
381 | ||
ca5c8b2d | 382 | ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c |
f60d0f94 | 383 | cl @<< |
ca5c8b2d | 384 | $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ |
f60d0f94 JS |
385 | << |
386 | ||
ca5c8b2d JS |
387 | ..\common\y_tab.c: ..\common\dosyacc.c |
388 | copy "..\common"\dosyacc.c "..\common"\y_tab.c | |
f60d0f94 | 389 | |
ca5c8b2d JS |
390 | ..\common\lex_yy.c: ..\common\doslex.c |
391 | copy "..\common"\doslex.c "..\common"\lex_yy.c | |
f60d0f94 | 392 | |
4fabb575 | 393 | $(OBJECTS): $(WXDIR)/include/wx/setup.h |
2bda0e17 | 394 | |
2bda0e17 KB |
395 | # Peripheral components |
396 | ||
fbcb4166 JS |
397 | png: |
398 | cd $(WXDIR)\src\png | |
48d1144b | 399 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) |
fbcb4166 JS |
400 | cd $(WXDIR)\src\msw |
401 | ||
402 | clean_png: | |
403 | cd $(WXDIR)\src\png | |
48d1144b | 404 | nmake -f makefile.vc clean |
fbcb4166 JS |
405 | cd $(WXDIR)\src\msw |
406 | ||
407 | zlib: | |
408 | cd $(WXDIR)\src\zlib | |
48d1144b | 409 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) |
fbcb4166 JS |
410 | cd $(WXDIR)\src\msw |
411 | ||
412 | clean_zlib: | |
413 | cd $(WXDIR)\src\zlib | |
48d1144b | 414 | nmake -f makefile.vc clean |
fbcb4166 JS |
415 | cd $(WXDIR)\src\msw |
416 | ||
0f3e3e0c JS |
417 | jpeg: |
418 | cd $(WXDIR)\src\jpeg | |
419 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) all | |
420 | cd $(WXDIR)\src\msw | |
421 | ||
422 | clean_jpeg: | |
423 | cd $(WXDIR)\src\jpeg | |
424 | nmake -f makefile.vc clean | |
425 | cd $(WXDIR)\src\msw | |
426 | ||
2bda0e17 | 427 | xpm: |
2fd284a4 | 428 | cd $(WXDIR)\src\xpm |
48d1144b | 429 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) |
2bda0e17 KB |
430 | cd $(WXDIR)\src\msw |
431 | ||
432 | clean_xpm: | |
2fd284a4 | 433 | cd $(WXDIR)\src\xpm |
48d1144b | 434 | nmake -f makefile.vc clean |
2bda0e17 KB |
435 | cd $(WXDIR)\src\msw |
436 | ||
437 | rcparser: | |
438 | cd $(WXDIR)\utils\rcparser\src | |
48d1144b | 439 | nmake -f makefile.vc FINAL=$(FINAL) |
2bda0e17 KB |
440 | cd $(WXDIR)\src\msw |
441 | ||
0f3e3e0c | 442 | clean: $(PERIPH_CLEAN_TARGET) clean_png clean_zlib clean_jpeg clean_xpm |
2bda0e17 | 443 | -erase $(LIBTARGET) |
ca5c8b2d | 444 | -erase $(WXDIR)\lib\$(WXLIBNAME).pdb |
2bda0e17 KB |
445 | -erase ..\..\lib\wx200.dll |
446 | -erase ..\..\lib\wx200.lib | |
447 | -erase ..\..\lib\wx200.exp | |
448 | -erase ..\..\lib\wx200.pdb | |
449 | -erase ..\..\lib\wx200.ilk | |
450 | -erase *.pdb | |
451 | -erase *.sbr | |
ca5c8b2d JS |
452 | -erase $(WXLIBNAME).pch |
453 | -erase $(GENDIR)\$D\*.obj | |
454 | -erase $(GENDIR)\$D\*.pdb | |
455 | -erase $(GENDIR)\$D\*.sbr | |
456 | -erase $(COMMDIR)\$D\*.obj | |
457 | -erase $(COMMDIR)\$D\*.pdb | |
458 | -erase $(COMMDIR)\$D\*.sbr | |
459 | -erase $(COMMDIR)\\y_tab.c | |
460 | -erase $(COMMDIR)\lex_yy.c | |
461 | -erase $(MSWDIR)\$D\*.obj | |
462 | -erase $(MSWDIR)\$D\*.sbr | |
463 | -erase $(MSWDIR)\$D\*.pdb | |
464 | -erase $(OLEDIR)\$D\*.obj | |
465 | -erase $(OLEDIR)\$D\*.sbr | |
466 | -erase $(OLEDIR)\$D\*.pdb | |
467 | -rmdir $(D) | |
468 | -rmdir ole\$(D) | |
469 | -rmdir ..\generic\$(D) | |
470 | -rmdir ..\common\$(D) | |
2bda0e17 KB |
471 | |
472 | cleanall: clean | |
473 | ||
474 | # Making documents | |
62448488 JS |
475 | docs: allhlp allhtml allpdfrtf |
476 | alldocs: docs | |
20e85460 | 477 | hlp: wxhlp portinghlp |
2bda0e17 | 478 | wxhlp: $(DOCDIR)/winhelp/wx.hlp |
f3a65071 | 479 | prophlp: $(DOCDIR)/winhelp/prop.hlp |
2bda0e17 KB |
480 | refhlp: $(DOCDIR)/winhelp/techref.hlp |
481 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
f3a65071 | 482 | proprtf: $(DOCDIR)/winhelp/prop.rtf |
2bda0e17 | 483 | pdfrtf: $(DOCDIR)/pdf/wx.rtf |
f3a65071 | 484 | proppdfrtf: $(DOCDIR)/pdf/prop.rtf |
2bda0e17 | 485 | refpdfrtf: $(DOCDIR)/pdf/techref.rtf |
20e85460 | 486 | html: wxhtml portinghtml |
2bda0e17 | 487 | wxhtml: $(DOCDIR)\html\wx\wx.htm |
f3a65071 | 488 | prophtml: $(DOCDIR)\html\proplist\prop.htm |
20e85460 | 489 | ps: wxps referencps |
2bda0e17 | 490 | wxps: $(WXDIR)\docs\ps\wx.ps |
f3a65071 | 491 | propps: $(WXDIR)\docs\ps\prop.ps |
2bda0e17 KB |
492 | referencps: $(WXDIR)\docs\ps\referenc.ps |
493 | ||
494 | portinghtml: $(DOCDIR)\html\porting\port.htm | |
495 | portingrtf: $(DOCDIR)/winhelp/porting.rtf | |
496 | portinghlp: $(DOCDIR)/winhelp/porting.hlp | |
497 | portingpdfrtf: $(DOCDIR)/pdf/porting.rtf | |
498 | portingps: $(WXDIR)\docs\ps\porting.ps | |
499 | ||
20e85460 | 500 | allhlp: wxhlp portinghlp prophlp |
2bda0e17 | 501 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 502 | nmake -f makefile.vc hlp |
2bda0e17 KB |
503 | cd $(THISDIR) |
504 | ||
505 | # cd $(WXDIR)\utils\wxhelp\src | |
48d1144b | 506 | # nmake -f makefile.vc hlp |
2bda0e17 | 507 | # cd $(WXDIR)\utils\tex2rtf\src |
48d1144b | 508 | # nmake -f makefile.vc hlp |
2bda0e17 | 509 | # cd $(WXDIR)\utils\wxgraph\src |
48d1144b | 510 | # nmake -f makefile.vc hlp |
2bda0e17 | 511 | # cd $(WXDIR)\utils\wxchart\src |
48d1144b | 512 | # nmake -f makefile.vc hlp |
2bda0e17 | 513 | # cd $(WXDIR)\utils\wxtree\src |
48d1144b | 514 | # nmake -f makefile.vc hlp |
2bda0e17 | 515 | # cd $(WXDIR)\utils\wxbuild\src |
48d1144b | 516 | # nmake -f makefile.vc hlp |
2bda0e17 | 517 | # cd $(WXDIR)\utils\wxgrid\src |
48d1144b | 518 | # nmake -f makefile.vc hlp |
2bda0e17 | 519 | |
20e85460 | 520 | allhtml: wxhtml portinghtml prophtml |
2bda0e17 | 521 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 522 | nmake -f makefile.vc html |
2bda0e17 KB |
523 | cd $(THISDIR) |
524 | ||
48d1144b | 525 | # nmake -f makefile.vc html |
2bda0e17 | 526 | # cd $(WXDIR)\utils\dialoged\src |
48d1144b | 527 | # nmake -f makefile.vc html |
2bda0e17 | 528 | # cd $(WXDIR)\utils\hytext\src |
48d1144b | 529 | # nmake -f makefile.vc html |
2bda0e17 | 530 | # cd $(WXDIR)\utils\wxhelp\src |
48d1144b | 531 | # nmake -f makefile.vc html |
2bda0e17 | 532 | # cd $(WXDIR)\utils\tex2rtf\src |
48d1144b | 533 | # nmake -f makefile.vc html |
2bda0e17 | 534 | # cd $(WXDIR)\utils\wxgraph\src |
48d1144b | 535 | # nmake -f makefile.vc html |
2bda0e17 | 536 | # cd $(WXDIR)\utils\wxchart\src |
48d1144b | 537 | # nmake -f makefile.vc html |
2bda0e17 | 538 | # cd $(WXDIR)\utils\wxtree\src |
48d1144b | 539 | # nmake -f makefile.vc html |
2bda0e17 | 540 | |
20e85460 | 541 | allps: wxps referencps portingps propps |
2bda0e17 | 542 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 543 | nmake -f makefile.vc ps |
2bda0e17 KB |
544 | cd $(THISDIR) |
545 | ||
20e85460 | 546 | allpdfrtf: pdfrtf portingpdfrtf proppdfrtf |
2bda0e17 | 547 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 548 | nmake -f makefile.vc pdfrtf |
2bda0e17 KB |
549 | cd $(THISDIR) |
550 | ||
551 | # cd $(WXDIR)\utils\wxhelp\src | |
48d1144b | 552 | # nmake -f makefile.vc ps |
2bda0e17 | 553 | # cd $(WXDIR)\utils\tex2rtf\src |
48d1144b | 554 | # nmake -f makefile.vc ps |
2bda0e17 | 555 | # cd $(WXDIR)\utils\wxgraph\src |
48d1144b | 556 | # nmake -f makefile.vc ps |
2bda0e17 | 557 | # cd $(WXDIR)\utils\wxchart\src |
48d1144b | 558 | # nmake -f makefile.vc ps |
2bda0e17 | 559 | # cd $(WXDIR)\utils\wxtree\src |
48d1144b | 560 | # nmake -f makefile.vc ps |
2bda0e17 KB |
561 | # cd $(THISDIR) |
562 | ||
2bda0e17 KB |
563 | $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj |
564 | cd $(DOCDIR)/latex/wx | |
565 | -erase wx.ph | |
566 | hc wx | |
567 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp | |
568 | move wx.cnt $(DOCDIR)\winhelp\wx.cnt | |
569 | cd $(THISDIR) | |
570 | ||
571 | $(DOCDIR)/winhelp/porting.hlp: $(DOCDIR)/latex/porting/porting.rtf $(DOCDIR)/latex/porting/porting.hpj | |
572 | cd $(DOCDIR)/latex/porting | |
573 | -erase porting.ph | |
574 | hc porting | |
575 | move porting.hlp $(DOCDIR)\winhelp\porting.hlp | |
576 | move porting.cnt $(DOCDIR)\winhelp\porting.cnt | |
577 | cd $(THISDIR) | |
578 | ||
f3a65071 | 579 | $(DOCDIR)/winhelp/prop.hlp: $(DOCDIR)/latex/proplist/prop.rtf $(DOCDIR)/latex/proplist/prop.hpj |
e3a43801 | 580 | cd $(DOCDIR)/latex/proplist |
f3a65071 JS |
581 | -erase prop.ph |
582 | hc prop | |
583 | move prop.hlp $(DOCDIR)\winhelp\prop.hlp | |
584 | move prop.cnt $(DOCDIR)\winhelp\prop.cnt | |
e3a43801 JS |
585 | cd $(THISDIR) |
586 | ||
2bda0e17 KB |
587 | $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj |
588 | cd $(DOCDIR)/latex/techref | |
589 | -erase techref.ph | |
590 | hc techref | |
591 | move techref.hlp $(DOCDIR)\winhelp\techref.hlp | |
592 | move techref.cnt $(DOCDIR)\winhelp\techref.cnt | |
593 | cd $(THISDIR) | |
594 | ||
595 | $(DOCDIR)/latex/wx/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
596 | cd $(DOCDIR)\latex\wx | |
e12f91dc | 597 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp |
2bda0e17 KB |
598 | cd $(THISDIR) |
599 | ||
600 | $(DOCDIR)/latex/porting/porting.rtf: $(DOCDIR)/latex/porting/porting.tex | |
601 | cd $(DOCDIR)\latex\porting | |
e12f91dc | 602 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/latex/porting/porting.rtf -twice -winhelp |
2bda0e17 KB |
603 | cd $(THISDIR) |
604 | ||
f3a65071 | 605 | $(DOCDIR)/latex/proplist/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex |
e3a43801 | 606 | cd $(DOCDIR)\latex\proplist |
e12f91dc | 607 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/prop.rtf -twice -winhelp |
e3a43801 JS |
608 | cd $(THISDIR) |
609 | ||
2bda0e17 KB |
610 | $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
611 | cd $(DOCDIR)\latex\techref | |
e12f91dc | 612 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp |
2bda0e17 KB |
613 | cd $(THISDIR) |
614 | ||
615 | $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
616 | cd $(DOCDIR)\latex\wx | |
617 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
e12f91dc | 618 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf |
2bda0e17 KB |
619 | cd $(THISDIR) |
620 | ||
621 | $(DOCDIR)/pdf/porting.rtf: $(DOCDIR)/latex/porting/porting.tex | |
622 | cd $(DOCDIR)\latex\porting | |
623 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
e12f91dc | 624 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf |
2bda0e17 KB |
625 | cd $(THISDIR) |
626 | ||
20e85460 | 627 | $(DOCDIR)/pdf/prop.rtf: $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex |
e3a43801 JS |
628 | cd $(DOCDIR)\latex\proplist |
629 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
e12f91dc | 630 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf |
e3a43801 JS |
631 | cd $(THISDIR) |
632 | ||
2bda0e17 KB |
633 | $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
634 | cd $(DOCDIR)\latex\techref | |
635 | -copy *.bmp *.wmf $(DOCDIR)\pdf | |
e12f91dc | 636 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf |
2bda0e17 KB |
637 | cd $(THISDIR) |
638 | ||
639 | $(DOCDIR)\html\wx\wx.htm: $(DOCDIR)\latex\wx\classes.tex $(DOCDIR)\latex\wx\body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)\latex\wx\manual.tex | |
640 | cd $(DOCDIR)\latex\wx | |
641 | -mkdir $(DOCDIR)\html\wx | |
e12f91dc | 642 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html |
2bda0e17 | 643 | -erase $(DOCDIR)\html\wx\*.con |
06e43511 JS |
644 | -erase $(DOCDIR)\html\wx\*.ref |
645 | -erase $(DOCDIR)\latex\wx\*.con | |
646 | -erase $(DOCDIR)\latex\wx\*.ref | |
647 | cd $(THISDIR) | |
2bda0e17 KB |
648 | |
649 | $(DOCDIR)\html\porting\port.htm: $(DOCDIR)\latex\porting\porting.tex | |
650 | cd $(DOCDIR)\latex\porting | |
651 | -mkdir $(DOCDIR)\html\porting | |
e12f91dc | 652 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\porting\porting.tex $(DOCDIR)\html\porting\port.htm -twice -html |
2bda0e17 KB |
653 | -erase $(DOCDIR)\html\porting\*.con |
654 | -erase $(DOCDIR)\html\porting\*.ref | |
655 | -erase $(DOCDIR)\latex\porting\*.con | |
656 | -erase $(DOCDIR)\latex\porting\*.ref | |
657 | cd $(THISDIR) | |
658 | ||
e3a43801 JS |
659 | $(DOCDIR)\html\proplist\prop.htm: $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\latex\proplist\body.tex $(DOCDIR)\latex\proplist\classes.tex $(DOCDIR)\latex\proplist\changes.tex |
660 | cd $(DOCDIR)\latex\proplist | |
661 | -mkdir $(DOCDIR)\html\proplist | |
e12f91dc | 662 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\proplist\prop.tex $(DOCDIR)\html\proplist\prop.htm -twice -html |
e3a43801 JS |
663 | -erase $(DOCDIR)\html\proplist\*.con |
664 | -erase $(DOCDIR)\html\proplist\*.ref | |
665 | -erase $(DOCDIR)\latex\proplist\*.con | |
666 | -erase $(DOCDIR)\latex\proplist\*.ref | |
2bda0e17 KB |
667 | cd $(THISDIR) |
668 | ||
669 | $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex | |
670 | cd $(WXDIR)\docs\latex\wx | |
671 | -latex manual | |
672 | -latex manual | |
673 | -makeindx manual | |
674 | -bibtex manual | |
675 | -latex manual | |
676 | -latex manual | |
677 | cd $(THISDIR) | |
678 | ||
679 | $(WXDIR)\docs\latex\porting\porting.dvi: $(DOCDIR)/latex/porting/porting.tex | |
680 | cd $(WXDIR)\docs\latex\porting | |
681 | -latex porting | |
682 | -latex porting | |
683 | -makeindx porting | |
684 | -bibtex porting | |
685 | -latex porting | |
686 | -latex porting | |
687 | cd $(THISDIR) | |
688 | ||
689 | $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi | |
690 | cd $(WXDIR)\docs\latex\wx | |
691 | -dvips32 -o wx.ps manual | |
692 | move wx.ps $(WXDIR)\docs\ps\wx.ps | |
693 | cd $(THISDIR) | |
694 | ||
695 | $(WXDIR)\docs\ps\porting.ps: $(WXDIR)\docs\latex\porting\porting.dvi | |
696 | cd $(WXDIR)\docs\latex\porting | |
697 | -dvips32 -o porting.ps porting | |
698 | move porting.ps $(WXDIR)\docs\ps\porting.ps | |
699 | cd $(THISDIR) | |
700 | ||
701 | $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex | |
702 | cd $(WXDIR)\docs\latex\wx | |
703 | -latex referenc | |
704 | -latex referenc | |
705 | -makeindx referenc | |
706 | -bibtex referenc | |
707 | -latex referenc | |
708 | -latex referenc | |
709 | cd $(THISDIR) | |
710 | ||
711 | $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi | |
712 | cd $(WXDIR)\docs\latex\wx | |
713 | -dvips32 -o referenc.ps referenc | |
714 | move referenc.ps $(WXDIR)\docs\ps\referenc.ps | |
715 | cd $(THISDIR) | |
716 | ||
da36f544 JS |
717 | # In order to force document reprocessing |
718 | touchmanual: | |
719 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
62448488 JS |
720 | |
721 | updatedocs: touchmanual alldocs | |
722 | ||
723 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the | |
724 | # Office StartUp folder, and PDFMaker should be installed. | |
725 | updatepdf: # touchmanual pdfrtf | |
e12f91dc | 726 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" |
2845ddc2 | 727 |