7 # Makefile for libwx.a, tagetting TWIN32
9 # Replace this with your own path if necessary
12 # All common UNIX compiler flags and options are now in
13 # this central makefile.
14 include $(WXDIR)/src/maketwin.env
16 # IMPORTANT: if you want to link in subsidiary libraries,
17 # required for some optional parts of wxWindows, you must
18 # set EXTRATARGETS and EXTRAOBJS to match the settings in wx_setup.h.
19 # Having done this, you won't have to worry about linking them
20 # into each application.
22 # Here's the full list.
23 # prologio: Required if using the wxWindows resource facility
24 # USE_WX_RESOURCES should be 1
25 # xmgauge: Gauge class (required for Motif only)
26 # USE_GAUGE should be 1
27 # xpm: XPM pixmap support
28 # USE_XPM_IN_X should be 1
29 # wxstring: string class
30 # USE_GNU_WXSTRING should be 1
32 # Unfortunately, 'ar' doesn't like combining objects and libraries,
33 # so we must identify all the objects from the subordinate libraries. Yuck!
34 XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
35 XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\
36 $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\
37 $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\
38 $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\
39 $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF)
41 # Subordinate library possibilities
51 GENERICOBJDIR=../generic/$(OBJDIR)
52 COMMOBJDIR=../common/$(OBJDIR)
53 OLEOBJDIR=ole/$(OBJDIR)
56 DOCDIR = $(WXDIR)\docs
59 $(GENDIR)/choicdgg.$(OBJSUFF) \
60 $(GENDIR)/dirdlgg.$(OBJSUFF) \
61 $(GENDIR)/gridg.$(OBJSUFF) \
62 $(GENDIR)/laywin.$(OBJSUFF) \
63 $(GENDIR)/panelg.$(OBJSUFF) \
64 $(GENDIR)/progdlgg.$(OBJSUFF) \
65 $(GENDIR)/prop.$(OBJSUFF) \
66 $(GENDIR)/propform.$(OBJSUFF) \
67 $(GENDIR)/proplist.$(OBJSUFF) \
68 $(GENDIR)/sashwin.$(OBJSUFF) \
69 $(GENDIR)/scrolwin.$(OBJSUFF) \
70 $(GENDIR)/splitter.$(OBJSUFF) \
71 $(GENDIR)/statusbr.$(OBJSUFF) \
72 $(GENDIR)/tabg.$(OBJSUFF) \
73 $(GENDIR)/textdlgg.$(OBJSUFF)
75 # $(GENDIR)/colrdlgg.$(OBJSUFF) \
76 # $(GENDIR)/fontdlgg.$(OBJSUFF) \
77 # $(GENDIR)/prntdlgg.$(OBJSUFF) \
78 # $(GENDIR)/printps.$(OBJSUFF) \
79 # $(GENDIR)/msgdlgg.$(OBJSUFF) \
82 $(COMMDIR)/config.$(OBJSUFF) \
83 $(COMMDIR)/cmndata.$(OBJSUFF) \
84 $(COMMDIR)/dcbase.$(OBJSUFF) \
85 $(COMMDIR)/docview.$(OBJSUFF) \
86 $(COMMDIR)/docmdi.$(OBJSUFF) \
87 $(COMMDIR)/dynarray.$(OBJSUFF) \
88 $(COMMDIR)/event.$(OBJSUFF) \
89 $(COMMDIR)/file.$(OBJSUFF) \
90 $(COMMDIR)/fileconf.$(OBJSUFF) \
91 $(COMMDIR)/filefn.$(OBJSUFF) \
92 $(COMMDIR)/framecmn.$(OBJSUFF) \
93 $(COMMDIR)/gdicmn.$(OBJSUFF) \
94 $(COMMDIR)/helpbase.$(OBJSUFF) \
95 $(COMMDIR)/image.$(OBJSUFF) \
96 $(COMMDIR)/imagbmp.$(OBJSUFF) \
97 $(COMMDIR)/imagpng.$(OBJSUFF) \
98 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
99 $(COMMDIR)/intl.$(OBJSUFF) \
100 $(COMMDIR)/ipcbase.$(OBJSUFF) \
101 $(COMMDIR)/layout.$(OBJSUFF) \
102 $(COMMDIR)/log.$(OBJSUFF) \
103 $(COMMDIR)/memory.$(OBJSUFF) \
104 $(COMMDIR)/module.$(OBJSUFF) \
105 $(COMMDIR)/mimetype.$(OBJSUFF) \
106 $(COMMDIR)/object.$(OBJSUFF) \
107 $(COMMDIR)/process.$(OBJSUFF) \
108 $(COMMDIR)/prntbase.$(OBJSUFF) \
109 $(COMMDIR)/resource.$(OBJSUFF) \
110 $(COMMDIR)/tbarbase.$(OBJSUFF) \
111 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
112 $(COMMDIR)/textfile.$(OBJSUFF) \
113 $(COMMDIR)/timercmn.$(OBJSUFF) \
114 $(COMMDIR)/utilscmn.$(OBJSUFF) \
115 $(COMMDIR)/validate.$(OBJSUFF) \
116 $(COMMDIR)/valgen.$(OBJSUFF) \
117 $(COMMDIR)/valtext.$(OBJSUFF) \
118 $(COMMDIR)/date.$(OBJSUFF) \
119 $(COMMDIR)/wxexpr.$(OBJSUFF) \
120 $(COMMDIR)/hash.$(OBJSUFF) \
121 $(COMMDIR)/list.$(OBJSUFF) \
122 $(COMMDIR)/variant.$(OBJSUFF) \
123 $(COMMDIR)/paper.$(OBJSUFF) \
124 $(COMMDIR)/string.$(OBJSUFF) \
125 $(COMMDIR)/time.$(OBJSUFF) \
126 $(COMMDIR)/tokenzr.$(OBJSUFF) \
127 $(COMMDIR)/y_tab.$(OBJSUFF) \
128 $(COMMDIR)/stream.$(OBJSUFF) \
129 $(COMMDIR)/wfstream.$(OBJSUFF) \
130 $(COMMDIR)/mstream.$(OBJSUFF) \
131 $(COMMDIR)/zstream.$(OBJSUFF) \
132 $(COMMDIR)/datstrm.$(OBJSUFF) \
133 $(COMMDIR)/objstrm.$(OBJSUFF) \
134 $(COMMDIR)/extended.$(OBJSUFF) \
135 $(COMMDIR)/wincmn.$(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) \
185 imaglist.$(OBJSUFF) \
186 joystick.$(OBJSUFF) \
188 listctrl.$(OBJSUFF) \
192 menuitem.$(OBJSUFF) \
193 metafile.$(OBJSUFF) \
194 minifram.$(OBJSUFF) \
196 nativdlg.$(OBJSUFF) \
197 notebook.$(OBJSUFF) \
198 ownerdrw.$(OBJSUFF) \
202 printdlg.$(OBJSUFF) \
203 printwin.$(OBJSUFF) \
204 radiobox.$(OBJSUFF) \
205 radiobut.$(OBJSUFF) \
207 registry.$(OBJSUFF) \
209 scrolbar.$(OBJSUFF) \
210 settings.$(OBJSUFF) \
211 slidrmsw.$(OBJSUFF) \
212 slider95.$(OBJSUFF) \
213 spinbutt.$(OBJSUFF) \
216 statbr95.$(OBJSUFF) \
217 stattext.$(OBJSUFF) \
222 textctrl.$(OBJSUFF) \
226 treectrl.$(OBJSUFF) \
228 utilsexc.$(OBJSUFF) \
233 # Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
234 # dirdlg.$(OBJSUFF) \
236 # OLE not supported yet by GnuWin32
237 # $(OLEDIR)/droptgt.$(OBJSUFF) \
238 # $(OLEDIR)/dropsrc.$(OBJSUFF) \
239 # $(OLEDIR)/dataobj.$(OBJSUFF) \
240 # $(OLEDIR)/oleutils.$(OBJSUFF) \
241 # $(OLEDIR)/uuid.$(OBJSUFF) \
242 # $(OLEDIR)/automtn.$(OBJSUFF)
244 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
245 $(XPMDIR)/crdatfri.o\
246 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
247 $(XPMDIR)/crifrdat.o\
249 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
250 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
252 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
253 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
254 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
256 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
258 all: $(OBJECTS) $(WXLIB)
261 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
262 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
265 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
266 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
273 # mkdir $(COMMDIR)/$(OBJDIR)
276 # mkdir $(GENDIR)/$(OBJDIR)
278 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
280 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
281 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
283 # Replace lex with flex if you run into compilation
284 # problems with lex_yy.c. See also note about LEX_SCANNER
286 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
287 $(LEX) $(COMMDIR)/lexer.l
288 mv lex.yy.c $(COMMDIR)/lex_yy.c
290 # The following may be required for FLEX
291 # $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
293 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
294 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
295 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
298 # Replace yacc with bison if you run into compilation
299 # problems with y_tab.c.
301 #$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
302 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
304 # If you use e.g. gcc on Unix, uncomment these lines
305 # and comment out the above.
307 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
308 $(YACC) $(COMMDIR)/parser.y
309 mv y.tab.c $(COMMDIR)/y_tab.c
313 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
317 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
321 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core