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