]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.twn
Fixed OnMenuHighlight, wxPrintData problems
[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) \
dbda9e86 95 $(COMMDIR)/ipcbase.$(OBJSUFF) \
d2f62134
JS
96 $(COMMDIR)/layout.$(OBJSUFF) \
97 $(COMMDIR)/log.$(OBJSUFF) \
98 $(COMMDIR)/memory.$(OBJSUFF) \
99 $(COMMDIR)/module.$(OBJSUFF) \
100 $(COMMDIR)/mimetype.$(OBJSUFF) \
101 $(COMMDIR)/object.$(OBJSUFF) \
102 $(COMMDIR)/odbc.$(OBJSUFF) \
103 $(COMMDIR)/process.$(OBJSUFF) \
104 $(COMMDIR)/prntbase.$(OBJSUFF) \
105 $(COMMDIR)/resource.$(OBJSUFF) \
106 $(COMMDIR)/tbarbase.$(OBJSUFF) \
107 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
108 $(COMMDIR)/textfile.$(OBJSUFF) \
109 $(COMMDIR)/timercmn.$(OBJSUFF) \
110 $(COMMDIR)/utilscmn.$(OBJSUFF) \
111 $(COMMDIR)/validate.$(OBJSUFF) \
89c684ef 112 $(COMMDIR)/valgen.$(OBJSUFF) \
d2f62134
JS
113 $(COMMDIR)/valtext.$(OBJSUFF) \
114 $(COMMDIR)/date.$(OBJSUFF) \
115 $(COMMDIR)/wxexpr.$(OBJSUFF) \
116 $(COMMDIR)/hash.$(OBJSUFF) \
117 $(COMMDIR)/list.$(OBJSUFF) \
118 $(COMMDIR)/variant.$(OBJSUFF) \
7bcb11d3 119 $(COMMDIR)/paper.$(OBJSUFF) \
d2f62134
JS
120 $(COMMDIR)/string.$(OBJSUFF) \
121 $(COMMDIR)/time.$(OBJSUFF) \
122 $(COMMDIR)/tokenzr.$(OBJSUFF) \
123 $(COMMDIR)/y_tab.$(OBJSUFF) \
124 $(COMMDIR)/stream.$(OBJSUFF) \
125 $(COMMDIR)/wfstream.$(OBJSUFF) \
126 $(COMMDIR)/mstream.$(OBJSUFF) \
127 $(COMMDIR)/zstream.$(OBJSUFF) \
128 $(COMMDIR)/datstrm.$(OBJSUFF) \
129 $(COMMDIR)/objstrm.$(OBJSUFF) \
130 $(COMMDIR)/extended.$(OBJSUFF) \
131 $(COMMDIR)/wincmn.$(OBJSUFF)
132
133# NOTE: if the socket-related files fail with a syntax error in Sockets.h,
134# remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
135# Mingw32 may still have problems.
136# $(COMMDIR)/socket.$(OBJSUFF) \
137# $(COMMDIR)/sckaddr.$(OBJSUFF) \
138# $(COMMDIR)/sckfile.$(OBJSUFF) \
139# $(COMMDIR)/sckipc.$(OBJSUFF) \
140# $(COMMDIR)/sckstrm.$(OBJSUFF) \
141# $(COMMDIR)/protocol.$(OBJSUFF) \
142# $(COMMDIR)/http.$(OBJSUFF) \
143# $(COMMDIR)/ftp.$(OBJSUFF) \
144# $(COMMDIR)/url.$(OBJSUFF) \
145
146MSWOBJS = \
147 accel.$(OBJSUFF) \
148 app.$(OBJSUFF) \
149 bitmap.$(OBJSUFF) \
150 bmpbuttn.$(OBJSUFF) \
151 brush.$(OBJSUFF) \
152 button.$(OBJSUFF) \
153 checkbox.$(OBJSUFF) \
154 checklst.$(OBJSUFF) \
155 choice.$(OBJSUFF) \
156 clipbrd.$(OBJSUFF) \
157 colordlg.$(OBJSUFF) \
158 colour.$(OBJSUFF) \
159 combobox.$(OBJSUFF) \
160 control.$(OBJSUFF) \
161 curico.$(OBJSUFF) \
162 cursor.$(OBJSUFF) \
163 data.$(OBJSUFF) \
164 dc.$(OBJSUFF) \
165 dcmemory.$(OBJSUFF) \
166 dcclient.$(OBJSUFF) \
167 dcprint.$(OBJSUFF) \
168 dcscreen.$(OBJSUFF) \
169 dde.$(OBJSUFF) \
170 dialog.$(OBJSUFF) \
171 dib.$(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) \
1f112209 221 tooltip.$(OBJSUFF) \
d2f62134
JS
222 treectrl.$(OBJSUFF) \
223 utils.$(OBJSUFF) \
224 utilsexc.$(OBJSUFF) \
225 wave.$(OBJSUFF) \
226 window.$(OBJSUFF) \
227 xpmhand.$(OBJSUFF)
228
229# Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
230# dirdlg.$(OBJSUFF) \
231
232# OLE not supported yet by GnuWin32
233# $(OLEDIR)/droptgt.$(OBJSUFF) \
234# $(OLEDIR)/dropsrc.$(OBJSUFF) \
235# $(OLEDIR)/dataobj.$(OBJSUFF) \
236# $(OLEDIR)/oleutils.$(OBJSUFF) \
237# $(OLEDIR)/uuid.$(OBJSUFF) \
238# $(OLEDIR)/automtn.$(OBJSUFF)
239
240XPMOBJECTS = $(XPMDIR)/crbuffri.o\
241 $(XPMDIR)/crdatfri.o\
242 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
243 $(XPMDIR)/crifrdat.o\
244 $(XPMDIR)/data.o\
245 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
246 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
247 $(XPMDIR)/rdftoi.o\
248 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
249 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
250 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
251
252OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
253
254all: $(OBJECTS) $(WXLIB)
255
256base:
257 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
258 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
259
260
261$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
262 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
263 $(RANLIB) $@
264
265#$(MSWOBJDIR):
266# mkdir $(OBJDIR)
267
268#$(COMMOBJDIR):
269# mkdir $(COMMDIR)/$(OBJDIR)
270
271#$(GENERICOBJDIR):
272# mkdir $(GENDIR)/$(OBJDIR)
273
274$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
275
276$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
277 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
278
279# Replace lex with flex if you run into compilation
280# problems with lex_yy.c. See also note about LEX_SCANNER
281# above.
282$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
a91b47e8
JS
283 $(LEX) $(COMMDIR)/lexer.l
284 mv lex.yy.c $(COMMDIR)/lex_yy.c
d2f62134 285
750b78ba 286# The following may be required for FLEX
d2f62134
JS
287# $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
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.
296
297#$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
298# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
299
300# If you use e.g. gcc on Unix, uncomment these lines
301# and comment out the above.
302
303$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
304 $(YACC) $(COMMDIR)/parser.y
305 mv y.tab.c $(COMMDIR)/y_tab.c
306
307# Extra targets
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
316clean:
317 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
318
319cleanall: clean
320