6 # Copyright: (c) 1993, AIAI, University of Edinburgh
8 # "@(#)makefile.unx 1.2 5/9/94"
10 # Makefile for libwx.a
12 # Replace this with your own path if necessary
15 # All common UNIX compiler flags and options are now in
16 # this central makefile.
17 include $(WXDIR)/src/makeg95.env
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.
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 # wxstring: string class
33 # USE_GNU_WXSTRING should be 1
35 # Unfortunately, 'ar' doesn't like combining objects and libraries,
36 # so we must identify all the objects from the subordinate libraries. Yuck!
37 XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
38 XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\
39 $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\
40 $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\
41 $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\
42 $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF)
44 # Subordinate library possibilities
54 DOCDIR = $(WXDIR)\docs
57 $(GENDIR)/choicdgg.$(OBJSUFF) \
58 $(GENDIR)/dirdlgg.$(OBJSUFF) \
59 $(GENDIR)/gridg.$(OBJSUFF) \
60 $(GENDIR)/laywin.$(OBJSUFF) \
61 $(GENDIR)/panelg.$(OBJSUFF) \
62 $(GENDIR)/progdlgg.$(OBJSUFF) \
63 $(GENDIR)/prop.$(OBJSUFF) \
64 $(GENDIR)/propform.$(OBJSUFF) \
65 $(GENDIR)/proplist.$(OBJSUFF) \
66 $(GENDIR)/sashwin.$(OBJSUFF) \
67 $(GENDIR)/scrolwin.$(OBJSUFF) \
68 $(GENDIR)/splitter.$(OBJSUFF) \
69 $(GENDIR)/statusbr.$(OBJSUFF) \
70 $(GENDIR)/tabg.$(OBJSUFF) \
71 $(GENDIR)/textdlgg.$(OBJSUFF)
73 # $(GENDIR)/colrdlgg.$(OBJSUFF) \
74 # $(GENDIR)/fontdlgg.$(OBJSUFF) \
75 # $(GENDIR)/prntdlgg.$(OBJSUFF) \
76 # $(GENDIR)/printps.$(OBJSUFF) \
77 # $(GENDIR)/msgdlgg.$(OBJSUFF) \
80 $(COMMDIR)/config.$(OBJSUFF) \
81 $(COMMDIR)/cmndata.$(OBJSUFF) \
82 $(COMMDIR)/dcbase.$(OBJSUFF) \
83 $(COMMDIR)/docview.$(OBJSUFF) \
84 $(COMMDIR)/docmdi.$(OBJSUFF) \
85 $(COMMDIR)/dynarray.$(OBJSUFF) \
86 $(COMMDIR)/event.$(OBJSUFF) \
87 $(COMMDIR)/file.$(OBJSUFF) \
88 $(COMMDIR)/fileconf.$(OBJSUFF) \
89 $(COMMDIR)/filefn.$(OBJSUFF) \
90 $(COMMDIR)/framecmn.$(OBJSUFF) \
91 $(COMMDIR)/gdicmn.$(OBJSUFF) \
92 $(COMMDIR)/helpbase.$(OBJSUFF) \
93 $(COMMDIR)/image.$(OBJSUFF) \
94 $(COMMDIR)/imagebmp.$(OBJSUFF) \
95 $(COMMDIR)/imagpng.$(OBJSUFF) \
96 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
97 $(COMMDIR)/intl.$(OBJSUFF) \
98 $(COMMDIR)/ipcbase.$(OBJSUFF) \
99 $(COMMDIR)/layout.$(OBJSUFF) \
100 $(COMMDIR)/log.$(OBJSUFF) \
101 $(COMMDIR)/memory.$(OBJSUFF) \
102 $(COMMDIR)/module.$(OBJSUFF) \
103 $(COMMDIR)/mimetype.$(OBJSUFF) \
104 $(COMMDIR)/object.$(OBJSUFF) \
105 $(COMMDIR)/odbc.$(OBJSUFF) \
106 $(COMMDIR)/process.$(OBJSUFF) \
107 $(COMMDIR)/prntbase.$(OBJSUFF) \
108 $(COMMDIR)/resource.$(OBJSUFF) \
109 $(COMMDIR)/tbarbase.$(OBJSUFF) \
110 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
111 $(COMMDIR)/textfile.$(OBJSUFF) \
112 $(COMMDIR)/timercmn.$(OBJSUFF) \
113 $(COMMDIR)/utilscmn.$(OBJSUFF) \
114 $(COMMDIR)/validate.$(OBJSUFF) \
115 $(COMMDIR)/valgen.$(OBJSUFF) \
116 $(COMMDIR)/valtext.$(OBJSUFF) \
117 $(COMMDIR)/date.$(OBJSUFF) \
118 $(COMMDIR)/wxexpr.$(OBJSUFF) \
119 $(COMMDIR)/hash.$(OBJSUFF) \
120 $(COMMDIR)/list.$(OBJSUFF) \
121 $(COMMDIR)/variant.$(OBJSUFF) \
122 $(COMMDIR)/paper.$(OBJSUFF) \
123 $(COMMDIR)/string.$(OBJSUFF) \
124 $(COMMDIR)/time.$(OBJSUFF) \
125 $(COMMDIR)/tokenzr.$(OBJSUFF) \
126 $(COMMDIR)/y_tab.$(OBJSUFF) \
127 $(COMMDIR)/stream.$(OBJSUFF) \
128 $(COMMDIR)/wfstream.$(OBJSUFF) \
129 $(COMMDIR)/mstream.$(OBJSUFF) \
130 $(COMMDIR)/zstream.$(OBJSUFF) \
131 $(COMMDIR)/datstrm.$(OBJSUFF) \
132 $(COMMDIR)/objstrm.$(OBJSUFF) \
133 $(COMMDIR)/extended.$(OBJSUFF) \
134 $(COMMDIR)/wincmn.$(OBJSUFF) \
135 $(COMMDIR)/wxchar.$(OBJSUFF)
137 # NOTE: if the socket-related files fail with a syntax error in Sockets.h,
138 # remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
139 # Mingw32 may still have problems.
140 # $(COMMDIR)/socket.$(OBJSUFF) \
141 # $(COMMDIR)/sckaddr.$(OBJSUFF) \
142 # $(COMMDIR)/sckfile.$(OBJSUFF) \
143 # $(COMMDIR)/sckipc.$(OBJSUFF) \
144 # $(COMMDIR)/sckstrm.$(OBJSUFF) \
145 # $(COMMDIR)/protocol.$(OBJSUFF) \
146 # $(COMMDIR)/http.$(OBJSUFF) \
147 # $(COMMDIR)/ftp.$(OBJSUFF) \
148 # $(COMMDIR)/url.$(OBJSUFF) \
154 bmpbuttn.$(OBJSUFF) \
157 checkbox.$(OBJSUFF) \
158 checklst.$(OBJSUFF) \
162 colordlg.$(OBJSUFF) \
164 combobox.$(OBJSUFF) \
170 dcmemory.$(OBJSUFF) \
171 dcclient.$(OBJSUFF) \
173 dcscreen.$(OBJSUFF) \
181 gaugemsw.$(OBJSUFF) \
186 imaglist.$(OBJSUFF) \
187 joystick.$(OBJSUFF) \
189 listctrl.$(OBJSUFF) \
193 menuitem.$(OBJSUFF) \
194 metafile.$(OBJSUFF) \
195 minifram.$(OBJSUFF) \
197 nativdlg.$(OBJSUFF) \
198 notebook.$(OBJSUFF) \
199 ownerdrw.$(OBJSUFF) \
203 printdlg.$(OBJSUFF) \
204 printwin.$(OBJSUFF) \
205 radiobox.$(OBJSUFF) \
206 radiobut.$(OBJSUFF) \
208 registry.$(OBJSUFF) \
210 scrolbar.$(OBJSUFF) \
211 settings.$(OBJSUFF) \
212 slidrmsw.$(OBJSUFF) \
213 slider95.$(OBJSUFF) \
214 spinbutt.$(OBJSUFF) \
217 statbr95.$(OBJSUFF) \
218 stattext.$(OBJSUFF) \
223 textctrl.$(OBJSUFF) \
227 treectrl.$(OBJSUFF) \
229 utilsexc.$(OBJSUFF) \
234 # Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
235 # dirdlg.$(OBJSUFF) \
237 # OLE not supported yet by GnuWin32
238 # $(OLEDIR)/droptgt.$(OBJSUFF) \
239 # $(OLEDIR)/dropsrc.$(OBJSUFF) \
240 # $(OLEDIR)/dataobj.$(OBJSUFF) \
241 # $(OLEDIR)/oleutils.$(OBJSUFF) \
242 # $(OLEDIR)/uuid.$(OBJSUFF) \
243 # $(OLEDIR)/automtn.$(OBJSUFF)
245 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
246 $(XPMDIR)/crdatfri.o\
247 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
248 $(XPMDIR)/crifrdat.o\
250 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
251 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
253 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
254 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
255 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
257 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
259 all: $(OBJECTS) $(WXLIB)
262 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
263 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
266 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
267 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
270 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
272 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
273 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
275 # Replace lex with flex if you run into compilation
276 # problems with lex_yy.c. See also note about LEX_SCANNER
278 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
279 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
281 # Try one of these if the above line doesn't work.
282 # Alternative syntax (1)
283 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
284 # Alternative syntax (2)
285 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
287 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
288 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
289 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
292 # Replace yacc with bison if you run into compilation
293 # problems with y_tab.c.
295 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
296 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
298 # If you use e.g. gcc on Unix, uncomment these lines
299 # and comment out the above.
301 #$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
302 # $(YACC) $(COMMDIR)/parser.y
303 # mv y.tab.c $(COMMDIR)/y_tab.c
307 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
311 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
315 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core