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!
10 # Author: Julian Smart
13 # Copyright:(c) 1993, AIAI, University of Edinburgh
15 # "@(#)makefile.unx 1.2 5/9/94"
17 # Makefile for libwx.a
19 # Replace this with your own path if necessary
22 # All common UNIX compiler flags and options are now in
23 # this central makefile.
24 include $(WXDIR)/src/makeg95.env
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.
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
39 # wxstring: string class
40 # USE_GNU_WXSTRING should be 1
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)
51 # Subordinate library possibilities
61 DOCDIR = $(WXDIR)\docs
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)
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)
152 MSWOBJS = accel.$(OBJSUFF) \
155 bmpbuttn.$(OBJSUFF) \
159 checkbox.$(OBJSUFF) \
160 checklst.$(OBJSUFF) \
163 colordlg.$(OBJSUFF) \
165 combobox.$(OBJSUFF) \
171 dcclient.$(OBJSUFF) \
172 dcmemory.$(OBJSUFF) \
174 dcscreen.$(OBJSUFF) \
178 dibutils.$(OBJSUFF) \
180 dragimag.$(OBJSUFF) \
186 gaugemsw.$(OBJSUFF) \
190 imaglist.$(OBJSUFF) \
192 joystick.$(OBJSUFF) \
194 listctrl.$(OBJSUFF) \
198 menuitem.$(OBJSUFF) \
199 metafile.$(OBJSUFF) \
200 minifram.$(OBJSUFF) \
202 nativdlg.$(OBJSUFF) \
203 notebook.$(OBJSUFF) \
204 ownerdrw.$(OBJSUFF) \
209 printdlg.$(OBJSUFF) \
210 printwin.$(OBJSUFF) \
211 radiobox.$(OBJSUFF) \
212 radiobut.$(OBJSUFF) \
215 registry.$(OBJSUFF) \
216 scrolbar.$(OBJSUFF) \
217 settings.$(OBJSUFF) \
218 slider95.$(OBJSUFF) \
219 spinbutt.$(OBJSUFF) \
222 statbr95.$(OBJSUFF) \
223 statline.$(OBJSUFF) \
224 stattext.$(OBJSUFF) \
229 textctrl.$(OBJSUFF) \
233 treectrl.$(OBJSUFF) \
235 utilsexc.$(OBJSUFF) \
240 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
241 $(XPMDIR)/crdatfri.o\
242 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
243 $(XPMDIR)/crifrdat.o\
245 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
246 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
248 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
249 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
250 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
252 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
254 all: $(OBJECTS) $(WXLIB)
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)'
261 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
262 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
265 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
267 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
268 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
270 # Replace lex with flex if you run into compilation
271 # problems with lex_yy.c. See also note about LEX_SCANNER
273 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
274 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
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
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
287 # Replace yacc with bison if you run into compilation
288 # problems with y_tab.c.
290 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
291 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
293 # If you use e.g. gcc on Unix, uncomment these lines
294 # and comment out the above.
296 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
297 # $(YACC) $(COMMDIR)/parser.y
298 # mv y.tab.c $(COMMDIR)/y_tab.c
302 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
306 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
310 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core