]> git.saurik.com Git - wxWidgets.git/blob - src/mac/makefile.nt
mingw compilation fix
[wxWidgets.git] / src / mac / makefile.nt
1 #
2 # File: makefile.nt
3 # Author: Julian Smart
4 # Created: 1997
5 # Updated:
6 # Copyright: (c) 1997, Julian Smart
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds wxWindows stubs library wxstubs.lib for VC++ (32-bit)
11 # Arguments:
12 #
13 # FINAL=1 argument to nmake to build version with no debugging info.
14 #
15
16 !include <ntwin32.mak>
17
18 APPVER=3.50 # 4.0
19 # This means 'enable Windows 95 features' (in wxWindows and in VC++ 4.0).
20 WINVERSION=-DWINVER=0x0400
21
22 # On Alpha machines, change to CPU=ALPHA
23 CPU=i386
24
25 # Suffixes
26 OBJSUFF=obj
27 SRCSUFF=cpp
28
29 WINFLAGS=-c -W3 -Dtry=__try -Dexcept=__except -Dleave=__leave -Dfinally=__finally -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 $(WINVERSION) -D__WIN32__ -D__WINDOWS__
30 WINLINKFLAGS=/INCREMENTAL:NO /NOLOGO -align:0x1000 -machine:$(CPU) -subsystem:windows,$(APPVER)
31 WINLIBS=kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib\
32 comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib # libci.lib # libci.lib required for VC++ 4.2
33
34 # Change this to your WXWIN directory
35 WXDIR=$(WXWIN)
36
37 WXSRC=$(WXDIR)\src\stubs
38 WXINC=$(WXDIR)\include
39 WXBASESRC=$(WXDIR)\src\common
40
41 WXLIB=$(WXDIR)\lib\wxstubs.lib
42
43 EXTRADLLFLAGS=
44
45 INC=-I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib $(EXTRAINC)
46 LIBS = $(EXTRALIBS) $(WXLIB) $(WINLIBS)
47
48 !ifndef FINAL
49 FINAL=0
50 DEBUG=1
51 !endif
52
53 # Set this to 1 if you don't want to use precompiled headers
54 NOPCH=1
55
56 OPTIONS=
57
58 !if "$(FINAL)" == "0"
59 OPT = /Od /Gy
60 # ***N.B.*** to save space/time, comment out /FR to avoid browse info (.sbr files) being generated
61 DEBUG_FLAGS= /Zi # /FR
62 LINK_DEBUG_FLAGS=-debug:full -debugtype:cv # /PDB:NONE
63 CRTFLAG=/MD
64 !else
65 # /O1 - smallest code
66 # /O2 - fastest code
67 OPT = /O1 # /O2 # /Od
68 DEBUG_FLAGS=
69 LINK_DEBUG_FLAGS=/RELEASE
70 CRTFLAG=/MD
71 !endif
72
73 PCH=
74 PRECOMP=
75 MAKEPRECOMP=
76
77 CPPFLAGS=$(WINFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXSTUBS__ /DDEBUG=1 $(INC) $(OPT) $(CRTFLAG) /GX /D__WXDEBUG__ /DWXDEBUG=1
78 # If you don't include wxprec.h, use CPPFLAGS2
79 CPPFLAGS2=$(WINFLAGS) $(DEBUG_FLAGS) /D__WXSTUBS__ /DDEBUG=1 $(INC) $(EXTRAFLAGS) $(OPT) $(CRTFLAG) /GX /D__WXDEBUG__ /DWXDEBUG=1
80 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(WINLINKFLAGS) -entry:WinMainCRTStartup
81
82 THISDIR=$(WXWIN)\src\stubs
83
84 LIBTARGET=$(WXLIB)
85
86 # Please set these according to the settings in wx_setup.h, so we can include
87 # the appropriate libraries in wx.lib
88
89 PERIPH_LIBS=
90 PERIPH_TARGET=
91 PERIPH_CLEAN_TARGET=
92
93 GENDIR=..\generic
94 COMMDIR=..\common
95 STUBSDIR=.
96
97 DOCDIR = $(WXDIR)\docs
98
99 GENERICOBJS= \
100 $(GENDIR)\choicdgg.obj \
101 $(GENDIR)\colrdlgg.obj \
102 $(GENDIR)\fontdlgg.obj \
103 $(GENDIR)\gridg.obj \
104 $(GENDIR)\msgdlgg.obj \
105 $(GENDIR)\panelg.obj \
106 $(GENDIR)\printps.obj \
107 $(GENDIR)\prntdlgg.obj \
108 $(GENDIR)\scrolwin.obj \
109 $(GENDIR)\splitter.obj \
110 $(GENDIR)\statusbr.obj \
111 $(GENDIR)\tabg.obj \
112 $(GENDIR)\textdlgg.obj
113
114 # $(GENDIR)\helpxlp.obj \
115
116 COMMONOBJS = \
117 $(COMMDIR)\cmndata.obj \
118 $(COMMDIR)\config.obj \
119 $(COMMDIR)\docview.obj \
120 $(COMMDIR)\docmdi.obj \
121 $(COMMDIR)\dynarray.obj \
122 $(COMMDIR)\event.obj \
123 $(COMMDIR)\file.obj \
124 $(COMMDIR)\filefn.obj \
125 $(COMMDIR)\fileconf.obj \
126 $(COMMDIR)\framecmn.obj \
127 $(COMMDIR)\gdicmn.obj \
128 $(COMMDIR)\intl.obj \
129 $(COMMDIR)\ipcbase.obj \
130 $(COMMDIR)\helpbase.obj \
131 $(COMMDIR)\layout.obj \
132 $(COMMDIR)\log.obj \
133 $(COMMDIR)\memory.obj \
134 $(COMMDIR)\module.obj \
135 $(COMMDIR)\object.obj \
136 $(COMMDIR)\postscrp.obj \
137 $(COMMDIR)\prntbase.obj \
138 $(COMMDIR)\resource.obj \
139 $(COMMDIR)\tbarbase.obj \
140 $(COMMDIR)\tbarsmpl.obj \
141 $(COMMDIR)\textfile.obj \
142 $(COMMDIR)\timercmn.obj \
143 $(COMMDIR)\utilscmn.obj \
144 $(COMMDIR)\validate.obj \
145 $(COMMDIR)\valtext.obj \
146 $(COMMDIR)\date.obj \
147 $(COMMDIR)\hash.obj \
148 $(COMMDIR)\list.obj \
149 $(COMMDIR)\string.obj \
150 $(COMMDIR)\time.obj \
151 $(COMMDIR)\wxexpr.obj \
152 $(COMMDIR)\y_tab.obj \
153 $(COMMDIR)\extended.obj \
154 $(COMMDIR)\process.obj \
155 $(COMMDIR)\fstream.obj \
156 $(COMMDIR)\mstream.obj \
157 $(COMMDIR)\zstream.obj \
158 $(COMMDIR)\stream.obj \
159 $(COMMDIR)\datstrm.obj \
160 $(COMMDIR)\wincmn.obj
161
162 # $(COMMDIR)\odbc.obj \
163
164 STUBSOBJS = \
165 $(STUBSDIR)\accel.obj \
166 $(STUBSDIR)\app.obj \
167 $(STUBSDIR)\bitmap.obj \
168 $(STUBSDIR)\bmpbuttn.obj \
169 $(STUBSDIR)\brush.obj \
170 $(STUBSDIR)\button.obj \
171 $(STUBSDIR)\checkbox.obj \
172 $(STUBSDIR)\checklst.obj \
173 $(STUBSDIR)\choice.obj \
174 $(STUBSDIR)\clipbrd.obj \
175 $(STUBSDIR)\colordlg.obj \
176 $(STUBSDIR)\colour.obj \
177 $(STUBSDIR)\combobox.obj \
178 $(STUBSDIR)\control.obj \
179 $(STUBSDIR)\cursor.obj \
180 $(STUBSDIR)\data.obj \
181 $(STUBSDIR)\dc.obj \
182 $(STUBSDIR)\dcmemory.obj \
183 $(STUBSDIR)\dcclient.obj \
184 $(STUBSDIR)\dcscreen.obj \
185 $(STUBSDIR)\dialog.obj \
186 $(STUBSDIR)\dirdlg.obj \
187 $(STUBSDIR)\filedlg.obj \
188 $(STUBSDIR)\font.obj \
189 $(STUBSDIR)\fontdlg.obj \
190 $(STUBSDIR)\frame.obj \
191 $(STUBSDIR)\gauge.obj \
192 $(STUBSDIR)\gdiobj.obj \
193 $(STUBSDIR)\helpxxxx.obj \
194 $(STUBSDIR)\icon.obj \
195 $(STUBSDIR)\imaglist.obj \
196 $(STUBSDIR)\joystick.obj \
197 $(STUBSDIR)\listbox.obj \
198 $(STUBSDIR)\listctrl.obj \
199 $(STUBSDIR)\main.obj \
200 $(STUBSDIR)\mdi.obj \
201 $(STUBSDIR)\menu.obj \
202 $(STUBSDIR)\menuitem.obj \
203 $(STUBSDIR)\metafile.obj \
204 $(STUBSDIR)\minifram.obj \
205 $(STUBSDIR)\msgdlg.obj \
206 $(STUBSDIR)\notebook.obj \
207 $(STUBSDIR)\palette.obj \
208 $(STUBSDIR)\pen.obj \
209 $(STUBSDIR)\printdlg.obj \
210 $(STUBSDIR)\print.obj \
211 $(STUBSDIR)\radiobox.obj \
212 $(STUBSDIR)\radiobut.obj \
213 $(STUBSDIR)\region.obj \
214 $(STUBSDIR)\scrolbar.obj \
215 $(STUBSDIR)\settings.obj \
216 $(STUBSDIR)\slider.obj \
217 $(STUBSDIR)\spinbutt.obj \
218 $(STUBSDIR)\statbmp.obj \
219 $(STUBSDIR)\statbox.obj \
220 $(STUBSDIR)\statusbr.obj \
221 $(STUBSDIR)\stattext.obj \
222 $(STUBSDIR)\tabctrl.obj \
223 $(STUBSDIR)\taskbar.obj \
224 $(STUBSDIR)\toolbar.obj \
225 $(STUBSDIR)\textctrl.obj \
226 $(STUBSDIR)\thread.obj \
227 $(STUBSDIR)\timer.obj \
228 $(STUBSDIR)\treectrl.obj \
229 $(STUBSDIR)\utils.obj \
230 $(STUBSDIR)\utilsexc.obj \
231 $(STUBSDIR)\wave.obj \
232 $(STUBSDIR)\window.obj
233
234
235 OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(STUBSOBJS)
236
237 # Normal, static library
238 all: $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
239
240 $(WXDIR)\lib\wxstubs.lib: $(OBJECTS) $(PERIPH_LIBS)
241 -erase $(LIBTARGET)
242 $(implib) @<<
243 -out:$@
244 -machine:$(CPU)
245 $(OBJECTS) $(PERIPH_LIBS)
246 <<
247
248 ########################################################
249 # Windows-specific objects
250
251 $(STUBSDIR)/accel.obj: $*.$(SRCSUFF)
252 cl @<<
253 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
254 <<
255
256 $(STUBSDIR)/app.obj: $*.$(SRCSUFF)
257 cl @<<
258 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
259 <<
260
261 $(STUBSDIR)/bitmap.obj: $*.$(SRCSUFF)
262 cl @<<
263 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
264 <<
265
266 $(STUBSDIR)/bmpbuttn.obj: $*.$(SRCSUFF)
267 cl @<<
268 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
269 <<
270
271 $(STUBSDIR)/brush.obj: $*.$(SRCSUFF)
272 cl @<<
273 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
274 <<
275
276 $(STUBSDIR)/button.obj: $*.$(SRCSUFF)
277 cl @<<
278 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
279 <<
280
281 $(STUBSDIR)/choice.obj: $*.$(SRCSUFF)
282 cl @<<
283 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
284 <<
285
286 $(STUBSDIR)/checkbox.obj: $*.$(SRCSUFF)
287 cl @<<
288 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
289 <<
290
291 $(STUBSDIR)/checklst.obj: $*.$(SRCSUFF)
292 cl @<<
293 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
294 <<
295
296 $(STUBSDIR)/clipbrd.obj: $*.$(SRCSUFF)
297 cl @<<
298 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
299 <<
300
301 $(STUBSDIR)/colordlg.obj: $*.$(SRCSUFF)
302 cl @<<
303 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
304 <<
305
306 $(STUBSDIR)/colour.obj: $*.$(SRCSUFF)
307 cl @<<
308 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
309 <<
310
311 $(STUBSDIR)/combobox.obj: $*.$(SRCSUFF)
312 cl @<<
313 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
314 <<
315
316 $(STUBSDIR)/control.obj: $*.$(SRCSUFF)
317 cl @<<
318 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
319 <<
320
321 $(STUBSDIR)/cursor.obj: $*.$(SRCSUFF)
322 cl @<<
323 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
324 <<
325
326 $(STUBSDIR)/data.obj: $*.$(SRCSUFF)
327 cl @<<
328 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
329 <<
330
331 $(STUBSDIR)/dc.obj: $*.$(SRCSUFF)
332 cl @<<
333 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
334 <<
335
336 $(STUBSDIR)/dcmemory.obj: $*.$(SRCSUFF)
337 cl @<<
338 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
339 <<
340
341 $(STUBSDIR)/dcclient.obj: $*.$(SRCSUFF)
342 cl @<<
343 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
344 <<
345
346 $(STUBSDIR)/dcprint.obj: $*.$(SRCSUFF)
347 cl @<<
348 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
349 <<
350
351 $(STUBSDIR)/dcscreen.obj: $*.$(SRCSUFF)
352 cl @<<
353 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
354 <<
355
356 $(STUBSDIR)/dialog.obj: $*.$(SRCSUFF)
357 cl @<<
358 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
359 <<
360
361 $(STUBSDIR)/dirdlg.obj: $*.$(SRCSUFF)
362 cl @<<
363 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
364 <<
365
366 $(STUBSDIR)/filedlg.obj: $*.$(SRCSUFF)
367 cl @<<
368 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
369 <<
370
371 $(STUBSDIR)/font.obj: $*.$(SRCSUFF)
372 cl @<<
373 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
374 <<
375
376 $(STUBSDIR)/fontdlg.obj: $*.$(SRCSUFF)
377 cl @<<
378 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
379 <<
380
381 $(STUBSDIR)/frame.obj: $*.$(SRCSUFF)
382 cl @<<
383 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
384 <<
385
386 $(STUBSDIR)/gauge.obj: $*.$(SRCSUFF)
387 cl @<<
388 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
389 <<
390
391 $(STUBSDIR)/gdiobj.obj: $*.$(SRCSUFF)
392 cl @<<
393 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
394 <<
395
396 $(STUBSDIR)/icon.obj: $*.$(SRCSUFF)
397 cl @<<
398 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
399 <<
400
401 $(STUBSDIR)/imaglist.obj: $*.$(SRCSUFF)
402 cl @<<
403 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
404 <<
405
406 $(STUBSDIR)/joystick.obj: $*.$(SRCSUFF)
407 cl @<<
408 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
409 <<
410
411 $(STUBSDIR)/listbox.obj: $*.$(SRCSUFF)
412 cl @<<
413 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
414 <<
415
416 $(STUBSDIR)/listctrl.obj: $*.$(SRCSUFF)
417 cl @<<
418 $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
419 <<
420
421 $(STUBSDIR)/main.obj: $*.$(SRCSUFF)
422 cl @<<
423 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
424 <<
425
426 $(STUBSDIR)/mdi.obj: $*.$(SRCSUFF)
427 cl @<<
428 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
429 <<
430
431 $(STUBSDIR)/menu.obj: $*.$(SRCSUFF)
432 cl @<<
433 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
434 <<
435
436 $(STUBSDIR)/menuitem.obj: $*.$(SRCSUFF)
437 cl @<<
438 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
439 <<
440
441 $(STUBSDIR)/metafile.obj: $*.$(SRCSUFF)
442 cl @<<
443 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
444 <<
445
446 $(STUBSDIR)/minifram.obj: $*.$(SRCSUFF)
447 cl @<<
448 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
449 <<
450
451 $(STUBSDIR)/msgdlg.obj: $*.$(SRCSUFF)
452 cl @<<
453 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
454 <<
455
456 $(STUBSDIR)/notebook.obj: $*.$(SRCSUFF)
457 cl @<<
458 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
459 <<
460
461 $(STUBSDIR)/palette.obj: $*.$(SRCSUFF)
462 cl @<<
463 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
464 <<
465
466 $(STUBSDIR)/pen.obj: $*.$(SRCSUFF)
467 cl @<<
468 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
469 <<
470
471 $(STUBSDIR)/printdlg.obj: $*.$(SRCSUFF)
472 cl @<<
473 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
474 <<
475
476 $(STUBSDIR)/print.obj: $*.$(SRCSUFF)
477 cl @<<
478 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
479 <<
480
481 $(STUBSDIR)/radiobox.obj: $*.$(SRCSUFF)
482 cl @<<
483 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
484 <<
485
486 $(STUBSDIR)/radiobut.obj: $*.$(SRCSUFF)
487 cl @<<
488 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
489 <<
490
491 $(STUBSDIR)/region.obj: $*.$(SRCSUFF)
492 cl @<<
493 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
494 <<
495
496 $(STUBSDIR)/scrolbar.obj: $*.$(SRCSUFF)
497 cl @<<
498 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
499 <<
500
501 $(STUBSDIR)/settings.obj: $*.$(SRCSUFF)
502 cl @<<
503 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
504 <<
505
506 $(STUBSDIR)/slider.obj: $*.$(SRCSUFF)
507 cl @<<
508 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
509 <<
510
511 $(STUBSDIR)/spinbutt.obj: $*.$(SRCSUFF)
512 cl @<<
513 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
514 <<
515
516 $(STUBSDIR)/statbmp.obj: $*.$(SRCSUFF)
517 cl @<<
518 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
519 <<
520
521 $(STUBSDIR)/statbox.obj: $*.$(SRCSUFF)
522 cl @<<
523 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
524 <<
525
526 $(STUBSDIR)/statusbr.obj: $*.$(SRCSUFF)
527 cl @<<
528 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
529 <<
530
531 $(STUBSDIR)/stattext.obj: $*.$(SRCSUFF)
532 cl @<<
533 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
534 <<
535
536 $(STUBSDIR)/tabctrl.obj: $*.$(SRCSUFF)
537 cl @<<
538 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
539 <<
540
541 $(STUBSDIR)/taskbar.obj: $*.$(SRCSUFF)
542 cl @<<
543 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
544 <<
545
546 $(STUBSDIR)/toolbar.obj: $*.$(SRCSUFF)
547 cl @<<
548 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
549 <<
550
551 $(STUBSDIR)/textctrl.obj: $*.$(SRCSUFF)
552 cl @<<
553 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
554 <<
555
556 $(STUBSDIR)/thread.obj: $*.$(SRCSUFF)
557 cl @<<
558 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
559 <<
560
561 $(STUBSDIR)/timer.obj: $*.$(SRCSUFF)
562 cl @<<
563 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
564 <<
565
566 $(STUBSDIR)/treectrl.obj: $*.$(SRCSUFF)
567 cl @<<
568 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
569 <<
570
571 $(STUBSDIR)/utils.obj: $*.$(SRCSUFF)
572 cl @<<
573 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
574 <<
575
576 $(STUBSDIR)/utilsexc.obj: $*.$(SRCSUFF)
577 cl @<<
578 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
579 <<
580
581 $(STUBSDIR)/wave.obj: $*.$(SRCSUFF)
582 echo $(CPPFLAGS)
583 cl @<<
584 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
585 <<
586
587 $(STUBSDIR)/window.obj: $*.$(SRCSUFF)
588 echo $(CPPFLAGS)
589 cl @<<
590 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
591 <<
592
593 ########################################################
594 # Common objects (always compiled)
595
596 $(COMMDIR)/cmndata.obj: $*.$(SRCSUFF)
597 echo $(CPPFLAGS)
598 cl @<<
599 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
600 <<
601
602 $(COMMDIR)/config.obj: $*.$(SRCSUFF)
603 echo $(CPPFLAGS)
604 cl @<<
605 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
606 <<
607
608 $(COMMDIR)/db.obj: $*.$(SRCSUFF)
609 echo $(CPPFLAGS)
610 cl @<<
611 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
612 <<
613
614 $(COMMDIR)/dbtable.obj: $*.$(SRCSUFF)
615 echo $(CPPFLAGS)
616 cl @<<
617 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
618 <<
619
620 $(COMMDIR)/docview.obj: $*.$(SRCSUFF)
621 cl @<<
622 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
623 <<
624
625 $(COMMDIR)/docmdi.obj: $*.$(SRCSUFF)
626 cl @<<
627 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
628 <<
629
630 $(COMMDIR)/dynarray.obj: $*.$(SRCSUFF)
631 cl @<<
632 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
633 <<
634
635 $(COMMDIR)/event.obj: $*.$(SRCSUFF)
636 cl @<<
637 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
638 <<
639
640 $(COMMDIR)/file.obj: $*.$(SRCSUFF)
641 cl @<<
642 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
643 <<
644
645 $(COMMDIR)/fileconf.obj: $*.$(SRCSUFF)
646 cl @<<
647 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
648 <<
649
650 $(COMMDIR)/filefn.obj: $*.$(SRCSUFF)
651 cl @<<
652 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
653 <<
654
655 $(COMMDIR)/framecmn.obj: $*.$(SRCSUFF)
656 cl @<<
657 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
658 <<
659
660 $(COMMDIR)/gdicmn.obj: $*.$(SRCSUFF)
661 cl @<<
662 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
663 <<
664
665 $(COMMDIR)/intl.obj: $*.$(SRCSUFF)
666 cl @<<
667 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
668 <<
669
670 $(COMMDIR)/ipcbase.obj: $*.$(SRCSUFF)
671 cl @<<
672 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
673 <<
674
675 $(COMMDIR)/helpbase.obj: $*.$(SRCSUFF)
676 cl @<<
677 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
678 <<
679
680 $(COMMDIR)/layout.obj: $*.$(SRCSUFF)
681 cl @<<
682 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
683 <<
684
685 $(COMMDIR)/log.obj: $*.$(SRCSUFF)
686 cl @<<
687 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
688 <<
689
690 $(COMMDIR)/memory.obj: $*.$(SRCSUFF)
691 cl @<<
692 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
693 <<
694
695 $(COMMDIR)/module.obj: $*.$(SRCSUFF)
696 cl @<<
697 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
698 <<
699
700 $(COMMDIR)/object.obj: $*.$(SRCSUFF)
701 cl @<<
702 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
703 <<
704
705 $(COMMDIR)/odbc.obj: $*.$(SRCSUFF)
706 cl @<<
707 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
708 <<
709
710 $(COMMDIR)/postscrp.obj: $*.$(SRCSUFF)
711 cl @<<
712 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
713 <<
714
715 $(COMMDIR)/prntbase.obj: $*.$(SRCSUFF)
716 cl @<<
717 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
718 <<
719
720 $(COMMDIR)/resource.obj: $*.$(SRCSUFF)
721 cl @<<
722 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
723 <<
724
725 $(COMMDIR)/tbarbase.obj: $*.$(SRCSUFF)
726 cl @<<
727 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
728 <<
729
730 $(COMMDIR)/tbarsmpl.obj: $*.$(SRCSUFF)
731 cl @<<
732 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
733 <<
734
735 $(COMMDIR)/textfile.obj: $*.$(SRCSUFF)
736 cl @<<
737 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
738 <<
739
740 $(COMMDIR)/timercmn.obj: $*.$(SRCSUFF)
741 cl @<<
742 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
743 <<
744
745 $(COMMDIR)/utilscmn.obj: $*.$(SRCSUFF)
746 cl @<<
747 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
748 <<
749
750 $(COMMDIR)/validate.obj: $*.$(SRCSUFF)
751 cl @<<
752 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
753 <<
754
755 $(COMMDIR)/valtext.obj: $*.$(SRCSUFF)
756 cl @<<
757 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
758 <<
759
760 $(COMMDIR)/date.obj: $*.$(SRCSUFF)
761 cl @<<
762 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
763 <<
764
765 $(COMMDIR)/wxexpr.obj: $*.$(SRCSUFF)
766 echo $(CPPFLAGS)
767 cl @<<
768 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
769 <<
770
771 $(COMMDIR)/hash.obj: $*.$(SRCSUFF)
772 cl @<<
773 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
774 <<
775
776 $(COMMDIR)/list.obj: $*.$(SRCSUFF)
777 cl @<<
778 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
779 <<
780
781 $(COMMDIR)/string.obj: $*.$(SRCSUFF)
782 cl @<<
783 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
784 <<
785
786 $(COMMDIR)/matrix.obj: $*.$(SRCSUFF)
787 cl @<<
788 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
789 <<
790
791 #$(COMMDIR)/wxstrgnu/wxstrgnu.obj: $*.$(SRCSUFF)
792 # cl @<<
793 #$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF) /Fo$@
794 #<<
795
796 #$(COMMDIR)/wxstrgnu/wxregex.obj: $*.$(SRCSUFF)
797 # cl @<<
798 #$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF) /Fo$@
799 #<<
800
801 $(COMMDIR)/time.obj: $*.$(SRCSUFF)
802 cl @<<
803 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
804 <<
805
806 $(COMMDIR)\stream.obj: $*.$(SRCSUFF)
807 cl @<<
808 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
809 <<
810
811 $(COMMDIR)\fstream.obj: $*.$(SRCSUFF)
812 cl @<<
813 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
814 <<
815
816 $(COMMDIR)\mstream.obj: $*.$(SRCSUFF)
817 cl @<<
818 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
819 <<
820
821 $(COMMDIR)\zstream.obj: $*.$(SRCSUFF)
822 cl @<<
823 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
824 <<
825
826 $(COMMDIR)\datstrm.obj: $*.$(SRCSUFF)
827 cl @<<
828 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
829 <<
830
831 $(COMMDIR)/extended.obj: $*.c
832 cl @<<
833 $(CPPFLAGS2) /c /Tp $*.c /Fo$@
834 <<
835
836 $(COMMDIR)/process.obj: $*.$(SRCSUFF)
837 cl @<<
838 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF) /Fo$@
839 <<
840
841 $(COMMDIR)/wincmn.obj: $*.$(SRCSUFF)
842 cl @<<
843 $(CPPFLAGS2) /c /Tp $*.$(SRCSUFF) /Fo$@
844 <<
845
846 $(COMMDIR)/y_tab.obj: $*.c $(COMMDIR)/lex_yy.c
847 cl @<<
848 $(CPPFLAGS2) /c $*.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@
849 <<
850
851 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
852 copy $(COMMDIR)\dosyacc.c $(COMMDIR)\y_tab.c
853
854 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
855 copy $(COMMDIR)\doslex.c $(COMMDIR)\lex_yy.c
856
857 ########################################################
858 # Generic objects (not always compiled, depending on
859 # whether platforms have native implementations)
860
861 $(GENDIR)/choicdgg.obj: $*.$(SRCSUFF)
862 cl @<<
863 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
864 <<
865
866 $(GENDIR)/colrdlgg.obj: $*.$(SRCSUFF)
867 cl @<<
868 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
869 <<
870
871 $(GENDIR)/fontdlgg.obj: $*.$(SRCSUFF)
872 cl @<<
873 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
874 <<
875
876 $(GENDIR)/gridg.obj: $*.$(SRCSUFF)
877 cl @<<
878 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
879 <<
880
881 $(GENDIR)/helpxlp.obj: $*.$(SRCSUFF)
882 cl @<<
883 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
884 <<
885
886 $(GENDIR)/msgdlgg.obj: $*.$(SRCSUFF)
887 cl @<<
888 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
889 <<
890
891 $(GENDIR)/panelg.obj: $*.$(SRCSUFF)
892 cl @<<
893 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
894 <<
895
896 $(GENDIR)/printps.obj: $*.$(SRCSUFF)
897 cl @<<
898 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
899 <<
900
901 $(GENDIR)/prntdlgg.obj: $*.$(SRCSUFF)
902 cl @<<
903 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
904 <<
905
906 $(GENDIR)/scrolwin.obj: $*.$(SRCSUFF)
907 cl @<<
908 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
909 <<
910
911 $(GENDIR)/splitter.obj: $*.$(SRCSUFF)
912 cl @<<
913 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
914 <<
915
916 $(GENDIR)/statusbr.obj: $*.$(SRCSUFF)
917 cl @<<
918 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
919 <<
920
921 $(GENDIR)/tabg.obj: $*.$(SRCSUFF)
922 cl @<<
923 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
924 <<
925
926 $(GENDIR)/textdlgg.obj: $*.$(SRCSUFF)
927 cl @<<
928 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
929 <<
930
931 $(OBJECTS): $(WXDIR)/include/wx/stubs/setup.h
932
933 clean: $(PERIPH_CLEAN_TARGET)
934 -erase *.obj
935 -erase $(LIBTARGET)
936 -erase $(WXDIR)\lib\*.pdb
937 -erase *.pdb
938 -erase *.sbr
939 -erase *.pch
940 cd $(WXDIR)\src\stubs
941 cd $(GENDIR)
942 -erase *.pdb
943 -erase *.sbr
944 -erase *.obj
945 cd $(WXDIR)\src\stubs
946 cd $(COMMDIR)
947 -erase *.pdb
948 -erase *.sbr
949 -erase *.obj
950 -erase y_tab.c
951 -erase lex_yy.c
952 cd $(WXDIR)\src\stubs
953
954 cleanall: clean
955