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 # 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
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)
46 # Subordinate library possibilities
55 GENERICOBJDIR=../generic/$(OBJDIR)
56 COMMOBJDIR=../common/$(OBJDIR)
57 OLEOBJDIR=ole/$(OBJDIR)
60 DOCDIR = $(WXDIR)\docs
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)
79 $(COMMDIR)/config.$(OBJSUFF) \
80 $(COMMDIR)/cmndata.$(OBJSUFF) \
81 $(COMMDIR)/docview.$(OBJSUFF) \
82 $(COMMDIR)/docmdi.$(OBJSUFF) \
83 $(COMMDIR)/dynarray.$(OBJSUFF) \
84 $(COMMDIR)/event.$(OBJSUFF) \
85 $(COMMDIR)/file.$(OBJSUFF) \
86 $(COMMDIR)/fileconf.$(OBJSUFF) \
87 $(COMMDIR)/filefn.$(OBJSUFF) \
88 $(COMMDIR)/framecmn.$(OBJSUFF) \
89 $(COMMDIR)/gdicmn.$(OBJSUFF) \
90 $(COMMDIR)/helpbase.$(OBJSUFF) \
91 $(COMMDIR)/intl.$(OBJSUFF) \
92 $(COMMDIR)/layout.$(OBJSUFF) \
93 $(COMMDIR)/log.$(OBJSUFF) \
94 $(COMMDIR)/memory.$(OBJSUFF) \
95 $(COMMDIR)/module.$(OBJSUFF) \
96 $(COMMDIR)/object.$(OBJSUFF) \
97 $(COMMDIR)/odbc.$(OBJSUFF) \
98 $(COMMDIR)/postscrp.$(OBJSUFF) \
99 $(COMMDIR)/process.$(OBJSUFF) \
100 $(COMMDIR)/prntbase.$(OBJSUFF) \
101 $(COMMDIR)/resource.$(OBJSUFF) \
102 $(COMMDIR)/tbarbase.$(OBJSUFF) \
103 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
104 $(COMMDIR)/textfile.$(OBJSUFF) \
105 $(COMMDIR)/timercmn.$(OBJSUFF) \
106 $(COMMDIR)/utilscmn.$(OBJSUFF) \
107 $(COMMDIR)/validate.$(OBJSUFF) \
108 $(COMMDIR)/valtext.$(OBJSUFF) \
109 $(COMMDIR)/date.$(OBJSUFF) \
110 $(COMMDIR)/wxexpr.$(OBJSUFF) \
111 $(COMMDIR)/hash.$(OBJSUFF) \
112 $(COMMDIR)/list.$(OBJSUFF) \
113 $(COMMDIR)/string.$(OBJSUFF) \
114 $(COMMDIR)/time.$(OBJSUFF) \
115 $(COMMDIR)/y_tab.$(OBJSUFF) \
116 $(COMMDIR)/stream.$(OBJSUFF) \
117 $(COMMDIR)/fstream.$(OBJSUFF) \
118 $(COMMDIR)/mstream.$(OBJSUFF) \
119 $(COMMDIR)/zstream.$(OBJSUFF) \
120 $(COMMDIR)/datstrm.$(OBJSUFF) \
121 $(COMMDIR)/extended.$(OBJSUFF) \
122 $(COMMDIR)/wincmn.$(OBJSUFF)
128 bmpbuttn.$(OBJSUFF) \
131 checkbox.$(OBJSUFF) \
132 checklst.$(OBJSUFF) \
135 colordlg.$(OBJSUFF) \
137 combobox.$(OBJSUFF) \
143 dcmemory.$(OBJSUFF) \
144 dcclient.$(OBJSUFF) \
146 dcscreen.$(OBJSUFF) \
155 gaugemsw.$(OBJSUFF) \
160 imaglist.$(OBJSUFF) \
161 joystick.$(OBJSUFF) \
163 listctrl.$(OBJSUFF) \
167 menuitem.$(OBJSUFF) \
168 metafile.$(OBJSUFF) \
169 minifram.$(OBJSUFF) \
171 nativdlg.$(OBJSUFF) \
172 notebook.$(OBJSUFF) \
173 ownerdrw.$(OBJSUFF) \
177 printdlg.$(OBJSUFF) \
178 printwin.$(OBJSUFF) \
179 radiobox.$(OBJSUFF) \
180 radiobut.$(OBJSUFF) \
182 registry.$(OBJSUFF) \
184 scrolbar.$(OBJSUFF) \
185 settings.$(OBJSUFF) \
186 slidrmsw.$(OBJSUFF) \
187 slider95.$(OBJSUFF) \
188 spinbutt.$(OBJSUFF) \
191 statbr95.$(OBJSUFF) \
192 stattext.$(OBJSUFF) \
197 textctrl.$(OBJSUFF) \
200 treectrl.$(OBJSUFF) \
202 utilsexc.$(OBJSUFF) \
205 $(OLEDIR)/droptgt.$(OBJSUFF) \
206 $(OLEDIR)/dropsrc.$(OBJSUFF) \
207 $(OLEDIR)/dataobj.$(OBJSUFF) \
208 $(OLEDIR)/oleutils.$(OBJSUFF) \
209 $(OLEDIR)/uuid.$(OBJSUFF)
211 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS)
213 all: $(OBJECTS) $(WXLIB)
216 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
217 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
220 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
221 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
228 # mkdir $(COMMDIR)/$(OBJDIR)
231 # mkdir $(GENDIR)/$(OBJDIR)
233 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
235 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
236 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
238 # Replace lex with flex if you run into compilation
239 # problems with lex_yy.c. See also note about LEX_SCANNER
241 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
242 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
244 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
245 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
246 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
249 # Replace yacc with bison if you run into compilation
250 # problems with y_tab.c.
251 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
252 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
254 # mv y.tab.c $(COMMDIR)/y_tab.c
259 cd $(WXDIR)/utils/prologio/src ; $(MAKE) -f makefile.g95
263 cd $(WXDIR)/utils/prologio/src; $(MAKE) -f makefile.g95 clean
267 cd $(WXDIR)/src/msw/dib ; $(MAKE) -f makefile.g95
271 cd $(WXDIR)/src/msw/dib; $(MAKE) -f makefile.g95 clean
275 cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95
279 cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95 clean
283 cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 OPTIONS="$(OPTIONS)" DEBUG="$(DEBUG)"
287 cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 clean
291 cd $(WXDIR)/src/msw/itsybits; $(MAKE) -f makefile.g95
295 cd $(WXDIR)/contrib/itsybits; $(MAKE) -f makefile.g95 clean
299 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
303 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
306 # +++start steve161(09.04.1995): added for wxString in \contrib\wxstring
308 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx xview
310 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx motif
312 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx hp
315 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core