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