]>
Commit | Line | Data |
---|---|---|
2108f33a JS |
1 | # |
2 | # File: makefile.dos | |
3 | # Author: Julian Smart | |
4 | # Created: 1995 | |
5 | # Updated: | |
6 | # Copyright: (c) 1995, AIAI, University of Edinburgh | |
7 | # | |
8 | # "%W% %G%" | |
9 | # | |
10 | # Makefile : Builds docview 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\docvwmdi | |
19 | INC=/I$(WXDIR)\include | |
20 | ||
21 | HEADERS = docview.h | |
22 | SOURCES = docview.$(SRCSUFF) | |
23 | OBJECTS = docview.obj doc.obj view.obj | |
24 | ||
25 | all: docview.exe | |
26 | ||
27 | wx: | |
28 | cd $(WXDIR)\src\msw | |
29 | nmake -f makefile.dos | |
30 | cd $(THISDIR) | |
31 | ||
32 | wxclean: | |
33 | cd $(WXDIR)\src\msw | |
34 | nmake -f makefile.dos clean | |
35 | cd $(THISDIR) | |
36 | ||
37 | ||
38 | docview.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) docview.def docview.res | |
39 | link $(LINKFLAGS) @<< | |
40 | $(WXDIR)\src\msw\dummy.obj $(OBJECTS), | |
41 | docview, | |
42 | NUL, | |
43 | $(LIBS), | |
44 | docview.def | |
45 | ; | |
46 | << | |
47 | rc -30 -K docview.res | |
48 | ||
49 | docview.obj: docview.h docview.$(SRCSUFF) | |
50 | cl @<< | |
51 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
52 | << | |
53 | ||
54 | view.obj: view.h view.$(SRCSUFF) | |
55 | cl @<< | |
56 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
57 | << | |
58 | ||
59 | doc.obj: doc.h doc.$(SRCSUFF) | |
60 | cl @<< | |
61 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
62 | << | |
63 | ||
64 | docview.res : docview.rc $(WXDIR)\include\wx\msw\wx.rc | |
65 | rc -r /dFAFA_LIB /i$(WXDIR)\include docview | |
66 | ||
67 | clean: | |
68 | -erase *.obj | |
69 | -erase *.exe | |
70 | -erase *.res | |
71 | -erase *.map | |
72 | -erase *.sbr | |
73 | -erase *.pdb | |
74 |