]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Fixed some bugs in new code (CanPaste, GetSelection)
[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) \
e3a43801
JS
62 $(GENDIR)/prop.$(OBJSUFF) \
63 $(GENDIR)/propform.$(OBJSUFF) \
64 $(GENDIR)/proplist.$(OBJSUFF) \
27529614 65 $(GENDIR)/sashwin.$(OBJSUFF) \
2bda0e17
KB
66 $(GENDIR)/scrolwin.$(OBJSUFF) \
67 $(GENDIR)/splitter.$(OBJSUFF) \
68 $(GENDIR)/statusbr.$(OBJSUFF) \
69 $(GENDIR)/tabg.$(OBJSUFF) \
70 $(GENDIR)/textdlgg.$(OBJSUFF)
71
ad5c34f3
JS
72# $(GENDIR)/colrdlgg.$(OBJSUFF) \
73# $(GENDIR)/fontdlgg.$(OBJSUFF) \
8baa0e61
JS
74# $(GENDIR)/prntdlgg.$(OBJSUFF) \
75# $(GENDIR)/printps.$(OBJSUFF) \
ad5c34f3 76# $(GENDIR)/msgdlgg.$(OBJSUFF) \
8baa0e61 77
2bda0e17
KB
78COMMONOBJS = \
79 $(COMMDIR)/config.$(OBJSUFF) \
80 $(COMMDIR)/cmndata.$(OBJSUFF) \
81 $(COMMDIR)/docview.$(OBJSUFF) \
2108f33a 82 $(COMMDIR)/docmdi.$(OBJSUFF) \
2bda0e17
KB
83 $(COMMDIR)/dynarray.$(OBJSUFF) \
84 $(COMMDIR)/event.$(OBJSUFF) \
85 $(COMMDIR)/file.$(OBJSUFF) \
86 $(COMMDIR)/fileconf.$(OBJSUFF) \
87 $(COMMDIR)/filefn.$(OBJSUFF) \
3d8bd7d6 88 $(COMMDIR)/framecmn.$(OBJSUFF) \
2bda0e17
KB
89 $(COMMDIR)/gdicmn.$(OBJSUFF) \
90 $(COMMDIR)/helpbase.$(OBJSUFF) \
e3554471 91 $(COMMDIR)/image.$(OBJSUFF) \
e9c4b1a2
JS
92 $(COMMDIR)/imagpng.$(OBJSUFF) \
93 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
2bda0e17 94 $(COMMDIR)/intl.$(OBJSUFF) \
dbda9e86 95 $(COMMDIR)/ipcbase.$(OBJSUFF) \
2bda0e17
KB
96 $(COMMDIR)/layout.$(OBJSUFF) \
97 $(COMMDIR)/log.$(OBJSUFF) \
98 $(COMMDIR)/memory.$(OBJSUFF) \
99 $(COMMDIR)/module.$(OBJSUFF) \
2432b92d 100 $(COMMDIR)/mimetype.$(OBJSUFF) \
2bda0e17
KB
101 $(COMMDIR)/object.$(OBJSUFF) \
102 $(COMMDIR)/odbc.$(OBJSUFF) \
6a6c0a8b 103 $(COMMDIR)/process.$(OBJSUFF) \
2bda0e17
KB
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) \
2bda0e17
KB
113 $(COMMDIR)/valtext.$(OBJSUFF) \
114 $(COMMDIR)/date.$(OBJSUFF) \
115 $(COMMDIR)/wxexpr.$(OBJSUFF) \
116 $(COMMDIR)/hash.$(OBJSUFF) \
117 $(COMMDIR)/list.$(OBJSUFF) \
341287bf 118 $(COMMDIR)/variant.$(OBJSUFF) \
7bcb11d3 119 $(COMMDIR)/paper.$(OBJSUFF) \
2bda0e17
KB
120 $(COMMDIR)/string.$(OBJSUFF) \
121 $(COMMDIR)/time.$(OBJSUFF) \
27529614 122 $(COMMDIR)/tokenzr.$(OBJSUFF) \
cf447356 123 $(COMMDIR)/y_tab.$(OBJSUFF) \
3d4c6a21 124 $(COMMDIR)/stream.$(OBJSUFF) \
25331334 125 $(COMMDIR)/wfstream.$(OBJSUFF) \
3d4c6a21 126 $(COMMDIR)/mstream.$(OBJSUFF) \
79c3e0e1 127 $(COMMDIR)/zstream.$(OBJSUFF) \
cf447356 128 $(COMMDIR)/datstrm.$(OBJSUFF) \
27529614 129 $(COMMDIR)/objstrm.$(OBJSUFF) \
3d8bd7d6
JS
130 $(COMMDIR)/extended.$(OBJSUFF) \
131 $(COMMDIR)/wincmn.$(OBJSUFF)
2bda0e17 132
4fabb575
JS
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) \
27529614 145
2bda0e17 146MSWOBJS = \
57a7b7c1 147 accel.$(OBJSUFF) \
2bda0e17
KB
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) \
2bda0e17
KB
172 filedlg.$(OBJSUFF) \
173 font.$(OBJSUFF) \
174 fontdlg.$(OBJSUFF) \
175 frame.$(OBJSUFF) \
da87a1ca
JS
176 gaugemsw.$(OBJSUFF) \
177 gauge95.$(OBJSUFF) \
2bda0e17
KB
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) \
8b9518ee 193 notebook.$(OBJSUFF) \
2bda0e17
KB
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) \
6a23cbce 204 regconf.$(OBJSUFF) \
2bda0e17
KB
205 scrolbar.$(OBJSUFF) \
206 settings.$(OBJSUFF) \
da87a1ca
JS
207 slidrmsw.$(OBJSUFF) \
208 slider95.$(OBJSUFF) \
2bda0e17
KB
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) \
2bda0e17
KB
222 treectrl.$(OBJSUFF) \
223 utils.$(OBJSUFF) \
cf447356 224 utilsexc.$(OBJSUFF) \
2bda0e17 225 wave.$(OBJSUFF) \
2fd284a4
JS
226 window.$(OBJSUFF) \
227 xpmhand.$(OBJSUFF)
27529614 228
9ca2fe7e
JS
229# Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
230# dirdlg.$(OBJSUFF) \
231
74e34480 232# OLE not supported yet by GnuWin32
27529614
JS
233# $(OLEDIR)/droptgt.$(OBJSUFF) \
234# $(OLEDIR)/dropsrc.$(OBJSUFF) \
235# $(OLEDIR)/dataobj.$(OBJSUFF) \
236# $(OLEDIR)/oleutils.$(OBJSUFF) \
aa0b7e1e
JS
237# $(OLEDIR)/uuid.$(OBJSUFF) \
238# $(OLEDIR)/automtn.$(OBJSUFF)
2bda0e17 239
4fabb575
JS
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
74e34480 251
4fabb575 252OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
2bda0e17
KB
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
2bda0e17
KB
265$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
266
267$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
268 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
269
270# Replace lex with flex if you run into compilation
271# problems with lex_yy.c. See also note about LEX_SCANNER
272# above.
273$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
8870c26e 274 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
06e38c8e 275
8870c26e
JS
276# Try one of these if the above line doesn't work.
277# Alternative syntax (1)
278# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
279# Alternative syntax (2)
280# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
2bda0e17
KB
281
282# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
283# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
284# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
285# rm -f lex.yy.c
286
287# Replace yacc with bison if you run into compilation
288# problems with y_tab.c.
57c208c5 289
2bda0e17
KB
290$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
291 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
292
57c208c5
JS
293# If you use e.g. gcc on Unix, uncomment these lines
294# and comment out the above.
2bda0e17 295
57c208c5
JS
296#$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
297# $(YACC) $(COMMDIR)/parser.y
298# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17
KB
299
300# Extra targets
2bda0e17
KB
301rcparser:
302 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
303 cd $(WXDIR)/src/msw
304
305clean_rcp:
306 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
307 cd $(WXDIR)/src/msw
308
2bda0e17
KB
309clean:
310 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
311
312cleanall: clean
313