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)/dynarray.$(OBJSUFF) \
83 $(COMMDIR)/event.$(OBJSUFF) \
84 $(COMMDIR)/file.$(OBJSUFF) \
85 $(COMMDIR)/fileconf.$(OBJSUFF) \
86 $(COMMDIR)/filefn.$(OBJSUFF) \
87 $(COMMDIR)/gdicmn.$(OBJSUFF) \
88 $(COMMDIR)/helpbase.$(OBJSUFF) \
89 $(COMMDIR)/intl.$(OBJSUFF) \
90 $(COMMDIR)/layout.$(OBJSUFF) \
91 $(COMMDIR)/log.$(OBJSUFF) \
92 $(COMMDIR)/memory.$(OBJSUFF) \
93 $(COMMDIR)/module.$(OBJSUFF) \
94 $(COMMDIR)/object.$(OBJSUFF) \
95 $(COMMDIR)/odbc.$(OBJSUFF) \
96 $(COMMDIR)/postscrp.$(OBJSUFF) \
97 $(COMMDIR)/process.$(OBJSUFF) \
98 $(COMMDIR)/prntbase.$(OBJSUFF) \
99 $(COMMDIR)/resource.$(OBJSUFF) \
100 $(COMMDIR)/tbarbase.$(OBJSUFF) \
101 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
102 $(COMMDIR)/textfile.$(OBJSUFF) \
103 $(COMMDIR)/timercmn.$(OBJSUFF) \
104 $(COMMDIR)/utilscmn.$(OBJSUFF) \
105 $(COMMDIR)/validate.$(OBJSUFF) \
106 $(COMMDIR)/valtext.$(OBJSUFF) \
107 $(COMMDIR)/date.$(OBJSUFF) \
108 $(COMMDIR)/wxexpr.$(OBJSUFF) \
109 $(COMMDIR)/hash.$(OBJSUFF) \
110 $(COMMDIR)/list.$(OBJSUFF) \
111 $(COMMDIR)/string.$(OBJSUFF) \
112 $(COMMDIR)/time.$(OBJSUFF) \
113 $(COMMDIR)/y_tab.$(OBJSUFF) \
114 $(COMMDIR)/datstrm.$(OBJSUFF) \
115 $(COMMDIR)/extended.$(OBJSUFF)
120 bmpbuttn.$(OBJSUFF) \
123 checkbox.$(OBJSUFF) \
124 checklst.$(OBJSUFF) \
127 colordlg.$(OBJSUFF) \
129 combobox.$(OBJSUFF) \
135 dcmemory.$(OBJSUFF) \
136 dcclient.$(OBJSUFF) \
138 dcscreen.$(OBJSUFF) \
147 gaugemsw.$(OBJSUFF) \
152 imaglist.$(OBJSUFF) \
153 joystick.$(OBJSUFF) \
155 listctrl.$(OBJSUFF) \
159 menuitem.$(OBJSUFF) \
160 metafile.$(OBJSUFF) \
161 minifram.$(OBJSUFF) \
163 nativdlg.$(OBJSUFF) \
164 ownerdrw.$(OBJSUFF) \
168 printdlg.$(OBJSUFF) \
169 printwin.$(OBJSUFF) \
170 radiobox.$(OBJSUFF) \
171 radiobut.$(OBJSUFF) \
173 registry.$(OBJSUFF) \
174 scrolbar.$(OBJSUFF) \
175 settings.$(OBJSUFF) \
176 slidrmsw.$(OBJSUFF) \
177 slider95.$(OBJSUFF) \
178 spinbutt.$(OBJSUFF) \
181 statbr95.$(OBJSUFF) \
182 stattext.$(OBJSUFF) \
187 textctrl.$(OBJSUFF) \
190 treectrl.$(OBJSUFF) \
192 utilsexc.$(OBJSUFF) \
195 $(OLEDIR)/droptgt.$(OBJSUFF) \
196 $(OLEDIR)/dropsrc.$(OBJSUFF) \
197 $(OLEDIR)/dataobj.$(OBJSUFF) \
198 $(OLEDIR)/oleutils.$(OBJSUFF) \
199 $(OLEDIR)/uuid.$(OBJSUFF)
201 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS)
203 all: $(OBJECTS) $(WXLIB)
206 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
207 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
210 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
211 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
218 # mkdir $(COMMDIR)/$(OBJDIR)
221 # mkdir $(GENDIR)/$(OBJDIR)
223 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
225 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
226 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
228 # Replace lex with flex if you run into compilation
229 # problems with lex_yy.c. See also note about LEX_SCANNER
231 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
232 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
234 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
235 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
236 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
239 # Replace yacc with bison if you run into compilation
240 # problems with y_tab.c.
241 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
242 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
244 # mv y.tab.c $(COMMDIR)/y_tab.c
249 cd $(WXDIR)/utils/prologio/src ; $(MAKE) -f makefile.g95
253 cd $(WXDIR)/utils/prologio/src; $(MAKE) -f makefile.g95 clean
257 cd $(WXDIR)/src/msw/dib ; $(MAKE) -f makefile.g95
261 cd $(WXDIR)/src/msw/dib; $(MAKE) -f makefile.g95 clean
265 cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95
269 cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95 clean
273 cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 OPTIONS="$(OPTIONS)" DEBUG="$(DEBUG)"
277 cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 clean
281 cd $(WXDIR)/src/msw/itsybits; $(MAKE) -f makefile.g95
285 cd $(WXDIR)/contrib/itsybits; $(MAKE) -f makefile.g95 clean
289 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
293 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
296 # +++start steve161(09.04.1995): added for wxString in \contrib\wxstring
298 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx xview
300 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx motif
302 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx hp
305 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core