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