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