]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.twn
Added wxWindowBase::CentreOnParent to allow top level windows to be
[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) \
e90babdf 64 $(GENDIR)/progdlgg.$(OBJSUFF) \
d2f62134
JS
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)
74
75# $(GENDIR)/colrdlgg.$(OBJSUFF) \
76# $(GENDIR)/fontdlgg.$(OBJSUFF) \
77# $(GENDIR)/prntdlgg.$(OBJSUFF) \
78# $(GENDIR)/printps.$(OBJSUFF) \
79# $(GENDIR)/msgdlgg.$(OBJSUFF) \
80
81COMMONOBJS = \
82 $(COMMDIR)/config.$(OBJSUFF) \
83 $(COMMDIR)/cmndata.$(OBJSUFF) \
eebc8b5e 84 $(COMMDIR)/dcbase.$(OBJSUFF) \
d2f62134
JS
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) \
e9c4b1a2
JS
96 $(COMMDIR)/imagpng.$(OBJSUFF) \
97 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
d2f62134 98 $(COMMDIR)/intl.$(OBJSUFF) \
dbda9e86 99 $(COMMDIR)/ipcbase.$(OBJSUFF) \
d2f62134
JS
100 $(COMMDIR)/layout.$(OBJSUFF) \
101 $(COMMDIR)/log.$(OBJSUFF) \
102 $(COMMDIR)/memory.$(OBJSUFF) \
103 $(COMMDIR)/module.$(OBJSUFF) \
104 $(COMMDIR)/mimetype.$(OBJSUFF) \
105 $(COMMDIR)/object.$(OBJSUFF) \
106 $(COMMDIR)/odbc.$(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) \
89c684ef 116 $(COMMDIR)/valgen.$(OBJSUFF) \
d2f62134
JS
117 $(COMMDIR)/valtext.$(OBJSUFF) \
118 $(COMMDIR)/date.$(OBJSUFF) \
119 $(COMMDIR)/wxexpr.$(OBJSUFF) \
120 $(COMMDIR)/hash.$(OBJSUFF) \
121 $(COMMDIR)/list.$(OBJSUFF) \
122 $(COMMDIR)/variant.$(OBJSUFF) \
7bcb11d3 123 $(COMMDIR)/paper.$(OBJSUFF) \
d2f62134
JS
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)
136
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) \
149
150MSWOBJS = \
151 accel.$(OBJSUFF) \
152 app.$(OBJSUFF) \
153 bitmap.$(OBJSUFF) \
154 bmpbuttn.$(OBJSUFF) \
155 brush.$(OBJSUFF) \
156 button.$(OBJSUFF) \
157 checkbox.$(OBJSUFF) \
158 checklst.$(OBJSUFF) \
789295bf 159 caret.$(OBJSUFF) \
d2f62134
JS
160 choice.$(OBJSUFF) \
161 clipbrd.$(OBJSUFF) \
162 colordlg.$(OBJSUFF) \
163 colour.$(OBJSUFF) \
164 combobox.$(OBJSUFF) \
165 control.$(OBJSUFF) \
166 curico.$(OBJSUFF) \
167 cursor.$(OBJSUFF) \
168 data.$(OBJSUFF) \
169 dc.$(OBJSUFF) \
170 dcmemory.$(OBJSUFF) \
171 dcclient.$(OBJSUFF) \
172 dcprint.$(OBJSUFF) \
173 dcscreen.$(OBJSUFF) \
174 dde.$(OBJSUFF) \
175 dialog.$(OBJSUFF) \
176 dib.$(OBJSUFF) \
177 filedlg.$(OBJSUFF) \
178 font.$(OBJSUFF) \
179 fontdlg.$(OBJSUFF) \
180 frame.$(OBJSUFF) \
181 gaugemsw.$(OBJSUFF) \
182 gauge95.$(OBJSUFF) \
183 gdiobj.$(OBJSUFF) \
184 helpwin.$(OBJSUFF) \
185 icon.$(OBJSUFF) \
186 imaglist.$(OBJSUFF) \
187 joystick.$(OBJSUFF) \
188 listbox.$(OBJSUFF) \
189 listctrl.$(OBJSUFF) \
190 main.$(OBJSUFF) \
191 mdi.$(OBJSUFF) \
192 menu.$(OBJSUFF) \
193 menuitem.$(OBJSUFF) \
194 metafile.$(OBJSUFF) \
195 minifram.$(OBJSUFF) \
196 msgdlg.$(OBJSUFF) \
197 nativdlg.$(OBJSUFF) \
198 notebook.$(OBJSUFF) \
199 ownerdrw.$(OBJSUFF) \
200 palette.$(OBJSUFF) \
201 pen.$(OBJSUFF) \
202 penwin.$(OBJSUFF) \
203 printdlg.$(OBJSUFF) \
204 printwin.$(OBJSUFF) \
205 radiobox.$(OBJSUFF) \
206 radiobut.$(OBJSUFF) \
207 region.$(OBJSUFF) \
208 registry.$(OBJSUFF) \
209 regconf.$(OBJSUFF) \
210 scrolbar.$(OBJSUFF) \
211 settings.$(OBJSUFF) \
212 slidrmsw.$(OBJSUFF) \
213 slider95.$(OBJSUFF) \
214 spinbutt.$(OBJSUFF) \
215 statbmp.$(OBJSUFF) \
216 statbox.$(OBJSUFF) \
217 statbr95.$(OBJSUFF) \
218 stattext.$(OBJSUFF) \
219 tabctrl.$(OBJSUFF) \
220 taskbar.$(OBJSUFF) \
221 tbar95.$(OBJSUFF) \
222 tbarmsw.$(OBJSUFF) \
223 textctrl.$(OBJSUFF) \
224 thread.$(OBJSUFF) \
225 timer.$(OBJSUFF) \
1f112209 226 tooltip.$(OBJSUFF) \
d2f62134
JS
227 treectrl.$(OBJSUFF) \
228 utils.$(OBJSUFF) \
229 utilsexc.$(OBJSUFF) \
230 wave.$(OBJSUFF) \
231 window.$(OBJSUFF) \
232 xpmhand.$(OBJSUFF)
233
234# Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
235# dirdlg.$(OBJSUFF) \
236
237# OLE not supported yet by GnuWin32
238# $(OLEDIR)/droptgt.$(OBJSUFF) \
239# $(OLEDIR)/dropsrc.$(OBJSUFF) \
240# $(OLEDIR)/dataobj.$(OBJSUFF) \
241# $(OLEDIR)/oleutils.$(OBJSUFF) \
242# $(OLEDIR)/uuid.$(OBJSUFF) \
243# $(OLEDIR)/automtn.$(OBJSUFF)
244
245XPMOBJECTS = $(XPMDIR)/crbuffri.o\
246 $(XPMDIR)/crdatfri.o\
247 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
248 $(XPMDIR)/crifrdat.o\
249 $(XPMDIR)/data.o\
250 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
251 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
252 $(XPMDIR)/rdftoi.o\
253 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
254 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
255 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
256
257OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
258
259all: $(OBJECTS) $(WXLIB)
260
261base:
262 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
263 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
264
265
266$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
267 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
268 $(RANLIB) $@
269
270#$(MSWOBJDIR):
271# mkdir $(OBJDIR)
272
273#$(COMMOBJDIR):
274# mkdir $(COMMDIR)/$(OBJDIR)
275
276#$(GENERICOBJDIR):
277# mkdir $(GENDIR)/$(OBJDIR)
278
279$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
280
281$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
282 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
283
284# Replace lex with flex if you run into compilation
285# problems with lex_yy.c. See also note about LEX_SCANNER
286# above.
287$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
a91b47e8
JS
288 $(LEX) $(COMMDIR)/lexer.l
289 mv lex.yy.c $(COMMDIR)/lex_yy.c
d2f62134 290
750b78ba 291# The following may be required for FLEX
d2f62134
JS
292# $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
293
294# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
295# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
296# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
297# rm -f lex.yy.c
298
299# Replace yacc with bison if you run into compilation
300# problems with y_tab.c.
301
302#$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
303# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
304
305# If you use e.g. gcc on Unix, uncomment these lines
306# and comment out the above.
307
308$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
309 $(YACC) $(COMMDIR)/parser.y
310 mv y.tab.c $(COMMDIR)/y_tab.c
311
312# Extra targets
313rcparser:
314 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
315 cd $(WXDIR)/src/msw
316
317clean_rcp:
318 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
319 cd $(WXDIR)/src/msw
320
321clean:
322 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
323
324cleanall: clean
325