]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "@(#)makefile.unx 1.2 5/9/94" | |
9 | # | |
10 | # Makefile for libwx.a | |
11 | ||
12 | # Replace this with your own path if necessary | |
13 | WXDIR = ../.. | |
14 | ||
15 | # All common UNIX compiler flags and options are now in | |
16 | # this central makefile. | |
17 | include $(WXDIR)/src/makeg95.env | |
18 | ||
19 | # IMPORTANT: if you want to link in subsidiary libraries, | |
20 | # required for some optional parts of wxWindows, you must | |
21 | # set EXTRATARGETS and EXTRAOBJS to match the settings in wx_setup.h. | |
22 | # Having done this, you won't have to worry about linking them | |
23 | # into each application. | |
24 | # | |
25 | # Here's the full list. | |
26 | # prologio: Required if using the wxWindows resource facility | |
27 | # USE_WX_RESOURCES should be 1 | |
28 | # xmgauge: Gauge class (required for Motif only) | |
29 | # USE_GAUGE should be 1 | |
30 | # xpm: XPM pixmap support | |
31 | # USE_XPM_IN_X should be 1 | |
32 | # image: GIF, BMP image reading | |
33 | # USE_IMAGE_LOADING_IN_X should be 1 | |
34 | # wxstring: string class | |
35 | # USE_GNU_WXSTRING should be 1 | |
36 | # | |
37 | # Unfortunately, 'ar' doesn't like combining objects and libraries, | |
38 | # so we must identify all the objects from the subordinate libraries. Yuck! | |
39 | XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX) | |
40 | XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\ | |
41 | $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\ | |
42 | $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\ | |
43 | $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\ | |
44 | $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF) | |
45 | ||
46 | # Subordinate library possibilities | |
47 | ||
48 | EXTRAOBJS= | |
49 | ||
50 | GENDIR=../generic | |
51 | COMMDIR=../common | |
52 | OLEDIR=ole | |
53 | MSWDIR=. | |
54 | ||
55 | GENERICOBJDIR=../generic/$(OBJDIR) | |
56 | COMMOBJDIR=../common/$(OBJDIR) | |
57 | OLEOBJDIR=ole/$(OBJDIR) | |
58 | MSWDIR=$(OBJDIR) | |
59 | ||
60 | DOCDIR = $(WXDIR)\docs | |
61 | ||
62 | GENERICOBJS= \ | |
63 | $(GENDIR)/choicdgg.$(OBJSUFF) \ | |
64 | $(GENDIR)/colrdlgg.$(OBJSUFF) \ | |
65 | $(GENDIR)/fontdlgg.$(OBJSUFF) \ | |
66 | $(GENDIR)/gridg.$(OBJSUFF) \ | |
67 | $(GENDIR)/helpxlp.$(OBJSUFF) \ | |
68 | $(GENDIR)/msgdlgg.$(OBJSUFF) \ | |
69 | $(GENDIR)/panelg.$(OBJSUFF) \ | |
70 | $(GENDIR)/printps.$(OBJSUFF) \ | |
71 | $(GENDIR)/prntdlgg.$(OBJSUFF) \ | |
72 | $(GENDIR)/scrolwin.$(OBJSUFF) \ | |
73 | $(GENDIR)/splitter.$(OBJSUFF) \ | |
74 | $(GENDIR)/statusbr.$(OBJSUFF) \ | |
75 | $(GENDIR)/tabg.$(OBJSUFF) \ | |
76 | $(GENDIR)/textdlgg.$(OBJSUFF) | |
77 | ||
78 | COMMONOBJS = \ | |
79 | $(COMMDIR)/config.$(OBJSUFF) \ | |
80 | $(COMMDIR)/cmndata.$(OBJSUFF) \ | |
81 | $(COMMDIR)/docview.$(OBJSUFF) \ | |
82 | $(COMMDIR)/dynarray.$(OBJSUFF) \ | |
83 | $(COMMDIR)/event.$(OBJSUFF) \ | |
84 | $(COMMDIR)/file.$(OBJSUFF) \ | |
85 | $(COMMDIR)/fileconf.$(OBJSUFF) \ | |
86 | $(COMMDIR)/filefn.$(OBJSUFF) \ | |
87 | $(COMMDIR)/gdicmn.$(OBJSUFF) \ | |
88 | $(COMMDIR)/helpbase.$(OBJSUFF) \ | |
89 | $(COMMDIR)/intl.$(OBJSUFF) \ | |
90 | $(COMMDIR)/layout.$(OBJSUFF) \ | |
91 | $(COMMDIR)/log.$(OBJSUFF) \ | |
92 | $(COMMDIR)/memory.$(OBJSUFF) \ | |
93 | $(COMMDIR)/module.$(OBJSUFF) \ | |
94 | $(COMMDIR)/object.$(OBJSUFF) \ | |
95 | $(COMMDIR)/odbc.$(OBJSUFF) \ | |
96 | $(COMMDIR)/postscrp.$(OBJSUFF) \ | |
6a6c0a8b | 97 | $(COMMDIR)/process.$(OBJSUFF) \ |
2bda0e17 KB |
98 | $(COMMDIR)/prntbase.$(OBJSUFF) \ |
99 | $(COMMDIR)/resource.$(OBJSUFF) \ | |
100 | $(COMMDIR)/tbarbase.$(OBJSUFF) \ | |
101 | $(COMMDIR)/tbarsmpl.$(OBJSUFF) \ | |
102 | $(COMMDIR)/textfile.$(OBJSUFF) \ | |
103 | $(COMMDIR)/timercmn.$(OBJSUFF) \ | |
104 | $(COMMDIR)/utilscmn.$(OBJSUFF) \ | |
105 | $(COMMDIR)/validate.$(OBJSUFF) \ | |
106 | $(COMMDIR)/valtext.$(OBJSUFF) \ | |
107 | $(COMMDIR)/date.$(OBJSUFF) \ | |
108 | $(COMMDIR)/wxexpr.$(OBJSUFF) \ | |
109 | $(COMMDIR)/hash.$(OBJSUFF) \ | |
110 | $(COMMDIR)/list.$(OBJSUFF) \ | |
111 | $(COMMDIR)/string.$(OBJSUFF) \ | |
112 | $(COMMDIR)/time.$(OBJSUFF) \ | |
cf447356 | 113 | $(COMMDIR)/y_tab.$(OBJSUFF) \ |
3d4c6a21 GL |
114 | $(COMMDIR)/stream.$(OBJSUFF) \ |
115 | $(COMMDIR)/fstream.$(OBJSUFF) \ | |
116 | $(COMMDIR)/mstream.$(OBJSUFF) \ | |
cf447356 GL |
117 | $(COMMDIR)/datstrm.$(OBJSUFF) \ |
118 | $(COMMDIR)/extended.$(OBJSUFF) | |
2bda0e17 | 119 | |
2bda0e17 KB |
120 | MSWOBJS = \ |
121 | app.$(OBJSUFF) \ | |
122 | bitmap.$(OBJSUFF) \ | |
123 | bmpbuttn.$(OBJSUFF) \ | |
124 | brush.$(OBJSUFF) \ | |
125 | button.$(OBJSUFF) \ | |
126 | checkbox.$(OBJSUFF) \ | |
127 | checklst.$(OBJSUFF) \ | |
128 | choice.$(OBJSUFF) \ | |
129 | clipbrd.$(OBJSUFF) \ | |
130 | colordlg.$(OBJSUFF) \ | |
131 | colour.$(OBJSUFF) \ | |
132 | combobox.$(OBJSUFF) \ | |
133 | control.$(OBJSUFF) \ | |
134 | curico.$(OBJSUFF) \ | |
135 | cursor.$(OBJSUFF) \ | |
136 | data.$(OBJSUFF) \ | |
137 | dc.$(OBJSUFF) \ | |
138 | dcmemory.$(OBJSUFF) \ | |
139 | dcclient.$(OBJSUFF) \ | |
140 | dcprint.$(OBJSUFF) \ | |
141 | dcscreen.$(OBJSUFF) \ | |
142 | dde.$(OBJSUFF) \ | |
143 | dialog.$(OBJSUFF) \ | |
144 | dib.$(OBJSUFF) \ | |
145 | dirdlg.$(OBJSUFF) \ | |
146 | filedlg.$(OBJSUFF) \ | |
147 | font.$(OBJSUFF) \ | |
148 | fontdlg.$(OBJSUFF) \ | |
149 | frame.$(OBJSUFF) \ | |
da87a1ca JS |
150 | gaugemsw.$(OBJSUFF) \ |
151 | gauge95.$(OBJSUFF) \ | |
2bda0e17 KB |
152 | gdiobj.$(OBJSUFF) \ |
153 | helpwin.$(OBJSUFF) \ | |
154 | icon.$(OBJSUFF) \ | |
155 | imaglist.$(OBJSUFF) \ | |
156 | joystick.$(OBJSUFF) \ | |
157 | listbox.$(OBJSUFF) \ | |
158 | listctrl.$(OBJSUFF) \ | |
159 | main.$(OBJSUFF) \ | |
160 | mdi.$(OBJSUFF) \ | |
161 | menu.$(OBJSUFF) \ | |
162 | menuitem.$(OBJSUFF) \ | |
163 | metafile.$(OBJSUFF) \ | |
164 | minifram.$(OBJSUFF) \ | |
165 | msgdlg.$(OBJSUFF) \ | |
166 | nativdlg.$(OBJSUFF) \ | |
8b9518ee | 167 | notebook.$(OBJSUFF) \ |
2bda0e17 KB |
168 | ownerdrw.$(OBJSUFF) \ |
169 | palette.$(OBJSUFF) \ | |
170 | pen.$(OBJSUFF) \ | |
171 | penwin.$(OBJSUFF) \ | |
172 | printdlg.$(OBJSUFF) \ | |
173 | printwin.$(OBJSUFF) \ | |
174 | radiobox.$(OBJSUFF) \ | |
175 | radiobut.$(OBJSUFF) \ | |
176 | region.$(OBJSUFF) \ | |
177 | registry.$(OBJSUFF) \ | |
178 | scrolbar.$(OBJSUFF) \ | |
179 | settings.$(OBJSUFF) \ | |
da87a1ca JS |
180 | slidrmsw.$(OBJSUFF) \ |
181 | slider95.$(OBJSUFF) \ | |
2bda0e17 KB |
182 | spinbutt.$(OBJSUFF) \ |
183 | statbmp.$(OBJSUFF) \ | |
184 | statbox.$(OBJSUFF) \ | |
185 | statbr95.$(OBJSUFF) \ | |
186 | stattext.$(OBJSUFF) \ | |
187 | tabctrl.$(OBJSUFF) \ | |
188 | taskbar.$(OBJSUFF) \ | |
189 | tbar95.$(OBJSUFF) \ | |
190 | tbarmsw.$(OBJSUFF) \ | |
191 | textctrl.$(OBJSUFF) \ | |
192 | thread.$(OBJSUFF) \ | |
193 | timer.$(OBJSUFF) \ | |
194 | treectrl.$(OBJSUFF) \ | |
195 | utils.$(OBJSUFF) \ | |
cf447356 | 196 | utilsexc.$(OBJSUFF) \ |
2bda0e17 KB |
197 | wave.$(OBJSUFF) \ |
198 | window.$(OBJSUFF) \ | |
199 | $(OLEDIR)/droptgt.$(OBJSUFF) \ | |
43d811ea JS |
200 | $(OLEDIR)/dropsrc.$(OBJSUFF) \ |
201 | $(OLEDIR)/dataobj.$(OBJSUFF) \ | |
2bda0e17 KB |
202 | $(OLEDIR)/oleutils.$(OBJSUFF) \ |
203 | $(OLEDIR)/uuid.$(OBJSUFF) | |
204 | ||
205 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) | |
206 | ||
207 | all: $(OBJECTS) $(WXLIB) | |
208 | ||
209 | base: | |
210 | cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\ | |
211 | OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' | |
212 | ||
213 | ||
214 | $(WXLIB): $(OBJECTS) $(EXTRAOBJS) | |
215 | ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS) | |
216 | $(RANLIB) $@ | |
217 | ||
218 | #$(MSWOBJDIR): | |
219 | # mkdir $(OBJDIR) | |
220 | ||
221 | #$(COMMOBJDIR): | |
222 | # mkdir $(COMMDIR)/$(OBJDIR) | |
223 | ||
224 | #$(GENERICOBJDIR): | |
225 | # mkdir $(GENDIR)/$(OBJDIR) | |
226 | ||
227 | $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h | |
228 | ||
229 | $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c | |
230 | $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c | |
231 | ||
232 | # Replace lex with flex if you run into compilation | |
233 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
234 | # above. | |
235 | $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l | |
236 | $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c | |
237 | ||
238 | # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ | |
239 | # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ | |
240 | # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c | |
241 | # rm -f lex.yy.c | |
242 | ||
243 | # Replace yacc with bison if you run into compilation | |
244 | # problems with y_tab.c. | |
245 | $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y | |
246 | $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y | |
247 | ||
248 | # mv y.tab.c $(COMMDIR)/y_tab.c | |
249 | ||
250 | ||
251 | # Extra targets | |
252 | prologio: | |
253 | cd $(WXDIR)/utils/prologio/src ; $(MAKE) -f makefile.g95 | |
254 | cd $(WXDIR)/src/msw | |
255 | ||
256 | clean_proio: | |
257 | cd $(WXDIR)/utils/prologio/src; $(MAKE) -f makefile.g95 clean | |
258 | cd $(WXDIR)/src/msw | |
259 | ||
260 | makedib: | |
261 | cd $(WXDIR)/src/msw/dib ; $(MAKE) -f makefile.g95 | |
262 | cd $(WXDIR)/src/msw | |
263 | ||
264 | clean_dib: | |
265 | cd $(WXDIR)/src/msw/dib; $(MAKE) -f makefile.g95 clean | |
266 | cd $(WXDIR)/src/msw | |
267 | ||
268 | gauge: | |
269 | cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95 | |
270 | cd $(WXDIR)/src/msw | |
271 | ||
272 | clean_gauge: | |
273 | cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95 clean | |
274 | cd $(WXDIR)/src/msw | |
275 | ||
276 | wxstring: | |
277 | cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 OPTIONS="$(OPTIONS)" DEBUG="$(DEBUG)" | |
278 | cd $(WXDIR)/src/msw | |
279 | ||
280 | clean_wxstring: | |
281 | cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 clean | |
282 | cd $(WXDIR)/src/msw | |
283 | ||
284 | itsy: | |
285 | cd $(WXDIR)/src/msw/itsybits; $(MAKE) -f makefile.g95 | |
286 | cd $(WXDIR)/src/msw | |
287 | ||
288 | clean_itsy: | |
289 | cd $(WXDIR)/contrib/itsybits; $(MAKE) -f makefile.g95 clean | |
290 | cd $(WXDIR)/src/msw | |
291 | ||
292 | rcparser: | |
293 | cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 | |
294 | cd $(WXDIR)/src/msw | |
295 | ||
296 | clean_rcp: | |
297 | cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean | |
298 | cd $(WXDIR)/src/msw | |
299 | ||
300 | # +++start steve161(09.04.1995): added for wxString in \contrib\wxstring | |
301 | wxstring_ol: | |
302 | cd ../../contrib/wxstring; $(MAKE) -f makefile.unx xview | |
303 | wxstring_motif: | |
304 | cd ../../contrib/wxstring; $(MAKE) -f makefile.unx motif | |
305 | wxstring_hp: | |
306 | cd ../../contrib/wxstring; $(MAKE) -f makefile.unx hp | |
307 | ||
308 | clean: | |
309 | rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core | |
310 | ||
311 | cleanall: clean | |
312 |