]> git.saurik.com Git - wxWidgets.git/blob - samples/layout/makefile.dos
Fixed Fontdialog
[wxWidgets.git] / samples / layout / 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 layout example (DOS).
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 THISDIR = $(WXDIR)\samples\layout
20 WXLIB = $(WXDIR)\lib\wx.lib
21 LIBS=$(WXLIB) oldnames libw llibcew commdlg ddeml shell mmsystem
22 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
23 DUMMY=$(WXDIR)\src\msw\dummy.obj
24
25 # Set this to nothing if using MS C++ 7
26 ZOPTION=/Z7
27
28 !ifndef FINAL
29 FINAL=0
30 !endif
31
32 !if "$(FINAL)" == "0"
33 CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
34 LINKFLAGS=/NOD /CO /ONERROR:NOEXE /SEG:512
35 !else
36 CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
37 LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:512
38 !endif
39
40 HEADERS = layout.h
41 SOURCES = layout.$(SRCSUFF)
42 OBJECTS = layout.obj
43
44 layout: layout.exe
45
46 all: wx layout.exe
47
48 wx:
49 cd $(WXDIR)\src\msw
50 nmake -f makefile.dos FINAL=$(FINAL)
51 cd $(THISDIR)
52
53 wxclean:
54 cd $(WXDIR)\src\msw
55 nmake -f makefile.dos clean
56 cd $(THISDIR)
57
58
59 layout.exe: $(DUMMY) $(WXLIB) layout.obj layout.def layout.res
60 link $(LINKFLAGS) @<<
61 $(DUMMY) layout.obj,
62 layout,
63 NUL,
64 $(LIBS),
65 layout.def
66 ;
67 <<
68 rc -31 -K layout.res
69
70 layout.obj: layout.h layout.$(SRCSUFF) $(DUMMY)
71 cl @<<
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73 <<
74
75 layout.res : layout.rc $(WXDIR)\include\msw\wx.rc
76 rc -r /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa layout
77
78 clean:
79 -erase *.obj
80 -erase *.exe
81 -erase *.res
82 -erase *.map
83 -erase *.sbr
84 -erase *.pdb
85