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