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