]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Unicode fixes. Appears that this may be the last before wxMSW will link
[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
2bda0e17
KB
54DOCDIR = $(WXDIR)\docs
55
56GENERICOBJS= \
57 $(GENDIR)/choicdgg.$(OBJSUFF) \
4bf78aae 58 $(GENDIR)/dirdlgg.$(OBJSUFF) \
2bda0e17 59 $(GENDIR)/gridg.$(OBJSUFF) \
27529614 60 $(GENDIR)/laywin.$(OBJSUFF) \
2bda0e17 61 $(GENDIR)/panelg.$(OBJSUFF) \
e90babdf 62 $(GENDIR)/progdlgg.$(OBJSUFF) \
e3a43801
JS
63 $(GENDIR)/prop.$(OBJSUFF) \
64 $(GENDIR)/propform.$(OBJSUFF) \
65 $(GENDIR)/proplist.$(OBJSUFF) \
27529614 66 $(GENDIR)/sashwin.$(OBJSUFF) \
2bda0e17
KB
67 $(GENDIR)/scrolwin.$(OBJSUFF) \
68 $(GENDIR)/splitter.$(OBJSUFF) \
69 $(GENDIR)/statusbr.$(OBJSUFF) \
70 $(GENDIR)/tabg.$(OBJSUFF) \
71 $(GENDIR)/textdlgg.$(OBJSUFF)
72
ad5c34f3
JS
73# $(GENDIR)/colrdlgg.$(OBJSUFF) \
74# $(GENDIR)/fontdlgg.$(OBJSUFF) \
8baa0e61
JS
75# $(GENDIR)/prntdlgg.$(OBJSUFF) \
76# $(GENDIR)/printps.$(OBJSUFF) \
ad5c34f3 77# $(GENDIR)/msgdlgg.$(OBJSUFF) \
8baa0e61 78
2bda0e17
KB
79COMMONOBJS = \
80 $(COMMDIR)/config.$(OBJSUFF) \
81 $(COMMDIR)/cmndata.$(OBJSUFF) \
eebc8b5e 82 $(COMMDIR)/dcbase.$(OBJSUFF) \
2bda0e17 83 $(COMMDIR)/docview.$(OBJSUFF) \
2108f33a 84 $(COMMDIR)/docmdi.$(OBJSUFF) \
2bda0e17
KB
85 $(COMMDIR)/dynarray.$(OBJSUFF) \
86 $(COMMDIR)/event.$(OBJSUFF) \
87 $(COMMDIR)/file.$(OBJSUFF) \
88 $(COMMDIR)/fileconf.$(OBJSUFF) \
89 $(COMMDIR)/filefn.$(OBJSUFF) \
3d8bd7d6 90 $(COMMDIR)/framecmn.$(OBJSUFF) \
2bda0e17
KB
91 $(COMMDIR)/gdicmn.$(OBJSUFF) \
92 $(COMMDIR)/helpbase.$(OBJSUFF) \
e3554471 93 $(COMMDIR)/image.$(OBJSUFF) \
ce4169a4 94 $(COMMDIR)/imagebmp.$(OBJSUFF) \
e9c4b1a2
JS
95 $(COMMDIR)/imagpng.$(OBJSUFF) \
96 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
2bda0e17 97 $(COMMDIR)/intl.$(OBJSUFF) \
dbda9e86 98 $(COMMDIR)/ipcbase.$(OBJSUFF) \
2bda0e17
KB
99 $(COMMDIR)/layout.$(OBJSUFF) \
100 $(COMMDIR)/log.$(OBJSUFF) \
101 $(COMMDIR)/memory.$(OBJSUFF) \
102 $(COMMDIR)/module.$(OBJSUFF) \
2432b92d 103 $(COMMDIR)/mimetype.$(OBJSUFF) \
2bda0e17
KB
104 $(COMMDIR)/object.$(OBJSUFF) \
105 $(COMMDIR)/odbc.$(OBJSUFF) \
6a6c0a8b 106 $(COMMDIR)/process.$(OBJSUFF) \
2bda0e17
KB
107 $(COMMDIR)/prntbase.$(OBJSUFF) \
108 $(COMMDIR)/resource.$(OBJSUFF) \
109 $(COMMDIR)/tbarbase.$(OBJSUFF) \
110 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
111 $(COMMDIR)/textfile.$(OBJSUFF) \
112 $(COMMDIR)/timercmn.$(OBJSUFF) \
113 $(COMMDIR)/utilscmn.$(OBJSUFF) \
114 $(COMMDIR)/validate.$(OBJSUFF) \
89c684ef 115 $(COMMDIR)/valgen.$(OBJSUFF) \
2bda0e17
KB
116 $(COMMDIR)/valtext.$(OBJSUFF) \
117 $(COMMDIR)/date.$(OBJSUFF) \
118 $(COMMDIR)/wxexpr.$(OBJSUFF) \
119 $(COMMDIR)/hash.$(OBJSUFF) \
120 $(COMMDIR)/list.$(OBJSUFF) \
341287bf 121 $(COMMDIR)/variant.$(OBJSUFF) \
7bcb11d3 122 $(COMMDIR)/paper.$(OBJSUFF) \
2bda0e17
KB
123 $(COMMDIR)/string.$(OBJSUFF) \
124 $(COMMDIR)/time.$(OBJSUFF) \
27529614 125 $(COMMDIR)/tokenzr.$(OBJSUFF) \
cf447356 126 $(COMMDIR)/y_tab.$(OBJSUFF) \
3d4c6a21 127 $(COMMDIR)/stream.$(OBJSUFF) \
25331334 128 $(COMMDIR)/wfstream.$(OBJSUFF) \
3d4c6a21 129 $(COMMDIR)/mstream.$(OBJSUFF) \
79c3e0e1 130 $(COMMDIR)/zstream.$(OBJSUFF) \
cf447356 131 $(COMMDIR)/datstrm.$(OBJSUFF) \
27529614 132 $(COMMDIR)/objstrm.$(OBJSUFF) \
3d8bd7d6 133 $(COMMDIR)/extended.$(OBJSUFF) \
c05cbb7f
OK
134 $(COMMDIR)/wincmn.$(OBJSUFF) \
135 $(COMMDIR)/wxchar.$(OBJSUFF)
2bda0e17 136
4fabb575
JS
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) \
27529614 149
2bda0e17 150MSWOBJS = \
57a7b7c1 151 accel.$(OBJSUFF) \
2bda0e17
KB
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) \
2bda0e17
KB
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) \
2bda0e17
KB
177 filedlg.$(OBJSUFF) \
178 font.$(OBJSUFF) \
179 fontdlg.$(OBJSUFF) \
180 frame.$(OBJSUFF) \
da87a1ca
JS
181 gaugemsw.$(OBJSUFF) \
182 gauge95.$(OBJSUFF) \
2bda0e17
KB
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) \
8b9518ee 198 notebook.$(OBJSUFF) \
2bda0e17
KB
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) \
6a23cbce 209 regconf.$(OBJSUFF) \
2bda0e17
KB
210 scrolbar.$(OBJSUFF) \
211 settings.$(OBJSUFF) \
da87a1ca
JS
212 slidrmsw.$(OBJSUFF) \
213 slider95.$(OBJSUFF) \
2bda0e17
KB
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) \
2bda0e17
KB
227 treectrl.$(OBJSUFF) \
228 utils.$(OBJSUFF) \
cf447356 229 utilsexc.$(OBJSUFF) \
2bda0e17 230 wave.$(OBJSUFF) \
2fd284a4
JS
231 window.$(OBJSUFF) \
232 xpmhand.$(OBJSUFF)
27529614 233
9ca2fe7e
JS
234# Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
235# dirdlg.$(OBJSUFF) \
236
74e34480 237# OLE not supported yet by GnuWin32
27529614
JS
238# $(OLEDIR)/droptgt.$(OBJSUFF) \
239# $(OLEDIR)/dropsrc.$(OBJSUFF) \
240# $(OLEDIR)/dataobj.$(OBJSUFF) \
241# $(OLEDIR)/oleutils.$(OBJSUFF) \
aa0b7e1e
JS
242# $(OLEDIR)/uuid.$(OBJSUFF) \
243# $(OLEDIR)/automtn.$(OBJSUFF)
2bda0e17 244
4fabb575
JS
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
74e34480 256
4fabb575 257OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
2bda0e17
KB
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
2bda0e17
KB
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
8870c26e 279 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
06e38c8e 280
8870c26e
JS
281# Try one of these if the above line doesn't work.
282# Alternative syntax (1)
283# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
284# Alternative syntax (2)
285# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
2bda0e17
KB
286
287# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
288# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
289# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
290# rm -f lex.yy.c
291
292# Replace yacc with bison if you run into compilation
293# problems with y_tab.c.
57c208c5 294
2bda0e17
KB
295$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
296 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
297
57c208c5
JS
298# If you use e.g. gcc on Unix, uncomment these lines
299# and comment out the above.
2bda0e17 300
57c208c5
JS
301#$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
302# $(YACC) $(COMMDIR)/parser.y
303# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17
KB
304
305# Extra targets
2bda0e17
KB
306rcparser:
307 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
308 cd $(WXDIR)/src/msw
309
310clean_rcp:
311 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
312 cd $(WXDIR)/src/msw
313
2bda0e17
KB
314clean:
315 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
316
317cleanall: clean
318