]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.dos
argc == 0 bug fixed
[wxWidgets.git] / src / msw / makefile.dos
CommitLineData
2bda0e17
KB
1#
2# File: makefile.dos
3# Author: Julian Smart
4# Created: 1997
5# Updated:
6# Copyright: (c) 1997, Julian Smart
7#
8# "%W% %G%"
9#
10# Makefile : Builds wxWindows library wx.lib for VC++ (16-bit)
11# Arguments:
12#
13# FINAL=1 argument to nmake to build version with no debugging info.
14#
15!include <..\makemsc.env>
16
17LIBTARGET=$(WXLIB)
18DUMMYOBJ=dummy.obj
19
20# Please set these according to the settings in wx_setup.h, so we can include
21# the appropriate libraries in wx.lib
22
23# This one overrides the others, to be consistent with the settings in wx_setup.h
24MINIMAL_WXWINDOWS_SETUP=0
25
2bda0e17 26USE_XPM_IN_MSW=0
1e6d9499 27USE_CTL3D=1
2bda0e17
KB
28
29!if "$(MINIMAL_WXWINDOWS_SETUP)" == "1"
30USE_CTL3D=0
2bda0e17 31USE_XPM_IN_MSW=0
2bda0e17
KB
32!endif
33
34PERIPH_LIBS=
35PERIPH_TARGET=
36PERIPH_CLEAN_TARGET=
37
38# !if "$(USE_CTL3D)" == "1"
39# PERIPH_LIBS=d:\msdev\lib\ctl3d32.lib $(PERIPH_LIBS)
40# !endif
41
42!if "$(USE_XPM_IN_MSW)" == "1"
43PERIPH_LIBS=$(WXDIR)\contrib\wxxpm\xpm.lib $(PERIPH_LIBS)
44PERIPH_TARGET=xpm $(PERIPH_TARGET)
45PERIPH_CLEAN_TARGET=clean_xpm $(PERIPH_CLEAN_TARGET)
46!endif
47
c7f49969
JS
48# PNG and Zlib
49PERIPH_TARGET=png zlib $(PERIPH_TARGET)
50PERIPH_CLEAN_TARGET=clean_png clean_zlib $(PERIPH_CLEAN_TARGET)
51
2bda0e17
KB
52GENDIR=..\generic
53COMMDIR=..\common
54OLEDIR=.\ole
55MSWDIR=.
56
2bda0e17
KB
57GENERICOBJS= \
58 $(GENDIR)\choicdgg.obj \
1e6d9499 59 $(GENDIR)\dirdlgg.obj \
2bda0e17 60 $(GENDIR)\gridg.obj \
1e6d9499
JS
61 $(GENDIR)\imaglist.obj \
62 $(GENDIR)\listctrl.obj \
63 $(GENDIR)\notebook.obj \
2bda0e17 64 $(GENDIR)\panelg.obj \
e3a43801
JS
65 $(GENDIR)\prop.obj \
66 $(GENDIR)\propform.obj \
67 $(GENDIR)\proplist.obj \
2bda0e17
KB
68 $(GENDIR)\scrolwin.obj \
69 $(GENDIR)\splitter.obj \
70 $(GENDIR)\statusbr.obj \
71 $(GENDIR)\tabg.obj \
1e6d9499 72 $(GENDIR)\textdlgg.obj\
2a47d3c1 73 $(GENDIR)\prntdlgg.obj \
1e6d9499
JS
74 $(GENDIR)\treectrl.obj
75
76# Don't need these generic objects for Windows
77# $(GENDIR)\msgdlgg.obj \
78# $(GENDIR)\fontdlgg.obj \
79# $(GENDIR)\colrdlgg.obj \
80# $(GENDIR)\printps.obj \
1e6d9499
JS
81# $(GENDIR)\helpxlp.obj \
82
2bda0e17
KB
83COMMONOBJS = \
84 $(COMMDIR)\config.obj \
85 $(COMMDIR)\cmndata.obj \
86 $(COMMDIR)\docview.obj \
2108f33a 87 $(COMMDIR)\docmdi.obj \
2bda0e17
KB
88 $(COMMDIR)\dynarray.obj \
89 $(COMMDIR)\event.obj \
90 $(COMMDIR)\file.obj \
91 $(COMMDIR)\filefn.obj \
3d8bd7d6 92 $(COMMDIR)\framecmn.obj \
2bda0e17
KB
93 $(COMMDIR)\gdicmn.obj \
94 $(COMMDIR)\intl.obj \
95 $(COMMDIR)\helpbase.obj \
96 $(COMMDIR)\ipcbase.obj \
97 $(COMMDIR)\layout.obj \
98 $(COMMDIR)\log.obj \
99 $(COMMDIR)\memory.obj \
100 $(COMMDIR)\module.obj \
101 $(COMMDIR)\object.obj \
102 $(COMMDIR)\odbc.obj \
6a6c0a8b 103 $(COMMDIR)\process.obj \
2bda0e17
KB
104 $(COMMDIR)\prntbase.obj \
105 $(COMMDIR)\resource.obj \
106 $(COMMDIR)\tbarbase.obj \
107 $(COMMDIR)\tbarsmpl.obj \
108 $(COMMDIR)\textfile.obj \
109 $(COMMDIR)\timercmn.obj \
110 $(COMMDIR)\utilscmn.obj \
111 $(COMMDIR)\validate.obj \
89c684ef 112 $(COMMDIR)\valgen.obj \
2bda0e17
KB
113 $(COMMDIR)\valtext.obj \
114 $(COMMDIR)\date.obj \
115 $(COMMDIR)\wxexpr.obj \
116 $(COMMDIR)\hash.obj \
117 $(COMMDIR)\list.obj \
341287bf 118 $(COMMDIR)\variant.obj \
2bda0e17
KB
119 $(COMMDIR)\string.obj \
120 $(COMMDIR)\time.obj \
cf447356 121 $(COMMDIR)\y_tab.obj \
3d4c6a21 122 $(COMMDIR)\stream.obj \
25331334 123 $(COMMDIR)\wfstream.obj \
3d4c6a21 124 $(COMMDIR)\mstream.obj \
79c3e0e1 125 $(COMMDIR)\zstream.obj \
cf447356 126 $(COMMDIR)\datstrm.obj \
3d8bd7d6
JS
127 $(COMMDIR)\extended.obj \
128 $(COMMDIR)\wincmn.obj
2bda0e17 129
1e6d9499
JS
130# Doesn't compile (nested classes)
131# $(COMMDIR)\fileconf.obj\
132
2432b92d
JS
133# Uses WIN32 registry functions
134# $(COMMDIR)\mimetype.obj \
135
1e6d9499
JS
136# Fails when including png.h, on jmp_buf.
137# $(COMMDIR)\image.obj \
81d66cf3 138
2bda0e17 139MSWOBJS = \
57a7b7c1 140 $(MSWDIR)\accel.obj \
2bda0e17
KB
141 $(MSWDIR)\app.obj \
142 $(MSWDIR)\bitmap.obj \
143 $(MSWDIR)\bmpbuttn.obj \
144 $(MSWDIR)\brush.obj \
145 $(MSWDIR)\button.obj \
146 $(MSWDIR)\checkbox.obj \
147 $(MSWDIR)\checklst.obj \
148 $(MSWDIR)\choice.obj \
149 $(MSWDIR)\clipbrd.obj \
150 $(MSWDIR)\colordlg.obj \
151 $(MSWDIR)\colour.obj \
152 $(MSWDIR)\combobox.obj \
153 $(MSWDIR)\control.obj \
154 $(MSWDIR)\curico.obj \
155 $(MSWDIR)\cursor.obj \
156 $(MSWDIR)\data.obj \
157 $(MSWDIR)\dc.obj \
158 $(MSWDIR)\dcmemory.obj \
159 $(MSWDIR)\dcclient.obj \
160 $(MSWDIR)\dcprint.obj \
161 $(MSWDIR)\dcscreen.obj \
162 $(MSWDIR)\dde.obj \
163 $(MSWDIR)\dialog.obj \
164 $(MSWDIR)\dib.obj \
2bda0e17
KB
165 $(MSWDIR)\filedlg.obj \
166 $(MSWDIR)\font.obj \
167 $(MSWDIR)\fontdlg.obj \
168 $(MSWDIR)\frame.obj \
da87a1ca 169 $(MSWDIR)\gaugemsw.obj \
2bda0e17
KB
170 $(MSWDIR)\gdiobj.obj \
171 $(MSWDIR)\helpwin.obj \
172 $(MSWDIR)\icon.obj \
1e6d9499 173 $(MSWDIR)\iniconf.obj\
2bda0e17
KB
174 $(MSWDIR)\joystick.obj \
175 $(MSWDIR)\listbox.obj \
2bda0e17
KB
176 $(MSWDIR)\main.obj \
177 $(MSWDIR)\mdi.obj \
5260b1c5 178 $(MSWDIR)\menu.obj\
2bda0e17
KB
179 $(MSWDIR)\menuitem.obj \
180 $(MSWDIR)\metafile.obj \
181 $(MSWDIR)\minifram.obj \
182 $(MSWDIR)\msgdlg.obj \
183 $(MSWDIR)\nativdlg.obj \
184 $(MSWDIR)\ownerdrw.obj \
185 $(MSWDIR)\palette.obj \
186 $(MSWDIR)\pen.obj \
187 $(MSWDIR)\penwin.obj \
188 $(MSWDIR)\printdlg.obj \
189 $(MSWDIR)\printwin.obj \
190 $(MSWDIR)\radiobox.obj \
191 $(MSWDIR)\radiobut.obj \
192 $(MSWDIR)\region.obj \
193 $(MSWDIR)\scrolbar.obj \
194 $(MSWDIR)\settings.obj \
da87a1ca 195 $(MSWDIR)\slidrmsw.obj \
2bda0e17
KB
196 $(MSWDIR)\spinbutt.obj \
197 $(MSWDIR)\statbmp.obj \
198 $(MSWDIR)\statbox.obj \
199 $(MSWDIR)\stattext.obj \
2bda0e17
KB
200 $(MSWDIR)\tbarmsw.obj \
201 $(MSWDIR)\textctrl.obj \
202 $(MSWDIR)\timer.obj \
2bda0e17 203 $(MSWDIR)\utils.obj \
5260b1c5 204 $(MSWDIR)\utilsexc.obj \
2bda0e17
KB
205 $(MSWDIR)\wave.obj \
206 $(MSWDIR)\window.obj \
43d811ea 207 $(OLEDIR)\dropsrc.obj \
1e6d9499 208 $(OLEDIR)\droptgt.obj
2bda0e17 209
1e6d9499
JS
210# $(OLEDIR)\automtn.obj \
211# $(OLEDIR)\dataobj.obj \
212# $(OLEDIR)\oleutils.obj \
213# $(OLEDIR)\uuid.obj
acbd13a3 214# $(MSWDIR)\tooltip.obj \
1e6d9499 215
2fd284a4
JS
216# TODO: Implement XPM and PNG targets in this makefile!
217# $(OLEDIR)\xpmhand \
218# $(OLEDIR)\pnghand \
219
1e6d9499 220# Not appropriate for 16-bit Windows
2bda0e17 221# $(MSWDIR)\registry.obj \
1e6d9499
JS
222# $(MSWDIR)\dirdlg.obj \
223# $(MSWDIR)\treectrl.obj \
224# $(MSWDIR)\listctrl.obj \
2bda0e17
KB
225
226OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
227
228# Normal, static library
229all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
230
231
232#$(WXDIR)\lib\wx.lib: dummy.obj $(OBJECTS) $(PERIPH_LIBS)
233# -erase $(LIBTARGET)
234# lib /PAGESIZE:128 @<<
235#$(LIBTARGET)
236#y
237#$(OBJECTS) $(PERIPH_LIBS)
238#nul
239#;
240#<<
241
242$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
243 -erase $(WXDIR)\lib\wx1.lib
244 lib /PAGESIZE:128 @<<
245$(WXDIR)\lib\wx1.lib
246y
247$(COMMONOBJS) $(PERIPH_LIBS)
248nul
249;
250<<
251
252$(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
253 -erase $(WXDIR)\lib\wx2.lib
254 lib /PAGESIZE:128 @<<
255$(WXDIR)\lib\wx2.lib
256y
257$(GENERICOBJS)
258nul
259;
260<<
261
262$(WXDIR)\lib\wx3.lib: $(MSWOBJS)
263 -erase $(WXDIR)\lib\wx3.lib
264 lib /PAGESIZE:128 @<<
265$(WXDIR)\lib\wx3.lib
266y
267$(MSWOBJS)
268nul
269;
270<<
271
272########################################################
273# Windows-specific objects
274
275dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
276 cl @<<
277 cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
278<<
279
280#dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
281# cl $(CPPFLAGS) /YcWX/WXPREC.H $(DEBUG_FLAGS) /c /Tp $*.$(SRCSUFF)
282
283dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
284 cl @<<
285$(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
286<<
287
57a7b7c1
JS
288$(MSWDIR)/accel.obj: $*.$(SRCSUFF)
289 cl @<<
290$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
291<<
292
2bda0e17
KB
293$(MSWDIR)/app.obj: $*.$(SRCSUFF)
294 cl @<<
295$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
296<<
297
298$(MSWDIR)/bitmap.obj: $*.$(SRCSUFF)
299 cl @<<
300$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
301<<
302
303$(MSWDIR)/bmpbuttn.obj: $*.$(SRCSUFF)
304 cl @<<
305$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
306<<
307
308$(MSWDIR)/brush.obj: $*.$(SRCSUFF)
309 cl @<<
310$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
311<<
312
313$(MSWDIR)/button.obj: $*.$(SRCSUFF)
314 cl @<<
315$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
316<<
317
318$(MSWDIR)/choice.obj: $*.$(SRCSUFF)
319 cl @<<
320$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
321<<
322
323$(MSWDIR)/checkbox.obj: $*.$(SRCSUFF)
324 cl @<<
325$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
326<<
327
328$(MSWDIR)/checklst.obj: $*.$(SRCSUFF)
329 cl @<<
330$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
331<<
332
333$(MSWDIR)/clipbrd.obj: $*.$(SRCSUFF)
334 cl @<<
335$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
336<<
337
338$(MSWDIR)/colordlg.obj: $*.$(SRCSUFF)
339 cl @<<
340$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
341<<
342
343$(MSWDIR)/colour.obj: $*.$(SRCSUFF)
344 cl @<<
345$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
346<<
347
348$(MSWDIR)/combobox.obj: $*.$(SRCSUFF)
349 cl @<<
350$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
351<<
352
353$(MSWDIR)/control.obj: $*.$(SRCSUFF)
354 cl @<<
355$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
356<<
357
358$(MSWDIR)/curico.obj: $*.$(SRCSUFF)
359 cl @<<
360$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
361<<
362
363$(MSWDIR)/cursor.obj: $*.$(SRCSUFF)
364 cl @<<
365$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
366<<
367
368$(MSWDIR)/data.obj: $*.$(SRCSUFF)
369 cl @<<
370$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
371<<
372
373$(MSWDIR)/dc.obj: $*.$(SRCSUFF)
374 cl @<<
375$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
376<<
377
378$(MSWDIR)/dde.obj: $*.$(SRCSUFF)
379 cl @<<
380$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
381<<
382
383$(MSWDIR)/dcmemory.obj: $*.$(SRCSUFF)
384 cl @<<
385$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
386<<
387
388$(MSWDIR)/dcclient.obj: $*.$(SRCSUFF)
389 cl @<<
390$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
391<<
392
393$(MSWDIR)/dcprint.obj: $*.$(SRCSUFF)
394 cl @<<
395$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
396<<
397
398$(MSWDIR)/dcscreen.obj: $*.$(SRCSUFF)
399 cl @<<
400$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
401<<
402
403$(MSWDIR)/dialog.obj: $*.$(SRCSUFF)
404 cl @<<
405$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
406<<
407
408$(MSWDIR)/dib.obj: $*.$(SRCSUFF)
409 cl @<<
410$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
411<<
412
413$(MSWDIR)/dirdlg.obj: $*.$(SRCSUFF)
414 cl @<<
415$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
416<<
417
418$(MSWDIR)/filedlg.obj: $*.$(SRCSUFF)
419 cl @<<
420$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
421<<
422
423$(MSWDIR)/font.obj: $*.$(SRCSUFF)
424 cl @<<
425$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
426<<
427
428$(MSWDIR)/fontdlg.obj: $*.$(SRCSUFF)
429 cl @<<
430$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
431<<
432
433$(MSWDIR)/frame.obj: $*.$(SRCSUFF)
434 cl @<<
435$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
436<<
437
da87a1ca 438$(MSWDIR)/gaugemsw.obj: $*.$(SRCSUFF)
2bda0e17
KB
439 cl @<<
440$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
441<<
442
443$(MSWDIR)/gdiobj.obj: $*.$(SRCSUFF)
444 cl @<<
445$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
446<<
447
448$(MSWDIR)/helpwin.obj: $*.$(SRCSUFF)
449 cl @<<
450$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
451<<
452
453$(MSWDIR)/icon.obj: $*.$(SRCSUFF)
454 cl @<<
455$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
456<<
457
1e6d9499
JS
458$(MSWDIR)/iniconf.obj: $*.$(SRCSUFF)
459 cl @<<
460$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
461<<
462
2bda0e17
KB
463$(MSWDIR)/imaglist.obj: $*.$(SRCSUFF)
464 cl @<<
465$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
466<<
467
468$(MSWDIR)/joystick.obj: $*.$(SRCSUFF)
469 cl @<<
470$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
471<<
472
473$(MSWDIR)/listbox.obj: $*.$(SRCSUFF)
474 cl @<<
475$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
476<<
477
478$(MSWDIR)/listctrl.obj: $*.$(SRCSUFF)
479 cl @<<
480$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
481<<
482
483$(MSWDIR)/main.obj: $*.$(SRCSUFF)
484 cl @<<
485$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
486<<
487
488$(MSWDIR)/mdi.obj: $*.$(SRCSUFF)
489 cl @<<
490$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
491<<
492
493$(MSWDIR)/menu.obj: $*.$(SRCSUFF)
494 cl @<<
495$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
496<<
497
498$(MSWDIR)/menuitem.obj: $*.$(SRCSUFF)
499 cl @<<
500$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
501<<
502
503$(MSWDIR)/metafile.obj: $*.$(SRCSUFF)
504 cl @<<
505$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
506<<
507
508$(MSWDIR)/minifram.obj: $*.$(SRCSUFF)
509 cl @<<
510$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
511<<
512
513$(MSWDIR)/msgdlg.obj: $*.$(SRCSUFF)
514 cl @<<
515$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
516<<
517
518$(MSWDIR)/nativdlg.obj: $*.$(SRCSUFF)
519 cl @<<
520$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
521<<
522
523$(MSWDIR)/ownerdrw.obj: $*.$(SRCSUFF)
524 cl @<<
525$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
526<<
527
528$(MSWDIR)/palette.obj: $*.$(SRCSUFF)
529 cl @<<
530$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
531<<
532
533$(MSWDIR)/pen.obj: $*.$(SRCSUFF)
534 cl @<<
535$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
536<<
537
538$(MSWDIR)/penwin.obj: $*.$(SRCSUFF)
539 cl @<<
540$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
541<<
542
543$(MSWDIR)/printdlg.obj: $*.$(SRCSUFF)
544 cl @<<
545$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
546<<
547
548$(MSWDIR)/printwin.obj: $*.$(SRCSUFF)
549 cl @<<
550$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
551<<
552
553$(MSWDIR)/radiobox.obj: $*.$(SRCSUFF)
554 cl @<<
555$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
556<<
557
558$(MSWDIR)/radiobut.obj: $*.$(SRCSUFF)
559 cl @<<
560$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
561<<
562
563$(MSWDIR)/region.obj: $*.$(SRCSUFF)
564 cl @<<
565$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
566<<
567
568$(MSWDIR)/registry.obj: $*.$(SRCSUFF)
569 cl @<<
570$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
571<<
572
573$(MSWDIR)/scrolbar.obj: $*.$(SRCSUFF)
574 cl @<<
575$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
576<<
577
578$(MSWDIR)/settings.obj: $*.$(SRCSUFF)
579 cl @<<
580$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
581<<
582
da87a1ca 583$(MSWDIR)/slidrmsw.obj: $*.$(SRCSUFF)
2bda0e17
KB
584 cl @<<
585$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
586<<
587
588$(MSWDIR)/spinbutt.obj: $*.$(SRCSUFF)
589 cl @<<
590$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
591<<
592
593$(MSWDIR)/statbmp.obj: $*.$(SRCSUFF)
594 cl @<<
595$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
596<<
597
598$(MSWDIR)/statbox.obj: $*.$(SRCSUFF)
599 cl @<<
600$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
601<<
602
603$(MSWDIR)/stattext.obj: $*.$(SRCSUFF)
604 cl @<<
605$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
606<<
607
2bda0e17
KB
608$(MSWDIR)/tbarmsw.obj: $*.$(SRCSUFF)
609 cl @<<
610$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
611<<
612
613$(MSWDIR)/textctrl.obj: $*.$(SRCSUFF)
614 cl @<<
615$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
616<<
617
618$(MSWDIR)/timer.obj: $*.$(SRCSUFF)
619 cl @<<
620$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
621<<
622
1f112209
JS
623$(MSWDIR)/tooltip.obj: $*.$(SRCSUFF)
624 cl @<<
625$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
626<<
627
2bda0e17
KB
628$(MSWDIR)/treectrl.obj: $*.$(SRCSUFF)
629 cl @<<
630$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
631<<
632
633$(MSWDIR)/utils.obj: $*.$(SRCSUFF)
634 cl @<<
635$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
636<<
637
5260b1c5
JS
638$(MSWDIR)/utilsexc.obj: $*.$(SRCSUFF)
639 cl @<<
640$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
641<<
642
2bda0e17
KB
643$(MSWDIR)/wave.obj: $*.$(SRCSUFF)
644 cl @<<
645$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
646<<
647
648$(MSWDIR)/window.obj: $*.$(SRCSUFF)
649 cl @<<
650$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
651<<
652
653$(OLEDIR)/droptgt.obj: $*.$(SRCSUFF)
654 cl @<<
655$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
656<<
657
43d811ea
JS
658$(OLEDIR)/dropsrc.obj: $*.$(SRCSUFF)
659 cl @<<
660$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
661<<
662
663$(OLEDIR)/dataobj.obj: $*.$(SRCSUFF)
664 cl @<<
665$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
666<<
667
2bda0e17
KB
668$(OLEDIR)/oleutils.obj: $*.$(SRCSUFF)
669 cl @<<
670$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
671<<
672
673$(OLEDIR)/uuid.obj: $*.$(SRCSUFF)
674 cl @<<
675$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
676<<
677
1e6d9499
JS
678$(OLEDIR)/automtn.obj: $*.$(SRCSUFF)
679 cl @<<
680$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
681<<
682
2bda0e17
KB
683########################################################
684# Common objects (always compiled)
685
686$(COMMDIR)/config.obj: $*.$(SRCSUFF)
687 cl @<<
688$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
689<<
690
691$(COMMDIR)/cmndata.obj: $*.$(SRCSUFF)
692 cl @<<
693$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
694<<
695
696$(COMMDIR)/docview.obj: $*.$(SRCSUFF)
697 cl @<<
698$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
699<<
700
2108f33a
JS
701$(COMMDIR)/docmdi.obj: $*.$(SRCSUFF)
702 cl @<<
703$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
704<<
705
2bda0e17
KB
706$(COMMDIR)/dynarray.obj: $*.$(SRCSUFF)
707 cl @<<
708$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
709<<
710
711$(COMMDIR)/event.obj: $*.$(SRCSUFF)
712 cl @<<
713$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
714<<
715
716$(COMMDIR)/file.obj: $*.$(SRCSUFF)
717 cl @<<
718$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
719<<
720
721$(COMMDIR)/fileconf.obj: $*.$(SRCSUFF)
722 cl @<<
723$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
724<<
725
726$(COMMDIR)/filefn.obj: $*.$(SRCSUFF)
727 cl @<<
728$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
729<<
730
3d8bd7d6
JS
731$(COMMDIR)/framecmn.obj: $*.$(SRCSUFF)
732 cl @<<
733$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
734<<
735
2bda0e17
KB
736$(COMMDIR)/gdicmn.obj: $*.$(SRCSUFF)
737 cl @<<
738$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
739<<
740
741$(COMMDIR)/helpbase.obj: $*.$(SRCSUFF)
742 cl @<<
743$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
744<<
745
1e6d9499
JS
746$(COMMDIR)/image.obj: $*.$(SRCSUFF)
747 cl @<<
748$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
749<<
750
2bda0e17
KB
751$(COMMDIR)/intl.obj: $*.$(SRCSUFF)
752 cl @<<
753$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
754<<
755
756$(COMMDIR)/ipcbase.obj: $*.$(SRCSUFF)
757 cl @<<
758$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
759<<
760
761$(COMMDIR)/layout.obj: $*.$(SRCSUFF)
762 cl @<<
763$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
764<<
765
766$(COMMDIR)/log.obj: $*.$(SRCSUFF)
767 cl @<<
768$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
769<<
770
771$(COMMDIR)/memory.obj: $*.$(SRCSUFF)
772 cl @<<
773$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
774<<
775
2432b92d
JS
776$(COMMDIR)/mimetype.obj: $*.$(SRCSUFF)
777 cl @<<
778$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
779<<
780
2bda0e17
KB
781$(COMMDIR)/module.obj: $*.$(SRCSUFF)
782 cl @<<
783$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
784<<
785
786$(COMMDIR)/object.obj: $*.$(SRCSUFF)
787 cl @<<
788$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
789<<
790
791$(COMMDIR)/odbc.obj: $*.$(SRCSUFF)
792 cl @<<
793$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
2bda0e17
KB
794<<
795
6a6c0a8b
JS
796$(COMMDIR)/process.obj: $*.$(SRCSUFF)
797 cl @<<
798$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
799<<
800
2bda0e17
KB
801$(COMMDIR)/prntbase.obj: $*.$(SRCSUFF)
802 cl @<<
803$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
804<<
805
806$(COMMDIR)/resource.obj: $*.$(SRCSUFF)
807 cl @<<
808$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
809<<
810
811$(COMMDIR)/tbarbase.obj: $*.$(SRCSUFF)
812 cl @<<
813$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
814<<
815
816$(COMMDIR)/tbarsmpl.obj: $*.$(SRCSUFF)
817 cl @<<
818$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
819<<
820
821$(COMMDIR)/textfile.obj: $*.$(SRCSUFF)
822 cl @<<
823$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
824<<
825
826$(COMMDIR)/timercmn.obj: $*.$(SRCSUFF)
827 cl @<<
828$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
829<<
830
831$(COMMDIR)/utilscmn.obj: $*.$(SRCSUFF)
832 cl @<<
833$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
834<<
835
836$(COMMDIR)/validate.obj: $*.$(SRCSUFF)
837 cl @<<
838$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
839<<
840
89c684ef
JS
841$(COMMDIR)/valgen.obj: $*.$(SRCSUFF)
842 cl @<<
843$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
844<<
845
2bda0e17
KB
846$(COMMDIR)/valtext.obj: $*.$(SRCSUFF)
847 cl @<<
848$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
849<<
850
851$(COMMDIR)/date.obj: $*.$(SRCSUFF)
852 cl @<<
853$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
854<<
855
856$(COMMDIR)/wxexpr.obj: $*.$(SRCSUFF)
857 cl @<<
858$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
859<<
860
861$(COMMDIR)/hash.obj: $*.$(SRCSUFF)
862 cl @<<
863$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
864<<
865
866$(COMMDIR)/list.obj: $*.$(SRCSUFF)
867 cl @<<
868$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
869<<
870
341287bf
JS
871$(COMMDIR)/variant.obj: $*.$(SRCSUFF)
872 cl @<<
873$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
874<<
875
2bda0e17
KB
876$(COMMDIR)/string.obj: $*.$(SRCSUFF)
877 cl @<<
878$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
879<<
880
881$(COMMDIR)/matrix.obj: $*.$(SRCSUFF)
882 cl @<<
883$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
884<<
885
886$(COMMDIR)/wxstrgnu/wxstrgnu.obj: $*.$(SRCSUFF)
887 cl @<<
888$(CPPFLAGS2) /Fo$@ /c /Tp $*.$(SRCSUFF)
889<<
890
891$(COMMDIR)/wxstrgnu/wxregex.obj: $*.$(SRCSUFF)
892 cl @<<
893$(CPPFLAGS2) /Fo$@ /c /Tp $*.$(SRCSUFF)
894<<
895
896$(COMMDIR)/time.obj: $*.$(SRCSUFF)
897 cl @<<
898$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
899<<
900
81d66cf3
JS
901$(COMMDIR)/stream.obj: $*.$(SRCSUFF)
902 cl @<<
903$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
904<<
905
25331334 906$(COMMDIR)/wfstream.obj: $*.$(SRCSUFF)
81d66cf3
JS
907 cl @<<
908$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
909<<
910
911$(COMMDIR)/mstream.obj: $*.$(SRCSUFF)
912 cl @<<
913$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
914<<
915
916$(COMMDIR)/zstream.obj: $*.$(SRCSUFF)
917 cl @<<
918$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
919<<
920
cf447356
GL
921$(COMMDIR)/datstrm.obj: $*.$(SRCSUFF)
922 cl @<<
923$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
924<<
925
926$(COMMDIR)/extended.obj: $*.c
927 cl @<<
5260b1c5 928$(CPPFLAGS2) /Fo$@ /c /Tp $*.c
cf447356
GL
929<<
930
3d8bd7d6
JS
931$(COMMDIR)/wincmn.obj: $*.$(SRCSUFF)
932 cl @<<
933$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
934<<
935
2bda0e17
KB
936$(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
937 cl @<<
938$(CPPFLAGS2) -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ /I ..\common /c $*.c
939<<
940
941$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
942 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
943
944$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
945 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
946
947########################################################
948# Generic objects (not always compiled, depending on
949# whether platforms have native implementations)
950
951$(GENDIR)/choicdgg.obj: $*.$(SRCSUFF)
952 cl @<<
953$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
954<<
955
956$(GENDIR)/colrdlgg.obj: $*.$(SRCSUFF)
957 cl @<<
958$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
959<<
960
1e6d9499
JS
961$(GENDIR)/dirdlgg.obj: $*.$(SRCSUFF)
962 cl @<<
963$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
964<<
965
2bda0e17
KB
966$(GENDIR)/fontdlgg.obj: $*.$(SRCSUFF)
967 cl @<<
968$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
969<<
970
971$(GENDIR)/gridg.obj: $*.$(SRCSUFF)
972 cl @<<
973$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
974<<
975
1e6d9499
JS
976$(GENDIR)/imaglist.obj: $*.$(SRCSUFF)
977 cl @<<
978$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
979<<
980
981$(GENDIR)/listctrl.obj: $*.$(SRCSUFF)
982 cl @<<
983$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
984<<
985
986$(GENDIR)/notebook.obj: $*.$(SRCSUFF)
987 cl @<<
988$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
989<<
990
2bda0e17
KB
991$(GENDIR)/helpxlp.obj: $*.$(SRCSUFF)
992 cl @<<
993$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
994<<
995
996$(GENDIR)/msgdlgg.obj: $*.$(SRCSUFF)
997 cl @<<
998$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
999<<
1000
1001$(GENDIR)/panelg.obj: $*.$(SRCSUFF)
1002 cl @<<
1003$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1004<<
1005
1006$(GENDIR)/printps.obj: $*.$(SRCSUFF)
1007 cl @<<
1008$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1009<<
1010
1011$(GENDIR)/prntdlgg.obj: $*.$(SRCSUFF)
1012 cl @<<
1013$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1014<<
1015
e3a43801
JS
1016$(GENDIR)/prop.obj: $*.$(SRCSUFF)
1017 cl @<<
1018$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1019<<
1020
1021$(GENDIR)/propform.obj: $*.$(SRCSUFF)
1022 cl @<<
1023$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1024<<
1025
1026$(GENDIR)/proplist.obj: $*.$(SRCSUFF)
1027 cl @<<
1028$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1029<<
1030
2bda0e17
KB
1031$(GENDIR)/scrolwin.obj: $*.$(SRCSUFF)
1032 cl @<<
1033$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1034<<
1035
1036$(GENDIR)/splitter.obj: $*.$(SRCSUFF)
1037 cl @<<
1038$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1039<<
1040
1041$(GENDIR)/statusbr.obj: $*.$(SRCSUFF)
1042 cl @<<
1043$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1044<<
1045
1046$(GENDIR)/tabg.obj: $*.$(SRCSUFF)
1047 cl @<<
1048$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1049<<
1050
1051$(GENDIR)/textdlgg.obj: $*.$(SRCSUFF)
1052 cl @<<
1053$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1054<<
1055
1e6d9499
JS
1056$(GENDIR)/treectrl.obj: $*.$(SRCSUFF)
1057 cl @<<
1058$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
1059<<
1060
2bda0e17
KB
1061$(OBJECTS): $(WXDIR)/include/wx/setup.h
1062
1063# Peripheral components
1064
1065xpm:
c7f49969 1066 cd $(WXDIR)\src\xpm
2bda0e17
KB
1067 nmake -f makefile.dos FINAL=$(FINAL)
1068 cd $(WXDIR)\src\msw
1069
1070clean_xpm:
c7f49969
JS
1071 cd $(WXDIR)\src\xpm
1072 nmake -f makefile.dos clean
1073 cd $(WXDIR)\src\msw
1074
1075zlib:
1076 cd $(WXDIR)\src\zlib
1077 nmake -f makefile.dos FINAL=$(FINAL)
1078 cd $(WXDIR)\src\msw
1079
1080clean_zlib:
1081 cd $(WXDIR)\src\zlib
1082 nmake -f makefile.dos clean
1083 cd $(WXDIR)\src\msw
1084
1085png:
1086 cd $(WXDIR)\src\png
1087 nmake -f makefile.dos FINAL=$(FINAL)
1088 cd $(WXDIR)\src\msw
1089
1090clean_png:
1091 cd $(WXDIR)\src\png
2bda0e17
KB
1092 nmake -f makefile.dos clean
1093 cd $(WXDIR)\src\msw
1094
1095clean: $(PERIPH_CLEAN_TARGET)
1096 -erase *.obj
1097 -erase ..\lib\*.lib
1098 -erase *.pdb
1099 -erase *.sbr
1100 -erase *.pch
1101 cd $(WXDIR)\src\generic
1102 -erase *.pdb
1103 -erase *.sbr
1104 -erase *.obj
1105 cd $(WXDIR)\src\common
1106 -erase *.pdb
1107 -erase *.sbr
1108 -erase *.obj
1109 cd $(WXDIR)\src\msw\ole
1110 -erase *.pdb
1111 -erase *.sbr
1112 -erase *.obj
1113 cd $(WXDIR)\src\msw
1114
1115cleanall: clean
1116
2bda0e17 1117