]>
Commit | Line | Data |
---|---|---|
1db8dc4a | 1 | # This file was automatically generated by tmake at 19:20, 2001/02/08 |
a1b82138 VZ |
2 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE VC.T! |
3 | ||
4 | # File: makefile.vc | |
5 | # Author: Julian Smart | |
6 | # Created: 1997 | |
3848ffef | 7 | # Updated: |
a1b82138 | 8 | # Copyright: (c) 1997, Julian Smart |
2bda0e17 KB |
9 | # |
10 | # "%W% %G%" | |
11 | # | |
12 | # Makefile : Builds wxWindows library wx.lib for VC++ (32-bit) | |
13 | # Arguments: | |
14 | # | |
15 | # FINAL=1 argument to nmake to build version with no debugging info. | |
16 | # dll builds a library (wxdll.lib) suitable for creating DLLs | |
2bda0e17 | 17 | # |
48d1144b | 18 | !include <..\makevc.env> |
2bda0e17 KB |
19 | |
20 | THISDIR=$(WXWIN)\src\msw | |
21 | ||
22 | !if "$(WXMAKINGDLL)" == "1" | |
ca5c8b2d JS |
23 | LIBTARGET=$(WXDIR)\lib\$(WXLIBNAME).dll |
24 | DUMMYOBJ=$D\dummydll.obj | |
2bda0e17 KB |
25 | !else |
26 | LIBTARGET=$(WXLIB) | |
ca5c8b2d | 27 | DUMMYOBJ=$D\dummy.obj |
2bda0e17 KB |
28 | !endif |
29 | ||
fb6261e9 JS |
30 | # This one overrides the others, to be consistent with the settings in setup.h |
31 | MINIMAL_WXWINDOWS_SETUP=0 | |
32 | ||
2bda0e17 KB |
33 | PERIPH_LIBS= |
34 | PERIPH_TARGET= | |
35 | PERIPH_CLEAN_TARGET= | |
36 | ||
3ca6a5f0 BP |
37 | # Set to 0 if not using GLCanvas (only affects DLL build) |
38 | USE_GLCANVAS=1 | |
39 | ||
f97c9854 JS |
40 | # These are absolute paths, so that the compiler |
41 | # generates correct __FILE__ symbols for debugging. | |
42 | # Otherwise you don't be able to double-click on a memory | |
43 | # error to load that file. | |
44 | GENDIR=$(WXDIR)\src\generic | |
45 | COMMDIR=$(WXDIR)\src\common | |
2bda0e17 | 46 | OLEDIR=ole |
f97c9854 | 47 | MSWDIR=$(WXDIR)\src\msw |
ca5c8b2d | 48 | DOCDIR = $(WXDIR)\docs |
4705ee2d | 49 | HTMLDIR = $(WXDIR)\src\html |
2bda0e17 | 50 | |
ca5c8b2d | 51 | {..\generic}.cpp{..\generic\$D}.obj: |
8e97b17b | 52 | cl @<< |
ca5c8b2d | 53 | $(CPPFLAGS) /Fo$@ /c /Tp $< |
2bda0e17 KB |
54 | << |
55 | ||
ca5c8b2d | 56 | {..\common}.cpp{..\common\$D}.obj: |
8e97b17b | 57 | cl @<< |
ca5c8b2d | 58 | $(CPPFLAGS) /Fo$@ /c /Tp $< |
89c684ef JS |
59 | << |
60 | ||
530e7fa3 | 61 | {..\common}.c{..\common\$D}.obj: |
8e97b17b | 62 | cl @<< |
cc9efb9b | 63 | $(CPPFLAGS2) /Fo$@ /c /Tc $< |
530e7fa3 VZ |
64 | << |
65 | ||
ca5c8b2d | 66 | {..\msw}.cpp{..\msw\$D}.obj: |
8e97b17b | 67 | cl @<< |
ca5c8b2d | 68 | $(CPPFLAGS) /Fo$@ /c /Tp $< |
2bda0e17 KB |
69 | << |
70 | ||
2bbf4618 | 71 | {..\msw}.c{..\msw\$D}.obj: |
8e97b17b | 72 | cl @<< |
2bbf4618 RD |
73 | $(CPPFLAGS2) /Fo$@ /c /Tc $< |
74 | << | |
75 | ||
ca5c8b2d | 76 | {..\msw\ole}.cpp{..\msw\ole\$D}.obj: |
8e97b17b | 77 | cl @<< |
ca5c8b2d | 78 | $(CPPFLAGS) /Fo$@ /c /Tp $< |
2bda0e17 KB |
79 | << |
80 | ||
4705ee2d | 81 | {..\html}.cpp{..\html\$D}.obj: |
8e97b17b | 82 | cl @<< |
4705ee2d RS |
83 | $(CPPFLAGS) /Fo$@ /c /Tp $< |
84 | << | |
85 | ||
a1b82138 | 86 | GENERICOBJS= ..\generic\$D\busyinfo.obj \ |
8e97b17b VZ |
87 | ..\generic\$D\calctrl.obj \ |
88 | ..\generic\$D\choicdgg.obj \ | |
51a58d8b | 89 | ..\generic\$D\dirctrlg.obj \ |
8e97b17b VZ |
90 | ..\generic\$D\dragimgg.obj \ |
91 | ..\generic\$D\grid.obj \ | |
92 | ..\generic\$D\gridsel.obj \ | |
93 | ..\generic\$D\laywin.obj \ | |
94 | ..\generic\$D\logg.obj \ | |
95 | ..\generic\$D\numdlgg.obj \ | |
96 | ..\generic\$D\panelg.obj \ | |
8e97b17b VZ |
97 | ..\generic\$D\progdlgg.obj \ |
98 | ..\generic\$D\prop.obj \ | |
99 | ..\generic\$D\propform.obj \ | |
100 | ..\generic\$D\proplist.obj \ | |
101 | ..\generic\$D\sashwin.obj \ | |
102 | ..\generic\$D\scrolwin.obj \ | |
484523cf | 103 | ..\generic\$D\splash.obj \ |
8e97b17b VZ |
104 | ..\generic\$D\splitter.obj \ |
105 | ..\generic\$D\statusbr.obj \ | |
106 | ..\generic\$D\tbarsmpl.obj \ | |
107 | ..\generic\$D\textdlgg.obj \ | |
108 | ..\generic\$D\tipdlg.obj \ | |
01fa3fe7 | 109 | ..\generic\$D\tipwin.obj \ |
fb6261e9 | 110 | ..\generic\$D\treectlg.obj \ |
8e97b17b VZ |
111 | ..\generic\$D\treelay.obj \ |
112 | ..\generic\$D\wizard.obj | |
2bda0e17 | 113 | |
ca5c8b2d JS |
114 | # These are generic things that don't need to be compiled on MSW, |
115 | # but sometimes it's useful to do so for testing purposes. | |
ccf0b1d7 | 116 | NONESSENTIALOBJS= ..\generic\$D\caret.obj \ |
8e97b17b VZ |
117 | ..\generic\$D\colrdlgg.obj \ |
118 | ..\generic\$D\dcpsg.obj \ | |
119 | ..\generic\$D\dirdlgg.obj \ | |
120 | ..\generic\$D\filedlgg.obj \ | |
121 | ..\generic\$D\fontdlgg.obj \ | |
122 | ..\generic\$D\helpext.obj \ | |
123 | ..\generic\$D\helphtml.obj \ | |
124 | ..\generic\$D\helpwxht.obj \ | |
125 | ..\generic\$D\helpxlp.obj \ | |
126 | ..\generic\$D\imaglist.obj \ | |
127 | ..\generic\$D\listctrl.obj \ | |
128 | ..\generic\$D\msgdlgg.obj \ | |
129 | ..\generic\$D\notebook.obj \ | |
130 | ..\generic\$D\printps.obj \ | |
131 | ..\generic\$D\prntdlgg.obj \ | |
132 | ..\generic\$D\statline.obj \ | |
fb6261e9 | 133 | ..\generic\$D\tabg.obj |
2bda0e17 | 134 | |
ca5c8b2d | 135 | COMMONOBJS = \ |
8e97b17b VZ |
136 | ..\common\$D\y_tab.obj \ |
137 | ..\common\$D\appcmn.obj \ | |
138 | ..\common\$D\choiccmn.obj \ | |
139 | ..\common\$D\clipcmn.obj \ | |
140 | ..\common\$D\cmdline.obj \ | |
141 | ..\common\$D\cmndata.obj \ | |
142 | ..\common\$D\config.obj \ | |
fb6261e9 | 143 | ..\common\$D\cshelp.obj \ |
8e97b17b VZ |
144 | ..\common\$D\ctrlcmn.obj \ |
145 | ..\common\$D\ctrlsub.obj \ | |
146 | ..\common\$D\datetime.obj \ | |
147 | ..\common\$D\datstrm.obj \ | |
148 | ..\common\$D\db.obj \ | |
149 | ..\common\$D\dbtable.obj \ | |
150 | ..\common\$D\dcbase.obj \ | |
151 | ..\common\$D\dlgcmn.obj \ | |
152 | ..\common\$D\dndcmn.obj \ | |
153 | ..\common\$D\dobjcmn.obj \ | |
154 | ..\common\$D\docmdi.obj \ | |
155 | ..\common\$D\docview.obj \ | |
156 | ..\common\$D\dynarray.obj \ | |
157 | ..\common\$D\dynlib.obj \ | |
484523cf | 158 | ..\common\$D\effects.obj \ |
8e97b17b VZ |
159 | ..\common\$D\encconv.obj \ |
160 | ..\common\$D\event.obj \ | |
161 | ..\common\$D\extended.obj \ | |
162 | ..\common\$D\ffile.obj \ | |
163 | ..\common\$D\file.obj \ | |
164 | ..\common\$D\fileconf.obj \ | |
165 | ..\common\$D\filefn.obj \ | |
96edf638 | 166 | ..\common\$D\filename.obj \ |
8e97b17b VZ |
167 | ..\common\$D\filesys.obj \ |
168 | ..\common\$D\fontcmn.obj \ | |
169 | ..\common\$D\fontmap.obj \ | |
170 | ..\common\$D\framecmn.obj \ | |
171 | ..\common\$D\fs_inet.obj \ | |
172 | ..\common\$D\fs_mem.obj \ | |
173 | ..\common\$D\fs_zip.obj \ | |
174 | ..\common\$D\ftp.obj \ | |
175 | ..\common\$D\gdicmn.obj \ | |
176 | ..\common\$D\geometry.obj \ | |
177 | ..\common\$D\gifdecod.obj \ | |
178 | ..\common\$D\hash.obj \ | |
179 | ..\common\$D\helpbase.obj \ | |
180 | ..\common\$D\http.obj \ | |
181 | ..\common\$D\imagall.obj \ | |
182 | ..\common\$D\imagbmp.obj \ | |
183 | ..\common\$D\image.obj \ | |
184 | ..\common\$D\imaggif.obj \ | |
185 | ..\common\$D\imagjpeg.obj \ | |
186 | ..\common\$D\imagpcx.obj \ | |
187 | ..\common\$D\imagpng.obj \ | |
188 | ..\common\$D\imagpnm.obj \ | |
189 | ..\common\$D\imagtiff.obj \ | |
190 | ..\common\$D\intl.obj \ | |
191 | ..\common\$D\ipcbase.obj \ | |
192 | ..\common\$D\layout.obj \ | |
193 | ..\common\$D\lboxcmn.obj \ | |
194 | ..\common\$D\list.obj \ | |
195 | ..\common\$D\log.obj \ | |
196 | ..\common\$D\longlong.obj \ | |
3b94ab18 | 197 | ..\common\$D\matrix.obj \ |
8e97b17b VZ |
198 | ..\common\$D\memory.obj \ |
199 | ..\common\$D\menucmn.obj \ | |
200 | ..\common\$D\mimecmn.obj \ | |
201 | ..\common\$D\module.obj \ | |
202 | ..\common\$D\mstream.obj \ | |
203 | ..\common\$D\object.obj \ | |
204 | ..\common\$D\objstrm.obj \ | |
205 | ..\common\$D\odbc.obj \ | |
206 | ..\common\$D\paper.obj \ | |
207 | ..\common\$D\prntbase.obj \ | |
208 | ..\common\$D\process.obj \ | |
209 | ..\common\$D\protocol.obj \ | |
484523cf | 210 | ..\common\$D\quantize.obj \ |
8e97b17b VZ |
211 | ..\common\$D\resource.obj \ |
212 | ..\common\$D\sckaddr.obj \ | |
213 | ..\common\$D\sckfile.obj \ | |
214 | ..\common\$D\sckipc.obj \ | |
215 | ..\common\$D\sckstrm.obj \ | |
216 | ..\common\$D\serbase.obj \ | |
217 | ..\common\$D\sizer.obj \ | |
218 | ..\common\$D\socket.obj \ | |
219 | ..\common\$D\strconv.obj \ | |
220 | ..\common\$D\stream.obj \ | |
221 | ..\common\$D\string.obj \ | |
222 | ..\common\$D\tbarbase.obj \ | |
223 | ..\common\$D\textcmn.obj \ | |
224 | ..\common\$D\textfile.obj \ | |
225 | ..\common\$D\timercmn.obj \ | |
226 | ..\common\$D\tokenzr.obj \ | |
484523cf | 227 | ..\common\$D\treebase.obj \ |
8e97b17b VZ |
228 | ..\common\$D\txtstrm.obj \ |
229 | ..\common\$D\unzip.obj \ | |
230 | ..\common\$D\url.obj \ | |
231 | ..\common\$D\utilscmn.obj \ | |
232 | ..\common\$D\valgen.obj \ | |
233 | ..\common\$D\validate.obj \ | |
234 | ..\common\$D\valtext.obj \ | |
235 | ..\common\$D\variant.obj \ | |
236 | ..\common\$D\wfstream.obj \ | |
237 | ..\common\$D\wincmn.obj \ | |
238 | ..\common\$D\wxchar.obj \ | |
239 | ..\common\$D\wxexpr.obj \ | |
240 | ..\common\$D\zipstrm.obj \ | |
241 | ..\common\$D\zstream.obj | |
a1b82138 VZ |
242 | |
243 | MSWOBJS = ..\msw\$D\accel.obj \ | |
8e97b17b VZ |
244 | ..\msw\$D\app.obj \ |
245 | ..\msw\ole\$D\automtn.obj \ | |
246 | ..\msw\$D\bitmap.obj \ | |
247 | ..\msw\$D\bmpbuttn.obj \ | |
248 | ..\msw\$D\brush.obj \ | |
249 | ..\msw\$D\button.obj \ | |
250 | ..\msw\$D\caret.obj \ | |
251 | ..\msw\$D\checkbox.obj \ | |
252 | ..\msw\$D\checklst.obj \ | |
253 | ..\msw\$D\choice.obj \ | |
254 | ..\msw\$D\clipbrd.obj \ | |
255 | ..\msw\$D\colordlg.obj \ | |
256 | ..\msw\$D\colour.obj \ | |
257 | ..\msw\$D\combobox.obj \ | |
258 | ..\msw\$D\control.obj \ | |
259 | ..\msw\$D\curico.obj \ | |
260 | ..\msw\$D\cursor.obj \ | |
261 | ..\msw\$D\data.obj \ | |
262 | ..\msw\ole\$D\dataobj.obj \ | |
263 | ..\msw\$D\dc.obj \ | |
264 | ..\msw\$D\dcclient.obj \ | |
265 | ..\msw\$D\dcmemory.obj \ | |
266 | ..\msw\$D\dcprint.obj \ | |
267 | ..\msw\$D\dcscreen.obj \ | |
268 | ..\msw\$D\dde.obj \ | |
269 | ..\msw\$D\dialog.obj \ | |
270 | ..\msw\$D\dialup.obj \ | |
271 | ..\msw\$D\dib.obj \ | |
272 | ..\msw\$D\dibutils.obj \ | |
273 | ..\msw\$D\dir.obj \ | |
274 | ..\msw\$D\dirdlg.obj \ | |
275 | ..\msw\$D\dragimag.obj \ | |
276 | ..\msw\ole\$D\dropsrc.obj \ | |
277 | ..\msw\ole\$D\droptgt.obj \ | |
278 | ..\msw\$D\enhmeta.obj \ | |
279 | ..\msw\$D\filedlg.obj \ | |
280 | ..\msw\$D\font.obj \ | |
281 | ..\msw\$D\fontdlg.obj \ | |
282 | ..\msw\$D\fontenum.obj \ | |
283 | ..\msw\$D\fontutil.obj \ | |
284 | ..\msw\$D\frame.obj \ | |
285 | ..\msw\$D\gauge95.obj \ | |
286 | ..\msw\$D\gdiimage.obj \ | |
287 | ..\msw\$D\gdiobj.obj \ | |
288 | ..\msw\$D\glcanvas.obj \ | |
289 | ..\msw\$D\gsocket.obj \ | |
290 | ..\msw\$D\gsockmsw.obj \ | |
f6bcfd97 | 291 | ..\msw\$D\helpchm.obj \ |
8e97b17b VZ |
292 | ..\msw\$D\helpwin.obj \ |
293 | ..\msw\$D\icon.obj \ | |
294 | ..\msw\$D\imaglist.obj \ | |
295 | ..\msw\$D\joystick.obj \ | |
296 | ..\msw\$D\listbox.obj \ | |
297 | ..\msw\$D\listctrl.obj \ | |
298 | ..\msw\$D\main.obj \ | |
299 | ..\msw\$D\mdi.obj \ | |
300 | ..\msw\$D\menu.obj \ | |
301 | ..\msw\$D\menuitem.obj \ | |
302 | ..\msw\$D\metafile.obj \ | |
303 | ..\msw\$D\mimetype.obj \ | |
304 | ..\msw\$D\minifram.obj \ | |
305 | ..\msw\$D\msgdlg.obj \ | |
306 | ..\msw\$D\nativdlg.obj \ | |
307 | ..\msw\$D\notebook.obj \ | |
308 | ..\msw\ole\$D\oleutils.obj \ | |
309 | ..\msw\$D\ownerdrw.obj \ | |
310 | ..\msw\$D\palette.obj \ | |
311 | ..\msw\$D\pen.obj \ | |
312 | ..\msw\$D\penwin.obj \ | |
313 | ..\msw\$D\printdlg.obj \ | |
314 | ..\msw\$D\printwin.obj \ | |
315 | ..\msw\$D\radiobox.obj \ | |
316 | ..\msw\$D\radiobut.obj \ | |
317 | ..\msw\$D\regconf.obj \ | |
318 | ..\msw\$D\region.obj \ | |
319 | ..\msw\$D\registry.obj \ | |
320 | ..\msw\$D\scrolbar.obj \ | |
321 | ..\msw\$D\settings.obj \ | |
322 | ..\msw\$D\slider95.obj \ | |
323 | ..\msw\$D\spinbutt.obj \ | |
324 | ..\msw\$D\spinctrl.obj \ | |
325 | ..\msw\$D\statbmp.obj \ | |
326 | ..\msw\$D\statbox.obj \ | |
327 | ..\msw\$D\statbr95.obj \ | |
328 | ..\msw\$D\statline.obj \ | |
329 | ..\msw\$D\stattext.obj \ | |
330 | ..\msw\$D\tabctrl.obj \ | |
331 | ..\msw\$D\taskbar.obj \ | |
332 | ..\msw\$D\tbar95.obj \ | |
333 | ..\msw\$D\textctrl.obj \ | |
1db8dc4a | 334 | ..\msw\$D\tglbtn.obj \ |
8e97b17b VZ |
335 | ..\msw\$D\thread.obj \ |
336 | ..\msw\$D\timer.obj \ | |
337 | ..\msw\$D\tooltip.obj \ | |
338 | ..\msw\$D\treectrl.obj \ | |
339 | ..\msw\$D\utils.obj \ | |
340 | ..\msw\$D\utilsexc.obj \ | |
341 | ..\msw\ole\$D\uuid.obj \ | |
342 | ..\msw\$D\wave.obj \ | |
343 | ..\msw\$D\window.obj \ | |
344 | ..\msw\$D\xpmhand.obj | |
2bda0e17 | 345 | |
2131a664 | 346 | HTMLOBJS = ..\html\$D\helpctrl.obj \ |
8e97b17b VZ |
347 | ..\html\$D\helpdata.obj \ |
348 | ..\html\$D\helpfrm.obj \ | |
349 | ..\html\$D\htmlcell.obj \ | |
350 | ..\html\$D\htmlfilt.obj \ | |
351 | ..\html\$D\htmlpars.obj \ | |
352 | ..\html\$D\htmltag.obj \ | |
353 | ..\html\$D\htmlwin.obj \ | |
354 | ..\html\$D\htmprint.obj \ | |
355 | ..\html\$D\m_dflist.obj \ | |
356 | ..\html\$D\m_fonts.obj \ | |
357 | ..\html\$D\m_hline.obj \ | |
358 | ..\html\$D\m_image.obj \ | |
359 | ..\html\$D\m_layout.obj \ | |
360 | ..\html\$D\m_links.obj \ | |
361 | ..\html\$D\m_list.obj \ | |
362 | ..\html\$D\m_meta.obj \ | |
363 | ..\html\$D\m_pre.obj \ | |
364 | ..\html\$D\m_tables.obj \ | |
365 | ..\html\$D\winpars.obj | |
2131a664 | 366 | |
4705ee2d | 367 | |
ca5c8b2d | 368 | # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. |
4705ee2d | 369 | # Add $(HTMLOBJS) if wanting wxHTML classes |
2bbf4618 | 370 | OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS) |
fcc6dddd | 371 | |
ca5c8b2d | 372 | # Normal, static library |
8fdffc7e | 373 | all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET) |
fcc6dddd | 374 | |
4705ee2d RS |
375 | dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D |
376 | ||
fcc6dddd | 377 | |
ca5c8b2d | 378 | $D: |
162999bf | 379 | mkdir $D |
fcc6dddd | 380 | |
ca5c8b2d | 381 | $(COMMDIR)\$D: |
162999bf | 382 | mkdir $(COMMDIR)\$D |
fcc6dddd | 383 | |
ca5c8b2d | 384 | $(MSWDIR)\$D: |
162999bf | 385 | mkdir $(MSWDIR)\$D |
fcc6dddd | 386 | |
ca5c8b2d | 387 | $(GENDIR)\$D: |
162999bf | 388 | mkdir $(GENDIR)\$D |
fcc6dddd | 389 | |
ca5c8b2d | 390 | $(OLEDIR)\$D: |
162999bf | 391 | mkdir $(OLEDIR)\$D |
fcc6dddd | 392 | |
4705ee2d | 393 | $(HTMLDIR)\$D: |
162999bf | 394 | mkdir $(HTMLDIR)\$D |
4705ee2d | 395 | |
ca5c8b2d JS |
396 | # wxWindows library as DLL |
397 | dll: | |
a4fe6524 | 398 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) |
2bda0e17 | 399 | |
ca5c8b2d | 400 | cleandll: |
a4fe6524 | 401 | nmake -f makefile.vc clean FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) |
2bda0e17 | 402 | |
ca5c8b2d JS |
403 | # wxWindows + app as DLL. Only affects main.cpp. |
404 | dllapp: | |
405 | nmake -f makefile.vc all FINAL=$(FINAL) DLL=1 | |
79c3e0e1 | 406 | |
ca5c8b2d JS |
407 | # wxWindows + app as DLL, for Netscape plugin - remove DllMain. |
408 | dllnp: | |
409 | nmake -f makefile.vc all NOMAIN=1 FINAL=$(FINAL) DLL=1 | |
79c3e0e1 | 410 | |
ca5c8b2d JS |
411 | # Use this to make dummy.obj and generate a PCH. |
412 | # You might use the dll target, then the pch target, in order to | |
413 | # generate a DLL, then a PCH/dummy.obj for compiling your applications with. | |
414 | # | |
415 | # Explanation: Normally, when compiling a static version of wx.lib, your dummy.obj/PCH | |
416 | # are associated with wx.lib. When using a DLL version of wxWindows, however, | |
417 | # the DLL is compiled without a PCH, so you only need it for compiling the app. | |
418 | # In fact headers are compiled differently depending on whether a DLL is being made | |
419 | # or an app is calling the DLL exported functionality (WXDLLEXPORT is different | |
420 | # in each case) so you couldn't use the same PCH. | |
e12f91dc | 421 | pch: |
a4fe6524 | 422 | nmake -f makefile.vc pch1 WXUSINGDLL=1 FINAL=$(FINAL) NEW_WXLIBNAME=$(NEW_WXLIBNAME) |
79c3e0e1 | 423 | |
ca5c8b2d JS |
424 | pch1: dirs $(DUMMYOBJ) |
425 | echo $(DUMMYOBJ) | |
79c3e0e1 | 426 | |
ca5c8b2d | 427 | !if "$(WXMAKINGDLL)" != "1" |
cf447356 | 428 | |
ca5c8b2d | 429 | ### Static library |
fcc6dddd | 430 | |
ca5c8b2d | 431 | $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS) |
918a745c | 432 | -erase $(LIBTARGET) |
8e97b17b | 433 | $(implib) @<< |
ca5c8b2d JS |
434 | -out:$@ |
435 | -machine:$(CPU) | |
7fee680b | 436 | $(OBJECTS) $D\dummy.obj $(PERIPH_LIBS) |
cf447356 GL |
437 | << |
438 | ||
ca5c8b2d | 439 | !else |
341287bf | 440 | |
ca5c8b2d | 441 | ### Update the import library |
3d8bd7d6 | 442 | |
ca5c8b2d JS |
443 | $(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS) |
444 | $(implib) @<< | |
445 | -machine:$(CPU) | |
446 | -def:wx.def | |
447 | $(DUMMYOBJ) $(OBJECTS) | |
448 | -out:$(WXDIR)\lib\$(WXLIBNAME).lib | |
ca7731b7 GL |
449 | << |
450 | ||
ee284519 RD |
451 | !if "$(USE_GLCANVAS)" == "1" |
452 | GL_LIBS=opengl32.lib glu32.lib | |
20a2bdc9 | 453 | # GL_LIBS_DELAY=/delayload:opengl32.dll |
ee284519 RD |
454 | !endif |
455 | ||
ca5c8b2d | 456 | # Update the dynamic link library |
a9221a95 | 457 | $(WXDIR)\lib\$(WXLIBNAME).dll: $(DUMMYOBJ) $(OBJECTS) |
ca5c8b2d JS |
458 | $(link) @<< |
459 | $(LINKFLAGS) | |
460 | -out:$(WXDIR)\lib\$(WXLIBNAME).dll | |
ee284519 | 461 | $(DUMMYOBJ) $(OBJECTS) $(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib odbc32.lib advapi32.lib winmm.lib $(GL_LIBS) $(WXDIR)\lib\png$(LIBEXT).lib $(WXDIR)\lib\zlib$(LIBEXT).lib $(WXDIR)\lib\xpm$(LIBEXT).lib $(WXDIR)\lib\jpeg$(LIBEXT).lib $(WXDIR)\lib\tiff$(LIBEXT).lib |
f6bcfd97 BP |
462 | delayimp.lib |
463 | /delayload:ws2_32.dll /delayload:advapi32.dll /delayload:user32.dll /delayload:gdi32.dll | |
464 | /delayload:comdlg32.dll /delayload:shell32.dll /delayload:comctl32.dll /delayload:ole32.dll | |
9e85f5ec | 465 | /delayload:oleaut32.dll /delayload:rpcrt4.dll $(GL_LIBS_DELAY) |
2bda0e17 KB |
466 | << |
467 | ||
ca5c8b2d | 468 | !endif |
2bda0e17 | 469 | |
9e85f5ec | 470 | # /delayload:winmm.dll # Removed because it can cause a crash for some people |
2bda0e17 KB |
471 | |
472 | ######################################################## | |
ca5c8b2d | 473 | # Windows-specific objects |
2bda0e17 | 474 | |
ca5c8b2d JS |
475 | $D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h |
476 | cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp | |
2bda0e17 | 477 | |
ca5c8b2d | 478 | $D\dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h |
2bda0e17 | 479 | cl @<< |
ca5c8b2d | 480 | $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp |
2bda0e17 KB |
481 | << |
482 | ||
a2327a9f | 483 | # Compile certain files with no optimization (some files cause a |
f6bcfd97 | 484 | # compiler crash for buggy versions of VC++, e.g. 4.0). |
7fee680b | 485 | # Don't forget to put FINAL=1 on the command line. |
a2327a9f | 486 | noopt: |
8e97b17b | 487 | cl @<< |
a2327a9f JS |
488 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp |
489 | << | |
8e97b17b | 490 | cl @<< |
a2327a9f JS |
491 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\encconv.obj /c /Tp $(COMMDIR)\encconv.cpp |
492 | << | |
8e97b17b | 493 | cl @<< |
a2327a9f | 494 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\fileconf.obj /c /Tp $(COMMDIR)\fileconf.cpp |
669f7a11 JS |
495 | << |
496 | cl @<< | |
497 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\hash.obj /c /Tp $(COMMDIR)\hash.cpp | |
a2327a9f | 498 | << |
8e97b17b | 499 | cl @<< |
a2327a9f JS |
500 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\resource.obj /c /Tp $(COMMDIR)\resource.cpp |
501 | << | |
8e97b17b | 502 | cl @<< |
a2327a9f JS |
503 | $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\textfile.obj /c /Tp $(COMMDIR)\textfile.cpp |
504 | << | |
8e97b17b | 505 | cl @<< |
a2327a9f JS |
506 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\choicdgg.obj /c /Tp $(GENDIR)\choicdgg.cpp |
507 | << | |
8e97b17b | 508 | cl @<< |
a2327a9f | 509 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\grid.obj /c /Tp $(GENDIR)\grid.cpp |
669f7a11 JS |
510 | << |
511 | cl @<< | |
512 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\gridsel.obj /c /Tp $(GENDIR)\gridsel.cpp | |
a2327a9f | 513 | << |
8e97b17b | 514 | cl @<< |
a2327a9f JS |
515 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\logg.obj /c /Tp $(GENDIR)\logg.cpp |
516 | << | |
8e97b17b | 517 | cl @<< |
a2327a9f JS |
518 | $(CPPFLAGS2) /Od /Fo$(GENDIR)\$D\proplist.obj /c /Tp $(GENDIR)\proplist.cpp |
519 | << | |
8e97b17b | 520 | cl @<< |
a2327a9f JS |
521 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\clipbrd.obj /c /Tp $(MSWDIR)\clipbrd.cpp |
522 | << | |
8e97b17b | 523 | cl @<< |
a2327a9f JS |
524 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\control.obj /c /Tp $(MSWDIR)\control.cpp |
525 | << | |
8e97b17b | 526 | cl @<< |
a2327a9f JS |
527 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\listbox.obj /c /Tp $(MSWDIR)\listbox.cpp |
528 | << | |
8e97b17b | 529 | cl @<< |
a2327a9f JS |
530 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\mdi.obj /c /Tp $(MSWDIR)\mdi.cpp |
531 | << | |
8e97b17b | 532 | cl @<< |
a2327a9f JS |
533 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\menu.obj /c /Tp $(MSWDIR)\menu.cpp |
534 | << | |
8e97b17b | 535 | cl @<< |
a2327a9f JS |
536 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\notebook.obj /c /Tp $(MSWDIR)\notebook.cpp |
537 | << | |
8e97b17b | 538 | cl @<< |
a2327a9f JS |
539 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\tbar95.obj /c /Tp $(MSWDIR)\tbar95.cpp |
540 | << | |
8e97b17b | 541 | cl @<< |
a2327a9f JS |
542 | $(CPPFLAGS2) /Od /Fo$(MSWDIR)\$D\treectrl.obj /c /Tp $(MSWDIR)\treectrl.cpp |
543 | << | |
8e97b17b | 544 | cl @<< |
a2327a9f JS |
545 | $(CPPFLAGS2) /Od /Fo$(HTMLDIR)\$D\helpfrm.obj /c /Tp $(HTMLDIR)\helpfrm.cpp |
546 | << | |
547 | ||
ca5c8b2d | 548 | # If taking wxWindows from CVS, setup.h doesn't exist yet. |
b23386b2 JS |
549 | # Actually the 'if not exist setup.h' test doesn't work |
550 | # (copies the file anyway) | |
551 | # we'll have to comment this rule out. | |
552 | ||
a1b82138 | 553 | # $(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h |
b23386b2 JS |
554 | # cd "$(WXDIR)"\include\wx\msw |
555 | # if not exist setup.h copy setup0.h setup.h | |
556 | # cd "$(WXDIR)"\src\msw | |
2bda0e17 | 557 | |
ca5c8b2d | 558 | ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c |
f60d0f94 | 559 | cl @<< |
ca5c8b2d | 560 | $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ |
f60d0f94 JS |
561 | << |
562 | ||
ca5c8b2d JS |
563 | ..\common\y_tab.c: ..\common\dosyacc.c |
564 | copy "..\common"\dosyacc.c "..\common"\y_tab.c | |
f60d0f94 | 565 | |
ca5c8b2d JS |
566 | ..\common\lex_yy.c: ..\common\doslex.c |
567 | copy "..\common"\doslex.c "..\common"\lex_yy.c | |
f60d0f94 | 568 | |
8e97b17b | 569 | $(OBJECTS): $(WXDIR)/include/wx/setup.h |
2bda0e17 | 570 | |
4705ee2d RS |
571 | ..\common\$D\unzip.obj: ..\common\unzip.c |
572 | cl @<< | |
573 | $(CPPFLAGS2) /c $(COMMDIR)\unzip.c /Fo$@ | |
574 | << | |
575 | ||
2bda0e17 KB |
576 | # Peripheral components |
577 | ||
fbcb4166 JS |
578 | png: |
579 | cd $(WXDIR)\src\png | |
3156ba6e | 580 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
fbcb4166 JS |
581 | cd $(WXDIR)\src\msw |
582 | ||
583 | clean_png: | |
584 | cd $(WXDIR)\src\png | |
48d1144b | 585 | nmake -f makefile.vc clean |
fbcb4166 JS |
586 | cd $(WXDIR)\src\msw |
587 | ||
588 | zlib: | |
589 | cd $(WXDIR)\src\zlib | |
3156ba6e | 590 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
fbcb4166 JS |
591 | cd $(WXDIR)\src\msw |
592 | ||
593 | clean_zlib: | |
594 | cd $(WXDIR)\src\zlib | |
48d1144b | 595 | nmake -f makefile.vc clean |
fbcb4166 JS |
596 | cd $(WXDIR)\src\msw |
597 | ||
0f3e3e0c JS |
598 | jpeg: |
599 | cd $(WXDIR)\src\jpeg | |
3156ba6e | 600 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all |
0f3e3e0c JS |
601 | cd $(WXDIR)\src\msw |
602 | ||
603 | clean_jpeg: | |
604 | cd $(WXDIR)\src\jpeg | |
605 | nmake -f makefile.vc clean | |
606 | cd $(WXDIR)\src\msw | |
607 | ||
112d35a2 VZ |
608 | tiff: |
609 | cd $(WXDIR)\src\tiff | |
610 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) all | |
611 | cd $(WXDIR)\src\msw | |
612 | ||
613 | clean_tiff: | |
614 | cd $(WXDIR)\src\tiff | |
615 | nmake -f makefile.vc clean | |
616 | cd $(WXDIR)\src\msw | |
617 | ||
2bda0e17 | 618 | xpm: |
2fd284a4 | 619 | cd $(WXDIR)\src\xpm |
3156ba6e | 620 | nmake -f makefile.vc FINAL=$(FINAL) DLL=$(DLL) WXMAKINGDLL=$(WXMAKINGDLL) CRTFLAG=$(CRTFLAG) |
2bda0e17 KB |
621 | cd $(WXDIR)\src\msw |
622 | ||
623 | clean_xpm: | |
2fd284a4 | 624 | cd $(WXDIR)\src\xpm |
48d1144b | 625 | nmake -f makefile.vc clean |
2bda0e17 KB |
626 | cd $(WXDIR)\src\msw |
627 | ||
628 | rcparser: | |
629 | cd $(WXDIR)\utils\rcparser\src | |
48d1144b | 630 | nmake -f makefile.vc FINAL=$(FINAL) |
2bda0e17 KB |
631 | cd $(WXDIR)\src\msw |
632 | ||
7fee680b | 633 | cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff |
918a745c VZ |
634 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll |
635 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib | |
636 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp | |
637 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).pdb | |
638 | -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).ilk | |
8e97b17b VZ |
639 | |
640 | ||
641 | clean: $(PERIPH_CLEAN_TARGET) | |
918a745c VZ |
642 | -erase $(LIBTARGET) |
643 | -erase $(WXDIR)\lib\$(WXLIBNAME).pdb | |
644 | -erase *.pdb | |
645 | -erase *.sbr | |
646 | -erase $(WXLIBNAME).pch | |
647 | -erase $(GENDIR)\$D\*.obj | |
648 | -erase $(GENDIR)\$D\*.pdb | |
649 | -erase $(GENDIR)\$D\*.sbr | |
650 | -erase $(COMMDIR)\$D\*.obj | |
651 | -erase $(COMMDIR)\$D\*.pdb | |
652 | -erase $(COMMDIR)\$D\*.sbr | |
653 | -erase $(COMMDIR)\y_tab.c | |
654 | -erase $(COMMDIR)\lex_yy.c | |
655 | -erase $(MSWDIR)\$D\*.obj | |
656 | -erase $(MSWDIR)\$D\*.sbr | |
657 | -erase $(MSWDIR)\$D\*.pdb | |
658 | -erase $(OLEDIR)\$D\*.obj | |
659 | -erase $(OLEDIR)\$D\*.sbr | |
660 | -erase $(OLEDIR)\$D\*.pdb | |
661 | -erase $(HTMLDIR)\$D\*.obj | |
662 | -erase $(HTMLDIR)\$D\*.sbr | |
663 | -erase $(HTMLDIR)\$D\*.pdb | |
ca5c8b2d JS |
664 | -rmdir $(D) |
665 | -rmdir ole\$(D) | |
666 | -rmdir ..\generic\$(D) | |
667 | -rmdir ..\common\$(D) | |
d66d9d5b | 668 | -rmdir ..\html\$(D) |
2bda0e17 | 669 | |
2bda0e17 KB |
670 | |
671 | # Making documents | |
f6bcfd97 | 672 | docs: allhlp allhtml allpdfrtf htb htmlhelp |
62448488 | 673 | alldocs: docs |
9d9b7755 | 674 | hlp: wxhlp |
2bda0e17 | 675 | wxhlp: $(DOCDIR)/winhelp/wx.hlp |
2bda0e17 KB |
676 | refhlp: $(DOCDIR)/winhelp/techref.hlp |
677 | rtf: $(DOCDIR)/winhelp/wx.rtf | |
2bda0e17 | 678 | pdfrtf: $(DOCDIR)/pdf/wx.rtf |
2bda0e17 | 679 | refpdfrtf: $(DOCDIR)/pdf/techref.rtf |
8e97b17b | 680 | html: wxhtml |
f6bcfd97 | 681 | htb: $(DOCDIR)\htb\wx.htb |
8e97b17b | 682 | wxhtml: $(DOCDIR)\html\wx\wx.htm |
f6bcfd97 | 683 | htmlhelp: $(DOCDIR)\htmlhelp\wx.chm |
20e85460 | 684 | ps: wxps referencps |
8e97b17b VZ |
685 | wxps: $(WXDIR)\docs\ps\wx.ps |
686 | referencps: $(WXDIR)\docs\ps\referenc.ps | |
2bda0e17 | 687 | |
9d9b7755 | 688 | allhlp: wxhlp |
2bda0e17 | 689 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 690 | nmake -f makefile.vc hlp |
2bda0e17 KB |
691 | cd $(THISDIR) |
692 | ||
9d9b7755 | 693 | allhtml: wxhtml |
2bda0e17 | 694 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 695 | nmake -f makefile.vc html |
2bda0e17 KB |
696 | cd $(THISDIR) |
697 | ||
9d9b7755 | 698 | allps: wxps referencps |
2bda0e17 | 699 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 700 | nmake -f makefile.vc ps |
2bda0e17 KB |
701 | cd $(THISDIR) |
702 | ||
9d9b7755 | 703 | allpdfrtf: pdfrtf |
2bda0e17 | 704 | cd $(WXDIR)\utils\dialoged\src |
48d1144b | 705 | nmake -f makefile.vc pdfrtf |
2bda0e17 KB |
706 | cd $(THISDIR) |
707 | ||
2bda0e17 KB |
708 | $(DOCDIR)/winhelp/wx.hlp: $(DOCDIR)/latex/wx/wx.rtf $(DOCDIR)/latex/wx/wx.hpj |
709 | cd $(DOCDIR)/latex/wx | |
918a745c | 710 | -erase wx.ph |
2bda0e17 | 711 | hc wx |
918a745c VZ |
712 | -erase $(DOCDIR)\winhelp\wx.hlp |
713 | -erase $(DOCDIR)\winhelp\wx.cnt | |
2bda0e17 KB |
714 | move wx.hlp $(DOCDIR)\winhelp\wx.hlp |
715 | move wx.cnt $(DOCDIR)\winhelp\wx.cnt | |
716 | cd $(THISDIR) | |
717 | ||
2bda0e17 KB |
718 | $(DOCDIR)/winhelp/techref.hlp: $(DOCDIR)/latex/techref/techref.rtf $(DOCDIR)/latex/techref/techref.hpj |
719 | cd $(DOCDIR)/latex/techref | |
918a745c | 720 | -erase techref.ph |
2bda0e17 KB |
721 | hc techref |
722 | move techref.hlp $(DOCDIR)\winhelp\techref.hlp | |
723 | move techref.cnt $(DOCDIR)\winhelp\techref.cnt | |
724 | cd $(THISDIR) | |
725 | ||
726 | $(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 | |
727 | cd $(DOCDIR)\latex\wx | |
e12f91dc | 728 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/latex/wx/wx.rtf -twice -winhelp |
2bda0e17 KB |
729 | cd $(THISDIR) |
730 | ||
2bda0e17 KB |
731 | $(DOCDIR)/latex/techref/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
732 | cd $(DOCDIR)\latex\techref | |
e12f91dc | 733 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/latex/techref/techref.rtf -twice -winhelp |
2bda0e17 KB |
734 | cd $(THISDIR) |
735 | ||
736 | $(DOCDIR)/pdf/wx.rtf: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex | |
737 | cd $(DOCDIR)\latex\wx | |
48c12cb1 PA |
738 | -copy *.wmf $(DOCDIR)\pdf |
739 | -copy *.bmp $(DOCDIR)\pdf | |
e12f91dc | 740 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf |
2bda0e17 KB |
741 | cd $(THISDIR) |
742 | ||
2bda0e17 KB |
743 | $(DOCDIR)/pdf/techref.rtf: $(DOCDIR)/latex/techref/techref.tex |
744 | cd $(DOCDIR)\latex\techref | |
48c12cb1 PA |
745 | -copy *.wmf $(DOCDIR)\pdf |
746 | -copy *.bmp $(DOCDIR)\pdf | |
e12f91dc | 747 | -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf |
2bda0e17 KB |
748 | cd $(THISDIR) |
749 | ||
750 | $(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 | |
751 | cd $(DOCDIR)\latex\wx | |
162999bf | 752 | -mkdir $(DOCDIR)\html\wx |
f6bcfd97 | 753 | copy *.gif $(DOCDIR)\html\wx |
e12f91dc | 754 | -start $(WAITFLAG) tex2rtf $(DOCDIR)\latex\wx\manual.tex $(DOCDIR)\html\wx\wx.htm -twice -html |
918a745c VZ |
755 | -erase $(DOCDIR)\html\wx\*.con |
756 | -erase $(DOCDIR)\html\wx\*.ref | |
757 | -erase $(DOCDIR)\latex\wx\*.con | |
758 | -erase $(DOCDIR)\latex\wx\*.ref | |
06e43511 | 759 | cd $(THISDIR) |
2bda0e17 | 760 | |
f6bcfd97 | 761 | $(DOCDIR)\htmlhelp\wx.chm : $(DOCDIR)\html\wx\wx.htm $(DOCDIR)\html\wx\wx.hhp |
8e97b17b VZ |
762 | cd $(DOCDIR)\html\wx |
763 | -hhc wx.hhp | |
f6bcfd97 | 764 | -mkdir ..\..\htmlhelp |
918a745c | 765 | -erase $(DOCDIR)\htmlhelp\wx.chm |
f6bcfd97 | 766 | move wx.chm ..\..\htmlhelp |
8e97b17b | 767 | cd $(THISDIR) |
a8db5b6a | 768 | |
8e97b17b VZ |
769 | $(WXDIR)\docs\latex\wx\manual.dvi: $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/manual.tex |
770 | cd $(WXDIR)\docs\latex\wx | |
2bda0e17 KB |
771 | -latex manual |
772 | -latex manual | |
773 | -makeindx manual | |
774 | -bibtex manual | |
775 | -latex manual | |
776 | -latex manual | |
777 | cd $(THISDIR) | |
778 | ||
8e97b17b VZ |
779 | $(WXDIR)\docs\ps\wx.ps: $(WXDIR)\docs\latex\wx\manual.dvi |
780 | cd $(WXDIR)\docs\latex\wx | |
2bda0e17 KB |
781 | -dvips32 -o wx.ps manual |
782 | move wx.ps $(WXDIR)\docs\ps\wx.ps | |
783 | cd $(THISDIR) | |
784 | ||
8e97b17b VZ |
785 | $(WXDIR)\docs\latex\wx\referenc.dvi: $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/referenc.tex |
786 | cd $(WXDIR)\docs\latex\wx | |
2bda0e17 KB |
787 | -latex referenc |
788 | -latex referenc | |
789 | -makeindx referenc | |
790 | -bibtex referenc | |
791 | -latex referenc | |
792 | -latex referenc | |
793 | cd $(THISDIR) | |
794 | ||
8e97b17b VZ |
795 | $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi |
796 | cd $(WXDIR)\docs\latex\wx | |
2bda0e17 KB |
797 | -dvips32 -o referenc.ps referenc |
798 | move referenc.ps $(WXDIR)\docs\ps\referenc.ps | |
799 | cd $(THISDIR) | |
800 | ||
fac26663 JS |
801 | # An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk |
802 | # files, renamed to htb. | |
803 | # This can then be used with e.g. helpview. | |
804 | # Optionally, a cached version of the .hhp file can be generated with hhp2cached. | |
f6bcfd97 | 805 | $(DOCDIR)\htb\wx.htb: $(DOCDIR)\html\wx\wx.htm |
fac26663 | 806 | cd $(WXDIR)\docs\html\wx |
918a745c | 807 | -erase wx.zip wx.htb |
f1d93f0b | 808 | zip wx.zip *.htm *.gif *.hhp *.hhc *.hhk |
f6bcfd97 BP |
809 | -mkdir $(DOCDIR)\htb |
810 | move wx.zip $(DOCDIR)\htb\wx.htb | |
fac26663 JS |
811 | cd $(THISDIR) |
812 | ||
da36f544 JS |
813 | # In order to force document reprocessing |
814 | touchmanual: | |
815 | -touch $(WXDIR)\docs\latex\wx\manual.tex | |
62448488 JS |
816 | |
817 | updatedocs: touchmanual alldocs | |
818 | ||
f6bcfd97 | 819 | cleandocs: |
918a745c VZ |
820 | -erase $(DOCDIR)\winhelp\wx.hlp |
821 | -erase $(DOCDIR)\winhelp\wx.cnt | |
822 | -erase $(DOCDIR)\html\wx\*.htm | |
823 | -erase $(DOCDIR)\pdf\wx.rtf | |
824 | -erase $(DOCDIR)\latex\wx\wx.rtf | |
825 | -erase $(DOCDIR)\latex\wx\WX.PH | |
826 | -erase $(DOCDIR)\htmlhelp\wx.chm | |
827 | -erase $(DOCDIR)\htb\wx.htb | |
f6bcfd97 | 828 | |
62448488 JS |
829 | # Start Word, running the GeneratePDF macro. MakeManual.dot should be in the |
830 | # Office StartUp folder, and PDFMaker should be installed. | |
831 | updatepdf: # touchmanual pdfrtf | |
e12f91dc | 832 | start $(WAITFLAG) "winword d:\wx2\wxWindows\docs\latex\pdf\wx.rtf /mGeneratePDF" |
2845ddc2 | 833 | |
9be9b974 RD |
834 | |
835 | MFTYPE=vc | |
836 | makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t | |
8e97b17b VZ |
837 | cd $(WXWIN)\distrib\msw\tmake |
838 | tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) | |
839 | copy makefile.$(MFTYPE) $(WXWIN)\src\msw | |
9be9b974 | 840 |