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