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