]>
Commit | Line | Data |
---|---|---|
a1b82138 VZ |
1 | |
2 | ||
2662e49e | 3 | # This file was automatically generated by tmake at 15:25, 1999/07/20 |
a1b82138 VZ |
4 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T! |
5 | ||
2bda0e17 | 6 | # |
a1b82138 VZ |
7 | # File: makefile.unx |
8 | # Author: Julian Smart | |
9 | # Created: 1993 | |
10 | # Updated: | |
11 | # Copyright:(c) 1993, AIAI, University of Edinburgh | |
2bda0e17 | 12 | # |
a1b82138 | 13 | # "@(#)makefile.unx 1.2 5/9/94" |
2bda0e17 KB |
14 | # |
15 | # Makefile for libwx.a | |
16 | ||
17 | # Replace this with your own path if necessary | |
18 | WXDIR = ../.. | |
19 | ||
20 | # All common UNIX compiler flags and options are now in | |
21 | # this central makefile. | |
22 | include $(WXDIR)/src/makeg95.env | |
23 | ||
24 | # IMPORTANT: if you want to link in subsidiary libraries, | |
25 | # required for some optional parts of wxWindows, you must | |
26 | # set EXTRATARGETS and EXTRAOBJS to match the settings in wx_setup.h. | |
27 | # Having done this, you won't have to worry about linking them | |
28 | # into each application. | |
29 | # | |
30 | # Here's the full list. | |
31 | # prologio: Required if using the wxWindows resource facility | |
32 | # USE_WX_RESOURCES should be 1 | |
33 | # xmgauge: Gauge class (required for Motif only) | |
34 | # USE_GAUGE should be 1 | |
35 | # xpm: XPM pixmap support | |
36 | # USE_XPM_IN_X should be 1 | |
2bda0e17 KB |
37 | # wxstring: string class |
38 | # USE_GNU_WXSTRING should be 1 | |
39 | # | |
40 | # Unfortunately, 'ar' doesn't like combining objects and libraries, | |
41 | # so we must identify all the objects from the subordinate libraries. Yuck! | |
42 | XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX) | |
43 | XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\ | |
44 | $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\ | |
45 | $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\ | |
46 | $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\ | |
47 | $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF) | |
48 | ||
49 | # Subordinate library possibilities | |
50 | ||
51 | EXTRAOBJS= | |
52 | ||
53 | GENDIR=../generic | |
54 | COMMDIR=../common | |
4fabb575 | 55 | XPMDIR=../xpm |
2bda0e17 KB |
56 | OLEDIR=ole |
57 | MSWDIR=. | |
58 | ||
2bda0e17 KB |
59 | DOCDIR = $(WXDIR)\docs |
60 | ||
2662e49e RR |
61 | GENERICOBJS= $(GENDIR)/busyinfo.$(OBJSUFF) \ |
62 | $(GENDIR)/choicdgg.$(OBJSUFF) \ | |
63 | $(GENDIR)/dirdlgg.$(OBJSUFF) \ | |
64 | $(GENDIR)/extdlgg.$(OBJSUFF) \ | |
65 | $(GENDIR)/gridg.$(OBJSUFF) \ | |
66 | $(GENDIR)/laywin.$(OBJSUFF) \ | |
67 | $(GENDIR)/panelg.$(OBJSUFF) \ | |
68 | $(GENDIR)/progdlgg.$(OBJSUFF) \ | |
69 | $(GENDIR)/prop.$(OBJSUFF) \ | |
70 | $(GENDIR)/propform.$(OBJSUFF) \ | |
71 | $(GENDIR)/proplist.$(OBJSUFF) \ | |
72 | $(GENDIR)/sashwin.$(OBJSUFF) \ | |
73 | $(GENDIR)/scrolwin.$(OBJSUFF) \ | |
74 | $(GENDIR)/splitter.$(OBJSUFF) \ | |
75 | $(GENDIR)/statusbr.$(OBJSUFF) \ | |
76 | $(GENDIR)/tabg.$(OBJSUFF) \ | |
77 | $(GENDIR)/textdlgg.$(OBJSUFF) \ | |
78 | $(GENDIR)/tipdlg.$(OBJSUFF) | |
8baa0e61 | 79 | |
2bda0e17 | 80 | COMMONOBJS = \ |
a1b82138 | 81 | $(COMMDIR)/y_tab.$(OBJSUFF) \ |
2662e49e RR |
82 | $(COMMDIR)/cmndata.$(OBJSUFF) \ |
83 | $(COMMDIR)/config.$(OBJSUFF) \ | |
84 | $(COMMDIR)/date.$(OBJSUFF) \ | |
85 | $(COMMDIR)/datstrm.$(OBJSUFF) \ | |
86 | $(COMMDIR)/db.$(OBJSUFF) \ | |
87 | $(COMMDIR)/dbtable.$(OBJSUFF) \ | |
88 | $(COMMDIR)/dcbase.$(OBJSUFF) \ | |
89 | $(COMMDIR)/dlgcmn.$(OBJSUFF) \ | |
90 | $(COMMDIR)/docmdi.$(OBJSUFF) \ | |
91 | $(COMMDIR)/docview.$(OBJSUFF) \ | |
92 | $(COMMDIR)/dynarray.$(OBJSUFF) \ | |
93 | $(COMMDIR)/dynlib.$(OBJSUFF) \ | |
94 | $(COMMDIR)/event.$(OBJSUFF) \ | |
a1b82138 | 95 | $(COMMDIR)/extended.$(OBJSUFF) \ |
2662e49e RR |
96 | $(COMMDIR)/ffile.$(OBJSUFF) \ |
97 | $(COMMDIR)/file.$(OBJSUFF) \ | |
98 | $(COMMDIR)/fileconf.$(OBJSUFF) \ | |
99 | $(COMMDIR)/filefn.$(OBJSUFF) \ | |
100 | $(COMMDIR)/filesys.$(OBJSUFF) \ | |
101 | $(COMMDIR)/framecmn.$(OBJSUFF) \ | |
102 | $(COMMDIR)/fs_inet.$(OBJSUFF) \ | |
103 | $(COMMDIR)/fs_zip.$(OBJSUFF) \ | |
104 | $(COMMDIR)/ftp.$(OBJSUFF) \ | |
105 | $(COMMDIR)/gdicmn.$(OBJSUFF) \ | |
106 | $(COMMDIR)/hash.$(OBJSUFF) \ | |
107 | $(COMMDIR)/helpbase.$(OBJSUFF) \ | |
108 | $(COMMDIR)/http.$(OBJSUFF) \ | |
109 | $(COMMDIR)/imagbmp.$(OBJSUFF) \ | |
110 | $(COMMDIR)/image.$(OBJSUFF) \ | |
111 | $(COMMDIR)/imaggif.$(OBJSUFF) \ | |
112 | $(COMMDIR)/imagjpeg.$(OBJSUFF) \ | |
113 | $(COMMDIR)/imagpng.$(OBJSUFF) \ | |
114 | $(COMMDIR)/intl.$(OBJSUFF) \ | |
115 | $(COMMDIR)/ipcbase.$(OBJSUFF) \ | |
116 | $(COMMDIR)/layout.$(OBJSUFF) \ | |
117 | $(COMMDIR)/list.$(OBJSUFF) \ | |
118 | $(COMMDIR)/log.$(OBJSUFF) \ | |
119 | $(COMMDIR)/memory.$(OBJSUFF) \ | |
120 | $(COMMDIR)/mimetype.$(OBJSUFF) \ | |
121 | $(COMMDIR)/module.$(OBJSUFF) \ | |
122 | $(COMMDIR)/mstream.$(OBJSUFF) \ | |
123 | $(COMMDIR)/object.$(OBJSUFF) \ | |
124 | $(COMMDIR)/objstrm.$(OBJSUFF) \ | |
125 | $(COMMDIR)/paper.$(OBJSUFF) \ | |
126 | $(COMMDIR)/prntbase.$(OBJSUFF) \ | |
127 | $(COMMDIR)/process.$(OBJSUFF) \ | |
128 | $(COMMDIR)/protocol.$(OBJSUFF) \ | |
129 | $(COMMDIR)/resource.$(OBJSUFF) \ | |
130 | $(COMMDIR)/sckaddr.$(OBJSUFF) \ | |
131 | $(COMMDIR)/sckfile.$(OBJSUFF) \ | |
132 | $(COMMDIR)/sckint.$(OBJSUFF) \ | |
133 | $(COMMDIR)/sckipc.$(OBJSUFF) \ | |
134 | $(COMMDIR)/sckstrm.$(OBJSUFF) \ | |
135 | $(COMMDIR)/socket.$(OBJSUFF) \ | |
136 | $(COMMDIR)/stream.$(OBJSUFF) \ | |
137 | $(COMMDIR)/string.$(OBJSUFF) \ | |
138 | $(COMMDIR)/tbarbase.$(OBJSUFF) \ | |
139 | $(COMMDIR)/textcmn.$(OBJSUFF) \ | |
140 | $(COMMDIR)/textfile.$(OBJSUFF) \ | |
141 | $(COMMDIR)/time.$(OBJSUFF) \ | |
142 | $(COMMDIR)/timercmn.$(OBJSUFF) \ | |
143 | $(COMMDIR)/tokenzr.$(OBJSUFF) \ | |
144 | $(COMMDIR)/txtstrm.$(OBJSUFF) \ | |
145 | $(COMMDIR)/unzip.$(OBJSUFF) \ | |
146 | $(COMMDIR)/url.$(OBJSUFF) \ | |
147 | $(COMMDIR)/utilscmn.$(OBJSUFF) \ | |
148 | $(COMMDIR)/valgen.$(OBJSUFF) \ | |
149 | $(COMMDIR)/validate.$(OBJSUFF) \ | |
150 | $(COMMDIR)/valtext.$(OBJSUFF) \ | |
151 | $(COMMDIR)/variant.$(OBJSUFF) \ | |
152 | $(COMMDIR)/wfstream.$(OBJSUFF) \ | |
153 | $(COMMDIR)/wincmn.$(OBJSUFF) \ | |
154 | $(COMMDIR)/wxchar.$(OBJSUFF) \ | |
155 | $(COMMDIR)/wxexpr.$(OBJSUFF) \ | |
156 | $(COMMDIR)/zipstream.$(OBJSUFF) \ | |
157 | $(COMMDIR)/zstream.$(OBJSUFF) | |
a1b82138 VZ |
158 | |
159 | MSWOBJS = accel.$(OBJSUFF) \ | |
160 | app.$(OBJSUFF) \ | |
161 | bitmap.$(OBJSUFF) \ | |
162 | bmpbuttn.$(OBJSUFF) \ | |
163 | brush.$(OBJSUFF) \ | |
164 | button.$(OBJSUFF) \ | |
165 | caret.$(OBJSUFF) \ | |
166 | checkbox.$(OBJSUFF) \ | |
167 | checklst.$(OBJSUFF) \ | |
168 | choice.$(OBJSUFF) \ | |
169 | clipbrd.$(OBJSUFF) \ | |
170 | colordlg.$(OBJSUFF) \ | |
171 | colour.$(OBJSUFF) \ | |
172 | combobox.$(OBJSUFF) \ | |
173 | control.$(OBJSUFF) \ | |
174 | curico.$(OBJSUFF) \ | |
175 | cursor.$(OBJSUFF) \ | |
176 | data.$(OBJSUFF) \ | |
177 | dc.$(OBJSUFF) \ | |
178 | dcclient.$(OBJSUFF) \ | |
179 | dcmemory.$(OBJSUFF) \ | |
180 | dcprint.$(OBJSUFF) \ | |
181 | dcscreen.$(OBJSUFF) \ | |
182 | dde.$(OBJSUFF) \ | |
183 | dialog.$(OBJSUFF) \ | |
184 | dib.$(OBJSUFF) \ | |
185 | dibutils.$(OBJSUFF) \ | |
a1b82138 VZ |
186 | dragimag.$(OBJSUFF) \ |
187 | filedlg.$(OBJSUFF) \ | |
188 | font.$(OBJSUFF) \ | |
189 | fontdlg.$(OBJSUFF) \ | |
190 | frame.$(OBJSUFF) \ | |
191 | gauge95.$(OBJSUFF) \ | |
a1b82138 VZ |
192 | gdiobj.$(OBJSUFF) \ |
193 | helpwin.$(OBJSUFF) \ | |
194 | icon.$(OBJSUFF) \ | |
195 | imaglist.$(OBJSUFF) \ | |
196 | iniconf.$(OBJSUFF) \ | |
197 | joystick.$(OBJSUFF) \ | |
198 | listbox.$(OBJSUFF) \ | |
199 | listctrl.$(OBJSUFF) \ | |
200 | main.$(OBJSUFF) \ | |
201 | mdi.$(OBJSUFF) \ | |
202 | menu.$(OBJSUFF) \ | |
203 | menuitem.$(OBJSUFF) \ | |
204 | metafile.$(OBJSUFF) \ | |
205 | minifram.$(OBJSUFF) \ | |
206 | msgdlg.$(OBJSUFF) \ | |
207 | nativdlg.$(OBJSUFF) \ | |
208 | notebook.$(OBJSUFF) \ | |
209 | ownerdrw.$(OBJSUFF) \ | |
210 | palette.$(OBJSUFF) \ | |
211 | pen.$(OBJSUFF) \ | |
212 | penwin.$(OBJSUFF) \ | |
213 | pnghand.$(OBJSUFF) \ | |
214 | printdlg.$(OBJSUFF) \ | |
215 | printwin.$(OBJSUFF) \ | |
216 | radiobox.$(OBJSUFF) \ | |
217 | radiobut.$(OBJSUFF) \ | |
218 | regconf.$(OBJSUFF) \ | |
219 | region.$(OBJSUFF) \ | |
220 | registry.$(OBJSUFF) \ | |
221 | scrolbar.$(OBJSUFF) \ | |
222 | settings.$(OBJSUFF) \ | |
223 | slider95.$(OBJSUFF) \ | |
224 | spinbutt.$(OBJSUFF) \ | |
225 | statbmp.$(OBJSUFF) \ | |
226 | statbox.$(OBJSUFF) \ | |
227 | statbr95.$(OBJSUFF) \ | |
228 | statline.$(OBJSUFF) \ | |
229 | stattext.$(OBJSUFF) \ | |
230 | tabctrl.$(OBJSUFF) \ | |
231 | taskbar.$(OBJSUFF) \ | |
232 | tbar95.$(OBJSUFF) \ | |
a1b82138 VZ |
233 | textctrl.$(OBJSUFF) \ |
234 | thread.$(OBJSUFF) \ | |
235 | timer.$(OBJSUFF) \ | |
236 | tooltip.$(OBJSUFF) \ | |
237 | treectrl.$(OBJSUFF) \ | |
238 | utils.$(OBJSUFF) \ | |
239 | utilsexc.$(OBJSUFF) \ | |
240 | wave.$(OBJSUFF) \ | |
241 | window.$(OBJSUFF) \ | |
242 | xpmhand.$(OBJSUFF) | |
2bda0e17 | 243 | |
4fabb575 JS |
244 | XPMOBJECTS = $(XPMDIR)/crbuffri.o\ |
245 | $(XPMDIR)/crdatfri.o\ | |
246 | $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\ | |
247 | $(XPMDIR)/crifrdat.o\ | |
248 | $(XPMDIR)/data.o\ | |
249 | $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\ | |
250 | $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\ | |
251 | $(XPMDIR)/rdftoi.o\ | |
252 | $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\ | |
253 | $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\ | |
254 | $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o | |
74e34480 | 255 | |
4fabb575 | 256 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS) |
2bda0e17 KB |
257 | |
258 | all: $(OBJECTS) $(WXLIB) | |
259 | ||
260 | base: | |
261 | cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\ | |
262 | OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' | |
263 | ||
264 | ||
265 | $(WXLIB): $(OBJECTS) $(EXTRAOBJS) | |
266 | ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS) | |
267 | $(RANLIB) $@ | |
268 | ||
2bda0e17 KB |
269 | $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h |
270 | ||
271 | $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c | |
272 | $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c | |
273 | ||
274 | # Replace lex with flex if you run into compilation | |
275 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
276 | # above. | |
277 | $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l | |
8870c26e | 278 | $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l |
06e38c8e | 279 | |
8870c26e JS |
280 | # Try one of these if the above line doesn't work. |
281 | # Alternative syntax (1) | |
282 | # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c | |
283 | # Alternative syntax (2) | |
284 | # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l | |
2bda0e17 KB |
285 | |
286 | # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ | |
287 | # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ | |
288 | # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c | |
289 | # rm -f lex.yy.c | |
290 | ||
291 | # Replace yacc with bison if you run into compilation | |
292 | # problems with y_tab.c. | |
57c208c5 | 293 | |
2bda0e17 KB |
294 | $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y |
295 | $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y | |
296 | ||
57c208c5 JS |
297 | # If you use e.g. gcc on Unix, uncomment these lines |
298 | # and comment out the above. | |
2bda0e17 | 299 | |
a1b82138 | 300 | # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y |
57c208c5 JS |
301 | # $(YACC) $(COMMDIR)/parser.y |
302 | # mv y.tab.c $(COMMDIR)/y_tab.c | |
2bda0e17 KB |
303 | |
304 | # Extra targets | |
2bda0e17 KB |
305 | rcparser: |
306 | cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 | |
307 | cd $(WXDIR)/src/msw | |
308 | ||
309 | clean_rcp: | |
310 | cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean | |
311 | cd $(WXDIR)/src/msw | |
312 | ||
2bda0e17 | 313 | clean: |
2662e49e RR |
314 | erase *.o |
315 | erase ../common/y_tab.c | |
316 | erase ../common/lex_yy.c | |
317 | erase $(WXDIR)/lib/libwx$(GUISUFFIX).a | |
318 | erase core | |
2bda0e17 KB |
319 | |
320 | cleanall: clean | |
321 |