]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Changed the "delete win" to the more proper "win->Destroy()" in
[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
32# image: GIF, BMP image reading
33# USE_IMAGE_LOADING_IN_X should be 1
34# wxstring: string class
35# USE_GNU_WXSTRING should be 1
36#
37# Unfortunately, 'ar' doesn't like combining objects and libraries,
38# so we must identify all the objects from the subordinate libraries. Yuck!
39XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
40XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\
41 $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\
42 $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\
43 $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\
44 $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF)
45
46# Subordinate library possibilities
47
48EXTRAOBJS=
49
50GENDIR=../generic
51COMMDIR=../common
4fabb575 52XPMDIR=../xpm
2bda0e17
KB
53OLEDIR=ole
54MSWDIR=.
55
56GENERICOBJDIR=../generic/$(OBJDIR)
57COMMOBJDIR=../common/$(OBJDIR)
58OLEOBJDIR=ole/$(OBJDIR)
59MSWDIR=$(OBJDIR)
60
61DOCDIR = $(WXDIR)\docs
62
63GENERICOBJS= \
64 $(GENDIR)/choicdgg.$(OBJSUFF) \
65 $(GENDIR)/colrdlgg.$(OBJSUFF) \
66 $(GENDIR)/fontdlgg.$(OBJSUFF) \
67 $(GENDIR)/gridg.$(OBJSUFF) \
27529614 68 $(GENDIR)/laywin.$(OBJSUFF) \
2bda0e17
KB
69 $(GENDIR)/msgdlgg.$(OBJSUFF) \
70 $(GENDIR)/panelg.$(OBJSUFF) \
27529614 71 $(GENDIR)/sashwin.$(OBJSUFF) \
2bda0e17
KB
72 $(GENDIR)/scrolwin.$(OBJSUFF) \
73 $(GENDIR)/splitter.$(OBJSUFF) \
74 $(GENDIR)/statusbr.$(OBJSUFF) \
75 $(GENDIR)/tabg.$(OBJSUFF) \
76 $(GENDIR)/textdlgg.$(OBJSUFF)
77
8baa0e61
JS
78# $(GENDIR)/prntdlgg.$(OBJSUFF) \
79# $(GENDIR)/printps.$(OBJSUFF) \
80
2bda0e17
KB
81COMMONOBJS = \
82 $(COMMDIR)/config.$(OBJSUFF) \
83 $(COMMDIR)/cmndata.$(OBJSUFF) \
84 $(COMMDIR)/docview.$(OBJSUFF) \
2108f33a 85 $(COMMDIR)/docmdi.$(OBJSUFF) \
2bda0e17
KB
86 $(COMMDIR)/dynarray.$(OBJSUFF) \
87 $(COMMDIR)/event.$(OBJSUFF) \
88 $(COMMDIR)/file.$(OBJSUFF) \
89 $(COMMDIR)/fileconf.$(OBJSUFF) \
90 $(COMMDIR)/filefn.$(OBJSUFF) \
3d8bd7d6 91 $(COMMDIR)/framecmn.$(OBJSUFF) \
2bda0e17
KB
92 $(COMMDIR)/gdicmn.$(OBJSUFF) \
93 $(COMMDIR)/helpbase.$(OBJSUFF) \
e3554471 94 $(COMMDIR)/image.$(OBJSUFF) \
2bda0e17
KB
95 $(COMMDIR)/intl.$(OBJSUFF) \
96 $(COMMDIR)/layout.$(OBJSUFF) \
97 $(COMMDIR)/log.$(OBJSUFF) \
98 $(COMMDIR)/memory.$(OBJSUFF) \
99 $(COMMDIR)/module.$(OBJSUFF) \
100 $(COMMDIR)/object.$(OBJSUFF) \
101 $(COMMDIR)/odbc.$(OBJSUFF) \
6a6c0a8b 102 $(COMMDIR)/process.$(OBJSUFF) \
2bda0e17
KB
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) \
341287bf 116 $(COMMDIR)/variant.$(OBJSUFF) \
2bda0e17
KB
117 $(COMMDIR)/string.$(OBJSUFF) \
118 $(COMMDIR)/time.$(OBJSUFF) \
27529614 119 $(COMMDIR)/tokenzr.$(OBJSUFF) \
cf447356 120 $(COMMDIR)/y_tab.$(OBJSUFF) \
3d4c6a21 121 $(COMMDIR)/stream.$(OBJSUFF) \
25331334 122 $(COMMDIR)/wfstream.$(OBJSUFF) \
3d4c6a21 123 $(COMMDIR)/mstream.$(OBJSUFF) \
79c3e0e1 124 $(COMMDIR)/zstream.$(OBJSUFF) \
cf447356 125 $(COMMDIR)/datstrm.$(OBJSUFF) \
27529614 126 $(COMMDIR)/objstrm.$(OBJSUFF) \
3d8bd7d6
JS
127 $(COMMDIR)/extended.$(OBJSUFF) \
128 $(COMMDIR)/wincmn.$(OBJSUFF)
2bda0e17 129
8baa0e61 130# $(COMMDIR)/postscrp.$(OBJSUFF) \
6b037754 131
4fabb575
JS
132# NOTE: if the socket-related files fail with a syntax error in Sockets.h,
133# remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
134# Mingw32 may still have problems.
135# $(COMMDIR)/socket.$(OBJSUFF) \
136# $(COMMDIR)/sckaddr.$(OBJSUFF) \
137# $(COMMDIR)/sckfile.$(OBJSUFF) \
138# $(COMMDIR)/sckipc.$(OBJSUFF) \
139# $(COMMDIR)/sckstrm.$(OBJSUFF) \
140# $(COMMDIR)/protocol.$(OBJSUFF) \
141# $(COMMDIR)/http.$(OBJSUFF) \
142# $(COMMDIR)/ftp.$(OBJSUFF) \
143# $(COMMDIR)/url.$(OBJSUFF) \
27529614 144
2bda0e17 145MSWOBJS = \
57a7b7c1 146 accel.$(OBJSUFF) \
2bda0e17
KB
147 app.$(OBJSUFF) \
148 bitmap.$(OBJSUFF) \
149 bmpbuttn.$(OBJSUFF) \
150 brush.$(OBJSUFF) \
151 button.$(OBJSUFF) \
152 checkbox.$(OBJSUFF) \
153 checklst.$(OBJSUFF) \
154 choice.$(OBJSUFF) \
155 clipbrd.$(OBJSUFF) \
156 colordlg.$(OBJSUFF) \
157 colour.$(OBJSUFF) \
158 combobox.$(OBJSUFF) \
159 control.$(OBJSUFF) \
160 curico.$(OBJSUFF) \
161 cursor.$(OBJSUFF) \
162 data.$(OBJSUFF) \
163 dc.$(OBJSUFF) \
164 dcmemory.$(OBJSUFF) \
165 dcclient.$(OBJSUFF) \
166 dcprint.$(OBJSUFF) \
167 dcscreen.$(OBJSUFF) \
168 dde.$(OBJSUFF) \
169 dialog.$(OBJSUFF) \
170 dib.$(OBJSUFF) \
171 dirdlg.$(OBJSUFF) \
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) \
221 treectrl.$(OBJSUFF) \
222 utils.$(OBJSUFF) \
cf447356 223 utilsexc.$(OBJSUFF) \
2bda0e17 224 wave.$(OBJSUFF) \
27529614
JS
225 window.$(OBJSUFF)
226
74e34480 227# OLE not supported yet by GnuWin32
27529614
JS
228# $(OLEDIR)/droptgt.$(OBJSUFF) \
229# $(OLEDIR)/dropsrc.$(OBJSUFF) \
230# $(OLEDIR)/dataobj.$(OBJSUFF) \
231# $(OLEDIR)/oleutils.$(OBJSUFF) \
aa0b7e1e
JS
232# $(OLEDIR)/uuid.$(OBJSUFF) \
233# $(OLEDIR)/automtn.$(OBJSUFF)
2bda0e17 234
4fabb575
JS
235XPMOBJECTS = $(XPMDIR)/crbuffri.o\
236 $(XPMDIR)/crdatfri.o\
237 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
238 $(XPMDIR)/crifrdat.o\
239 $(XPMDIR)/data.o\
240 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
241 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
242 $(XPMDIR)/rdftoi.o\
243 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
244 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
245 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
74e34480 246
4fabb575 247OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
2bda0e17
KB
248
249all: $(OBJECTS) $(WXLIB)
250
251base:
252 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
253 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
254
255
256$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
257 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
258 $(RANLIB) $@
259
260#$(MSWOBJDIR):
261# mkdir $(OBJDIR)
262
263#$(COMMOBJDIR):
264# mkdir $(COMMDIR)/$(OBJDIR)
265
266#$(GENERICOBJDIR):
267# mkdir $(GENDIR)/$(OBJDIR)
268
269$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
270
271$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
272 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
273
274# Replace lex with flex if you run into compilation
275# problems with lex_yy.c. See also note about LEX_SCANNER
276# above.
277$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
06e38c8e
JS
278 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
279
280# The following may be required for some versions of LEX/FLEX
281# $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
2bda0e17
KB
282
283# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
284# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
285# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
286# rm -f lex.yy.c
287
288# Replace yacc with bison if you run into compilation
289# problems with y_tab.c.
290$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
291 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
292
293# mv y.tab.c $(COMMDIR)/y_tab.c
294
295
296# Extra targets
2bda0e17
KB
297rcparser:
298 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
299 cd $(WXDIR)/src/msw
300
301clean_rcp:
302 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
303 cd $(WXDIR)/src/msw
304
2bda0e17
KB
305clean:
306 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
307
308cleanall: clean
309