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