]>
Commit | Line | Data |
---|---|---|
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)\utils\dialoged\src | |
19 | WXLIB = $(WXDIR)\lib\wx.lib | |
20 | ||
21 | DOCDIR = $(WXDIR)\utils\dialoged\docs | |
22 | ||
23 | PROPDIR = $(WXDIR)\utils\wxprop | |
24 | PROPINC = $(PROPDIR)\src | |
25 | PROPLIB = $(PROPDIR)\lib\wxprop.lib | |
26 | ||
27 | TREEDIR = $(WXDIR)\utils\wxtree | |
28 | TREEINC = $(TREEDIR)\src | |
29 | TREELIB = $(TREEDIR)\lib\wxtree.lib | |
30 | ||
31 | DIBDIR = $(WXDIR)\utils\dib | |
32 | DIBLIB = $(DIBDIR)\dib.lib | |
33 | DIBINC = $(DIBDIR) | |
34 | ||
35 | RCDIR = $(WXDIR)\utils\rcparser | |
36 | RCLIB = $(RCDIR)\lib\rcparser.lib | |
37 | RCINC = $(RCDIR)\src | |
38 | ||
39 | LIBS=$(WXLIB) $(PROPLIB) oldnames libw llibcew commdlg shell ddeml | |
40 | INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw /I$(PROPINC) | |
41 | ||
42 | !ifndef FINAL | |
43 | FINAL=0 | |
44 | !endif | |
45 | ||
46 | # Default is to output RTF for WinHelp | |
47 | !ifndef RTFSTYLE | |
48 | RTFSTYLE=-winhelp | |
49 | !endif | |
50 | ||
51 | # Set this to nothing if using MS C++ 7 | |
52 | ZOPTION=/Z7 | |
53 | ||
54 | !if "$(FINAL)" == "0" | |
55 | CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od /DDEBUG=$(DEBUG) /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch | |
56 | LINKFLAGS=/NOD /CO /SEG:512 /ONERROR:NOEXE | |
57 | !else | |
58 | CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H $(INC) /DDEBUG=$(DEBUG) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch | |
59 | LINKFLAGS=/NOD /SEG:512 /ONERROR:NOEXE | |
60 | !endif | |
61 | ||
62 | OBJECTS = dialoged.obj wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj | |
63 | ||
64 | all: prop dialoged.exe | |
65 | ||
66 | wx: | |
67 | cd $(WXDIR)\src\msw | |
68 | nmake -f makefile.dos | |
69 | cd $(THISDIR) | |
70 | ||
71 | wxclean: | |
72 | cd $(WXDIR)\src\msw | |
73 | nmake -f makefile.dos clean | |
74 | cd $(THISDIR) | |
75 | ||
76 | ||
77 | dialoged.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) $(PROPLIB) dialoged.def dialoged.res | |
78 | link $(LINKFLAGS) @<< | |
79 | $(WXDIR)\src\msw\dummy.obj $(OBJECTS), | |
80 | dialoged, | |
81 | NUL, | |
82 | $(LIBS), | |
83 | dialoged.def | |
84 | ; | |
85 | << | |
86 | rc -30 -K dialoged.res | |
87 | ||
88 | dialoged.obj: dialoged.h $(PROPINC)\wx_prop.h wx_resed.h wx_rprop.h dialoged.$(SRCSUFF) | |
89 | cl @<< | |
90 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
91 | << | |
92 | ||
93 | wx_resed.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_resed.$(SRCSUFF) | |
94 | cl @<< | |
95 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
96 | << | |
97 | ||
98 | wx_rdlg.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_rdlg.$(SRCSUFF) | |
99 | cl @<< | |
100 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
101 | << | |
102 | ||
103 | wx_reswr.obj: wx_resed.h wx_reswr.$(SRCSUFF) | |
104 | cl @<< | |
105 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
106 | << | |
107 | ||
108 | wx_rprop.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_rprop.$(SRCSUFF) | |
109 | cl @<< | |
110 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
111 | << | |
112 | ||
113 | wx_repal.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_repal.h wx_repal.$(SRCSUFF) | |
114 | cl @<< | |
115 | $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) | |
116 | << | |
117 | ||
118 | dialoged.res : dialoged.rc $(WXDIR)\include\msw\wx.rc | |
119 | rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw dialoged | |
120 | ||
121 | wxtree: | |
122 | cd $(TREEDIR)\src | |
123 | nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)" | |
124 | cd $(THISDIR) | |
125 | ||
126 | dib: | |
127 | cd $(DIBDIR) | |
128 | nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)" | |
129 | cd $(THISDIR) | |
130 | ||
131 | prop: | |
132 | cd $(PROPDIR)\src | |
133 | nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)" | |
134 | cd $(THISDIR) | |
135 | ||
136 | # Making documents | |
137 | docs: hlp | |
138 | hlp: $(DOCDIR)/dialoged.hlp | |
139 | hlp32: $(DOCDIR)/hlp32/dialoged.hlp | |
140 | rtf: $(DOCDIR)/dialoged.rtf | |
141 | ||
142 | $(DOCDIR)/dialoged.hlp: $(DOCDIR)/dialoged.rtf $(DOCDIR)/dialoged.hpj | |
143 | cd $(DOCDIR) | |
144 | -erase dialoged.ph | |
145 | hc dialoged | |
146 | cd $(THISDIR) | |
147 | ||
148 | $(DOCDIR)/hlp32/dialoged.hlp: $(DOCDIR)/hlp32/dialoged.rtf $(DOCDIR)/hlp32/dialoged.hpj | |
149 | cd $(DOCDIR)/hlp32 | |
150 | -erase dialoged.ph | |
151 | -wx /W hcw /c /e clockwrk.hpj | |
152 | cd $(THISDIR) | |
153 | ||
154 | $(DOCDIR)/dialoged.rtf: $(DOCDIR)/body.tex $(DOCDIR)/classes.tex $(DOCDIR)/tech.tex $(DOCDIR)/dialoged.tex | |
155 | cd $(DOCDIR) | |
156 | -wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/dialoged.rtf -twice $(RTFSTYLE) | |
157 | cd $(THISDIR) | |
158 | ||
159 | $(DOCDIR)/hlp32/dialoged.rtf: $(DOCDIR)/body.tex $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/dialoged.tex | |
160 | cd $(DOCDIR) | |
161 | -wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/hlp32/dialoged.rtf -twice $(RTFSTYLE) -macros $(DOCDIR)/t2rtf32.ini | |
162 | cd $(THISDIR) | |
163 | ||
164 | wordrtf: | |
165 | cd $(DOCDIR) | |
166 | -wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/dialoged.rtf -twice -rtf | |
167 | cd $(THISDIR) | |
168 | ||
169 | cleanprop: | |
170 | cd $(PROPDIR)\src | |
171 | nmake -f makefile.dos clean | |
172 | cd $(THISDIR) | |
173 | ||
174 | rcparser: | |
175 | cd $(RCDIR)\src | |
176 | nmake -f makefile.dos FINAL=$(FINAL) OPT=$(OPT) | |
177 | cd $(THISDIR) | |
178 | ||
179 | cleanrtf: | |
180 | cd $(DOCDIR) | |
181 | -erase *.rtf | |
182 | cd $(THISDIR) | |
183 | ||
184 | cleanutils: cleanprop | |
185 | -erase *.obj | |
186 | -erase *.sbr | |
187 | -erase *.exe | |
188 | -erase *.res | |
189 | -erase *.map | |
190 | -erase *.pdb | |
191 | ||
192 | clean: | |
193 | -erase *.obj *.exe *.res *.map *.rws |