]> git.saurik.com Git - wxWidgets.git/blob - samples/toolbar/makefile.dos
added wxUpdateUI generation
[wxWidgets.git] / samples / toolbar / makefile.dos
1 #
2 # File: makefile.dos
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 # Copyright: (c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds wxToolbar sample
11 # Use FINAL=1 argument to nmake to build final version with no debugging
12 # info
13
14 # Set WXDIR for your system
15 WXDIR = $(WXWIN)
16
17 !include $(WXDIR)\src\makemsc.env
18
19 BBARDIR = $(WXDIR)\samples\toolbar
20
21 INC = /I$(WXDIR)\include\base /I$(WXDIR)\include\msw
22
23 THISDIR = $(BBARDIR)
24
25 !ifndef FINAL
26 FINAL=0
27 !endif
28
29 # Default is to output RTF for WinHelp
30 !ifndef WINHELP
31 WINHELP=-winhelp
32 !endif
33
34 # Set this to nothing if using MS C++ 7
35 ZOPTION=/Z7
36
37 !if "$(FINAL)" == "0"
38 CPPFLAGS=/AL /Gt8 /W3 /Zi $(ZOPTION) /G2sw /Od /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
39 CFLAGS=/AL /Gt8 /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) /Dwx_msw
40 LINKFLAGS=/NOD /CO /SEG:512 /ONERROR:NOEXE
41 !else
42 CPPFLAGS=/AL /Gt8 /W3 /G2sw /Os /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
43 CFLAGS=/AL /Gt8 /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) /Dwx_msw
44 LINKFLAGS=/NOD /SEG:512 /ONERROR:NOEXE
45 !endif
46
47 OBJECTS = test.obj
48
49 all: test.exe
50
51 wx:
52 cd $(WXDIR)\src\msw
53 nmake -f makefile.dos FINAL=$(FINAL)
54 cd $(THISDIR)
55
56 wxclean:
57 cd $(WXDIR)\src\msw
58 nmake -f makefile.dos clean
59 cd $(THISDIR)
60
61 test.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) test.obj test.def test.res
62 link $(LINKFLAGS) @<<
63 $(WXDIR)\src\msw\dummy.obj test.obj,
64 test,
65 NUL,
66 $(LIBS),
67 test.def
68 ;
69 <<
70 rc -30 -K test.res
71
72 test.obj: test.h test.$(SRCSUFF)
73 cl @<<
74 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75 <<
76
77 test.res : test.rc $(WXDIR)\include\msw\wx.rc
78 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw test
79
80 clean:
81 -erase *.obj
82 -erase *.exe
83 -erase *.res
84 -erase *.map
85 -erase *.sbr
86 -erase *.pdb
87