]>
Commit | Line | Data |
---|---|---|
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 minimal example (DOS). | |
11 | # Use FINAL=1 argument to nmake to build final version with no debugging | |
12 | # info | |
13 | ||
14 | WXDIR = $(WXWIN) | |
15 | ||
16 | !include $(WXDIR)\src\makemsc.env | |
17 | ||
18 | THISDIR = $(WXDIR)\samples\minimal | |
19 | WXLIB = $(WXDIR)\lib\wx.lib | |
20 | LIBS=$(WXLIB) oldnames libw llibcew commdlg shell ddeml | |
21 | ||
22 | !ifndef FINAL | |
23 | FINAL=0 | |
24 | !endif | |
25 | ||
26 | INC=/I$(WXDIR)\include\msw /I$(WXDIR)\include\base | |
27 | ||
28 | # Set this to nothing if using MS C++ 7 | |
29 | ZOPTION=/Z7 | |
30 | ||
31 | !if "$(FINAL)" == "0" | |
32 | CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC) | |
33 | LINKFLAGS=/NOD /CO /ONERROR:NOEXE /SEG:512 | |
34 | !else | |
35 | CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC) | |
36 | LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:512 | |
37 | !endif | |
38 | ||
39 | HEADERS = | |
40 | SOURCES = minimal.$(SRCSUFF) | |
41 | OBJECTS = minimal.obj | |
42 | ||
43 | all: minimal.exe | |
44 | ||
45 | wx: | |
46 | cd $(WXDIR)\src\msw | |
47 | nmake -f makefile.dos FINAL=$(FINAL) | |
48 | cd $(THISDIR) | |
49 | ||
50 | wxclean: | |
51 | cd $(WXDIR)\src\msw | |
52 | nmake -f makefile.dos clean | |
53 | cd $(THISDIR) | |
54 | ||
55 | ||
56 | minimal.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) minimal.obj minimal.def minimal.res | |
57 | link $(LINKFLAGS) @<< | |
58 | minimal.obj $(WXDIR)\src\msw\dummy.obj, | |
59 | minimal, | |
60 | NUL, | |
61 | $(LIBS), | |
62 | minimal.def | |
63 | ; | |
64 | << | |
65 | rc -30 -K minimal.res | |
66 | ||
67 | minimal.obj: minimal.$(SRCSUFF) | |
68 | cl @<< | |
69 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
70 | << | |
71 | ||
72 | minimal.res : minimal.rc $(WXDIR)\include\msw\wx.rc | |
73 | rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw minimal | |
74 | ||
75 | clean: | |
76 | -erase *.obj | |
77 | -erase *.exe | |
78 | -erase *.res | |
79 | -erase *.map | |
80 | -erase *.sbr | |
81 | -erase *.pdb |