]>
Commit | Line | Data |
---|---|---|
99025f6e JS |
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 | # | |
6b0eb19f | 10 | # Makefile : Builds grid test example (DOS). |
99025f6e JS |
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 | ||
6b0eb19f | 18 | THISDIR = $(WXDIR)\samples\test |
99025f6e JS |
19 | |
20 | !ifndef FINAL | |
21 | FINAL=0 | |
22 | !endif | |
23 | ||
99025f6e | 24 | HEADERS = |
6b0eb19f JS |
25 | SOURCES = test.$(SRCSUFF) |
26 | OBJECTS = test.obj | |
99025f6e | 27 | |
6b0eb19f | 28 | all: test.exe |
99025f6e JS |
29 | |
30 | wx: | |
31 | cd $(WXDIR)\src\msw | |
32 | nmake -f makefile.dos FINAL=$(FINAL) | |
33 | cd $(THISDIR) | |
34 | ||
35 | wxclean: | |
36 | cd $(WXDIR)\src\msw | |
37 | nmake -f makefile.dos clean | |
38 | cd $(THISDIR) | |
39 | ||
40 | ||
6b0eb19f | 41 | test.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) test.obj test.def test.res |
99025f6e | 42 | link $(LINKFLAGS) @<< |
6b0eb19f JS |
43 | test.obj $(WXDIR)\src\msw\dummy.obj, |
44 | test, | |
99025f6e JS |
45 | NUL, |
46 | $(LIBS), | |
6b0eb19f | 47 | test.def |
99025f6e JS |
48 | ; |
49 | << | |
6b0eb19f | 50 | rc -30 -K test.res |
99025f6e | 51 | |
6b0eb19f | 52 | test.obj: test.$(SRCSUFF) |
99025f6e JS |
53 | cl @<< |
54 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
55 | << | |
56 | ||
6b0eb19f JS |
57 | test.res : test.rc $(WXDIR)\include\wx\msw\wx.rc |
58 | rc -r /dFAFA_LIB /i$(WXDIR)\include test | |
99025f6e JS |
59 | |
60 | clean: | |
61 | -erase *.obj | |
62 | -erase *.exe | |
63 | -erase *.res | |
64 | -erase *.map | |
65 | -erase *.sbr | |
66 | -erase *.pdb |