]>
Commit | Line | Data |
---|---|---|
457814b5 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 wxPropertySheet library and 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)\utils\wxprop\src | |
19 | WXLIB = $(WXDIR)\lib\wx.lib | |
20 | ||
21 | PROPLIB = $(WXDIR)\utils\wxprop\lib\wxprop.lib | |
22 | DOCDIR = $(WXDIR)\utils\wxprop\docs | |
23 | ||
24 | LIBS=$(WXLIB) $(PROPLIB) oldnames libw llibcew commdlg shell ddeml | |
25 | INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw | |
26 | ||
27 | # Default is to output RTF for WinHelp | |
28 | !ifndef RTFSTYLE | |
29 | RTFSTYLE=-winhelp | |
30 | !endif | |
31 | ||
32 | OBJECTS = prop.obj proplist.obj propform.obj | |
33 | TESTOBJECTS = test.obj | |
34 | ||
35 | all: $(PROPLIB) | |
36 | ||
37 | test: test.exe | |
38 | ||
39 | wx: | |
40 | cd $(WXDIR)\src\msw | |
41 | nmake -f makefile.dos | |
42 | cd $(THISDIR) | |
43 | ||
44 | wxclean: | |
45 | cd $(WXDIR)\src\msw | |
46 | nmake -f makefile.dos clean | |
47 | cd $(THISDIR) | |
48 | ||
49 | $(PROPLIB): $(OBJECTS) | |
50 | -erase $(PROPLIB) | |
51 | lib /PAGESIZE:128 @<< | |
52 | $(PROPLIB) | |
53 | y | |
54 | $(OBJECTS) | |
55 | nul | |
56 | ; | |
57 | << | |
58 | ||
59 | test.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(PROPLIB) $(TESTOBJECTS) test.def test.res | |
60 | link $(LINKFLAGS) @<< | |
61 | $(WXDIR)\src\msw\dummy.obj $(TESTOBJECTS), | |
62 | test, | |
63 | NUL, | |
64 | $(LIBS), | |
65 | test.def | |
66 | ; | |
67 | << | |
68 | rc -30 -K test.res | |
69 | ||
70 | test.obj: test.h wx_prop.h test.$(SRCSUFF) | |
71 | cl @<< | |
72 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
73 | << | |
74 | ||
75 | prop.obj: prop.h prop.$(SRCSUFF) | |
76 | cl @<< | |
77 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
78 | << | |
79 | ||
80 | proplist.obj: prop.h proplist.h proplist.$(SRCSUFF) | |
81 | cl @<< | |
82 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
83 | << | |
84 | ||
85 | propform.obj: prop.h propform.h propform.$(SRCSUFF) | |
86 | cl @<< | |
87 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
88 | << | |
89 | ||
90 | test.res : test.rc $(WXDIR)\include\wx\msw\wx.rc | |
91 | rc -r /i$(WXDIR)\include\wx test | |
92 | ||
93 | # Making documents | |
94 | docs: hlp | |
95 | hlp: $(DOCDIR)/prop.hlp | |
96 | hlp32: $(DOCDIR)/hlp32/prop.hlp | |
97 | rtf: $(DOCDIR)/prop.rtf | |
98 | ||
99 | $(DOCDIR)/prop.hlp: $(DOCDIR)/prop.rtf $(DOCDIR)/prop.hpj | |
100 | cd $(DOCDIR) | |
101 | -erase prop.ph | |
102 | hc prop | |
103 | cd $(THISDIR) | |
104 | ||
105 | $(DOCDIR)/hlp32/prop.hlp: $(DOCDIR)/hlp32/prop.rtf $(DOCDIR)/hlp32/prop.hpj | |
106 | cd $(DOCDIR)/hlp32 | |
107 | -erase prop.ph | |
108 | start /w hcw /c /e clockwrk.hpj | |
109 | cd $(THISDIR) | |
110 | ||
111 | $(DOCDIR)/prop.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/prop.tex | |
112 | cd $(DOCDIR) | |
113 | -wx /W tex2rtf $(DOCDIR)/prop.tex $(DOCDIR)/prop.rtf -twice $(RTFSTYLE) | |
114 | cd $(THISDIR) | |
115 | ||
116 | $(DOCDIR)/hlp32/prop.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/prop.tex | |
117 | cd $(DOCDIR) | |
118 | -wx /W tex2rtf $(DOCDIR)/prop.tex $(DOCDIR)/hlp32/prop.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini | |
119 | cd $(THISDIR) | |
120 | ||
121 | wordrtf: | |
122 | cd $(DOCDIR) | |
123 | -wx /W tex2rtf $(DOCDIR)/prop.tex $(DOCDIR)/prop.rtf -twice -rtf | |
124 | cd $(THISDIR) | |
125 | ||
126 | cleanrtf: | |
127 | cd $(DOCDIR) | |
128 | -erase *.rtf | |
129 | cd $(THISDIR) | |
130 | ||
131 | clean: | |
132 | -erase *.obj | |
133 | -erase *.sbr | |
134 | -erase *.exe | |
135 | -erase *.res | |
136 | -erase *.map | |
137 | -erase *.pdb | |
138 | -erase $(PROPLIB) |