]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
compile fix (still not tested) for GetLastChild()
[wxWidgets.git] / src / msw / makefile.g95
CommitLineData
2bda0e17
KB
1#
2# File: makefile.unx
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "@(#)makefile.unx 1.2 5/9/94"
9#
10# Makefile for libwx.a
11
12# Replace this with your own path if necessary
13WXDIR = ../..
14
15# All common UNIX compiler flags and options are now in
16# this central makefile.
17include $(WXDIR)/src/makeg95.env
18
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.
24#
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
2bda0e17
KB
32# wxstring: string class
33# USE_GNU_WXSTRING should be 1
34#
35# Unfortunately, 'ar' doesn't like combining objects and libraries,
36# so we must identify all the objects from the subordinate libraries. Yuck!
37XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
38XPMOBJS=$(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)
43
44# Subordinate library possibilities
45
46EXTRAOBJS=
47
48GENDIR=../generic
49COMMDIR=../common
4fabb575 50XPMDIR=../xpm
2bda0e17
KB
51OLEDIR=ole
52MSWDIR=.
53
54GENERICOBJDIR=../generic/$(OBJDIR)
55COMMOBJDIR=../common/$(OBJDIR)
56OLEOBJDIR=ole/$(OBJDIR)
57MSWDIR=$(OBJDIR)
58
59DOCDIR = $(WXDIR)\docs
60
61GENERICOBJS= \
62 $(GENDIR)/choicdgg.$(OBJSUFF) \
4bf78aae 63 $(GENDIR)/dirdlgg.$(OBJSUFF) \
2bda0e17 64 $(GENDIR)/gridg.$(OBJSUFF) \
27529614 65 $(GENDIR)/laywin.$(OBJSUFF) \
2bda0e17 66 $(GENDIR)/panelg.$(OBJSUFF) \
e3a43801
JS
67 $(GENDIR)/prop.$(OBJSUFF) \
68 $(GENDIR)/propform.$(OBJSUFF) \
69 $(GENDIR)/proplist.$(OBJSUFF) \
27529614 70 $(GENDIR)/sashwin.$(OBJSUFF) \
2bda0e17
KB
71 $(GENDIR)/scrolwin.$(OBJSUFF) \
72 $(GENDIR)/splitter.$(OBJSUFF) \
73 $(GENDIR)/statusbr.$(OBJSUFF) \
74 $(GENDIR)/tabg.$(OBJSUFF) \
75 $(GENDIR)/textdlgg.$(OBJSUFF)
76
ad5c34f3
JS
77# $(GENDIR)/colrdlgg.$(OBJSUFF) \
78# $(GENDIR)/fontdlgg.$(OBJSUFF) \
8baa0e61
JS
79# $(GENDIR)/prntdlgg.$(OBJSUFF) \
80# $(GENDIR)/printps.$(OBJSUFF) \
ad5c34f3 81# $(GENDIR)/msgdlgg.$(OBJSUFF) \
8baa0e61 82
2bda0e17
KB
83COMMONOBJS = \
84 $(COMMDIR)/config.$(OBJSUFF) \
85 $(COMMDIR)/cmndata.$(OBJSUFF) \
86 $(COMMDIR)/docview.$(OBJSUFF) \
2108f33a 87 $(COMMDIR)/docmdi.$(OBJSUFF) \
2bda0e17
KB
88 $(COMMDIR)/dynarray.$(OBJSUFF) \
89 $(COMMDIR)/event.$(OBJSUFF) \
90 $(COMMDIR)/file.$(OBJSUFF) \
91 $(COMMDIR)/fileconf.$(OBJSUFF) \
92 $(COMMDIR)/filefn.$(OBJSUFF) \
3d8bd7d6 93 $(COMMDIR)/framecmn.$(OBJSUFF) \
2bda0e17
KB
94 $(COMMDIR)/gdicmn.$(OBJSUFF) \
95 $(COMMDIR)/helpbase.$(OBJSUFF) \
e3554471 96 $(COMMDIR)/image.$(OBJSUFF) \
2bda0e17
KB
97 $(COMMDIR)/intl.$(OBJSUFF) \
98 $(COMMDIR)/layout.$(OBJSUFF) \
99 $(COMMDIR)/log.$(OBJSUFF) \
100 $(COMMDIR)/memory.$(OBJSUFF) \
101 $(COMMDIR)/module.$(OBJSUFF) \
2432b92d 102 $(COMMDIR)/mimetype.$(OBJSUFF) \
2bda0e17
KB
103 $(COMMDIR)/object.$(OBJSUFF) \
104 $(COMMDIR)/odbc.$(OBJSUFF) \
6a6c0a8b 105 $(COMMDIR)/process.$(OBJSUFF) \
2bda0e17
KB
106 $(COMMDIR)/prntbase.$(OBJSUFF) \
107 $(COMMDIR)/resource.$(OBJSUFF) \
108 $(COMMDIR)/tbarbase.$(OBJSUFF) \
109 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
110 $(COMMDIR)/textfile.$(OBJSUFF) \
111 $(COMMDIR)/timercmn.$(OBJSUFF) \
112 $(COMMDIR)/utilscmn.$(OBJSUFF) \
113 $(COMMDIR)/validate.$(OBJSUFF) \
114 $(COMMDIR)/valtext.$(OBJSUFF) \
115 $(COMMDIR)/date.$(OBJSUFF) \
116 $(COMMDIR)/wxexpr.$(OBJSUFF) \
117 $(COMMDIR)/hash.$(OBJSUFF) \
118 $(COMMDIR)/list.$(OBJSUFF) \
341287bf 119 $(COMMDIR)/variant.$(OBJSUFF) \
2bda0e17
KB
120 $(COMMDIR)/string.$(OBJSUFF) \
121 $(COMMDIR)/time.$(OBJSUFF) \
27529614 122 $(COMMDIR)/tokenzr.$(OBJSUFF) \
cf447356 123 $(COMMDIR)/y_tab.$(OBJSUFF) \
3d4c6a21 124 $(COMMDIR)/stream.$(OBJSUFF) \
25331334 125 $(COMMDIR)/wfstream.$(OBJSUFF) \
3d4c6a21 126 $(COMMDIR)/mstream.$(OBJSUFF) \
79c3e0e1 127 $(COMMDIR)/zstream.$(OBJSUFF) \
cf447356 128 $(COMMDIR)/datstrm.$(OBJSUFF) \
27529614 129 $(COMMDIR)/objstrm.$(OBJSUFF) \
3d8bd7d6
JS
130 $(COMMDIR)/extended.$(OBJSUFF) \
131 $(COMMDIR)/wincmn.$(OBJSUFF)
2bda0e17 132
8baa0e61 133# $(COMMDIR)/postscrp.$(OBJSUFF) \
6b037754 134
4fabb575
JS
135# NOTE: if the socket-related files fail with a syntax error in Sockets.h,
136# remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
137# Mingw32 may still have problems.
138# $(COMMDIR)/socket.$(OBJSUFF) \
139# $(COMMDIR)/sckaddr.$(OBJSUFF) \
140# $(COMMDIR)/sckfile.$(OBJSUFF) \
141# $(COMMDIR)/sckipc.$(OBJSUFF) \
142# $(COMMDIR)/sckstrm.$(OBJSUFF) \
143# $(COMMDIR)/protocol.$(OBJSUFF) \
144# $(COMMDIR)/http.$(OBJSUFF) \
145# $(COMMDIR)/ftp.$(OBJSUFF) \
146# $(COMMDIR)/url.$(OBJSUFF) \
27529614 147
2bda0e17 148MSWOBJS = \
57a7b7c1 149 accel.$(OBJSUFF) \
2bda0e17
KB
150 app.$(OBJSUFF) \
151 bitmap.$(OBJSUFF) \
152 bmpbuttn.$(OBJSUFF) \
153 brush.$(OBJSUFF) \
154 button.$(OBJSUFF) \
155 checkbox.$(OBJSUFF) \
156 checklst.$(OBJSUFF) \
157 choice.$(OBJSUFF) \
158 clipbrd.$(OBJSUFF) \
159 colordlg.$(OBJSUFF) \
160 colour.$(OBJSUFF) \
161 combobox.$(OBJSUFF) \
162 control.$(OBJSUFF) \
163 curico.$(OBJSUFF) \
164 cursor.$(OBJSUFF) \
165 data.$(OBJSUFF) \
166 dc.$(OBJSUFF) \
167 dcmemory.$(OBJSUFF) \
168 dcclient.$(OBJSUFF) \
169 dcprint.$(OBJSUFF) \
170 dcscreen.$(OBJSUFF) \
171 dde.$(OBJSUFF) \
172 dialog.$(OBJSUFF) \
173 dib.$(OBJSUFF) \
2bda0e17
KB
174 filedlg.$(OBJSUFF) \
175 font.$(OBJSUFF) \
176 fontdlg.$(OBJSUFF) \
177 frame.$(OBJSUFF) \
da87a1ca
JS
178 gaugemsw.$(OBJSUFF) \
179 gauge95.$(OBJSUFF) \
2bda0e17
KB
180 gdiobj.$(OBJSUFF) \
181 helpwin.$(OBJSUFF) \
182 icon.$(OBJSUFF) \
183 imaglist.$(OBJSUFF) \
184 joystick.$(OBJSUFF) \
185 listbox.$(OBJSUFF) \
186 listctrl.$(OBJSUFF) \
187 main.$(OBJSUFF) \
188 mdi.$(OBJSUFF) \
189 menu.$(OBJSUFF) \
190 menuitem.$(OBJSUFF) \
191 metafile.$(OBJSUFF) \
192 minifram.$(OBJSUFF) \
193 msgdlg.$(OBJSUFF) \
194 nativdlg.$(OBJSUFF) \
8b9518ee 195 notebook.$(OBJSUFF) \
2bda0e17
KB
196 ownerdrw.$(OBJSUFF) \
197 palette.$(OBJSUFF) \
198 pen.$(OBJSUFF) \
199 penwin.$(OBJSUFF) \
200 printdlg.$(OBJSUFF) \
201 printwin.$(OBJSUFF) \
202 radiobox.$(OBJSUFF) \
203 radiobut.$(OBJSUFF) \
204 region.$(OBJSUFF) \
205 registry.$(OBJSUFF) \
6a23cbce 206 regconf.$(OBJSUFF) \
2bda0e17
KB
207 scrolbar.$(OBJSUFF) \
208 settings.$(OBJSUFF) \
da87a1ca
JS
209 slidrmsw.$(OBJSUFF) \
210 slider95.$(OBJSUFF) \
2bda0e17
KB
211 spinbutt.$(OBJSUFF) \
212 statbmp.$(OBJSUFF) \
213 statbox.$(OBJSUFF) \
214 statbr95.$(OBJSUFF) \
215 stattext.$(OBJSUFF) \
216 tabctrl.$(OBJSUFF) \
217 taskbar.$(OBJSUFF) \
218 tbar95.$(OBJSUFF) \
219 tbarmsw.$(OBJSUFF) \
220 textctrl.$(OBJSUFF) \
221 thread.$(OBJSUFF) \
222 timer.$(OBJSUFF) \
223 treectrl.$(OBJSUFF) \
224 utils.$(OBJSUFF) \
cf447356 225 utilsexc.$(OBJSUFF) \
2bda0e17 226 wave.$(OBJSUFF) \
2fd284a4
JS
227 window.$(OBJSUFF) \
228 xpmhand.$(OBJSUFF)
27529614 229
9ca2fe7e
JS
230# Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
231# dirdlg.$(OBJSUFF) \
232
74e34480 233# OLE not supported yet by GnuWin32
27529614
JS
234# $(OLEDIR)/droptgt.$(OBJSUFF) \
235# $(OLEDIR)/dropsrc.$(OBJSUFF) \
236# $(OLEDIR)/dataobj.$(OBJSUFF) \
237# $(OLEDIR)/oleutils.$(OBJSUFF) \
aa0b7e1e
JS
238# $(OLEDIR)/uuid.$(OBJSUFF) \
239# $(OLEDIR)/automtn.$(OBJSUFF)
2bda0e17 240
4fabb575
JS
241XPMOBJECTS = $(XPMDIR)/crbuffri.o\
242 $(XPMDIR)/crdatfri.o\
243 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
244 $(XPMDIR)/crifrdat.o\
245 $(XPMDIR)/data.o\
246 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
247 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
248 $(XPMDIR)/rdftoi.o\
249 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
250 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
251 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
74e34480 252
4fabb575 253OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
2bda0e17
KB
254
255all: $(OBJECTS) $(WXLIB)
256
257base:
258 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
259 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
260
261
262$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
263 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
264 $(RANLIB) $@
265
266#$(MSWOBJDIR):
267# mkdir $(OBJDIR)
268
269#$(COMMOBJDIR):
270# mkdir $(COMMDIR)/$(OBJDIR)
271
272#$(GENERICOBJDIR):
273# mkdir $(GENDIR)/$(OBJDIR)
274
275$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
276
277$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
278 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
279
280# Replace lex with flex if you run into compilation
281# problems with lex_yy.c. See also note about LEX_SCANNER
282# above.
283$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
06e38c8e
JS
284 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
285
286# The following may be required for some versions of LEX/FLEX
287# $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
2bda0e17
KB
288
289# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
290# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
291# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
292# rm -f lex.yy.c
293
294# Replace yacc with bison if you run into compilation
295# problems with y_tab.c.
57c208c5 296
2bda0e17
KB
297$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
298 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
299
57c208c5
JS
300# If you use e.g. gcc on Unix, uncomment these lines
301# and comment out the above.
2bda0e17 302
57c208c5
JS
303#$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
304# $(YACC) $(COMMDIR)/parser.y
305# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17
KB
306
307# Extra targets
2bda0e17
KB
308rcparser:
309 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
310 cd $(WXDIR)/src/msw
311
312clean_rcp:
313 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
314 cd $(WXDIR)/src/msw
315
2bda0e17
KB
316clean:
317 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
318
319cleanall: clean
320