]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Soem corrections for SetSize changes
[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) \
2bda0e17 92 $(COMMDIR)/intl.$(OBJSUFF) \
dbda9e86 93 $(COMMDIR)/ipcbase.$(OBJSUFF) \
2bda0e17
KB
94 $(COMMDIR)/layout.$(OBJSUFF) \
95 $(COMMDIR)/log.$(OBJSUFF) \
96 $(COMMDIR)/memory.$(OBJSUFF) \
97 $(COMMDIR)/module.$(OBJSUFF) \
2432b92d 98 $(COMMDIR)/mimetype.$(OBJSUFF) \
2bda0e17
KB
99 $(COMMDIR)/object.$(OBJSUFF) \
100 $(COMMDIR)/odbc.$(OBJSUFF) \
6a6c0a8b 101 $(COMMDIR)/process.$(OBJSUFF) \
2bda0e17
KB
102 $(COMMDIR)/prntbase.$(OBJSUFF) \
103 $(COMMDIR)/resource.$(OBJSUFF) \
104 $(COMMDIR)/tbarbase.$(OBJSUFF) \
105 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
106 $(COMMDIR)/textfile.$(OBJSUFF) \
107 $(COMMDIR)/timercmn.$(OBJSUFF) \
108 $(COMMDIR)/utilscmn.$(OBJSUFF) \
109 $(COMMDIR)/validate.$(OBJSUFF) \
89c684ef 110 $(COMMDIR)/valgen.$(OBJSUFF) \
2bda0e17
KB
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
4fabb575
JS
130# NOTE: if the socket-related files fail with a syntax error in Sockets.h,
131# remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
132# Mingw32 may still have problems.
133# $(COMMDIR)/socket.$(OBJSUFF) \
134# $(COMMDIR)/sckaddr.$(OBJSUFF) \
135# $(COMMDIR)/sckfile.$(OBJSUFF) \
136# $(COMMDIR)/sckipc.$(OBJSUFF) \
137# $(COMMDIR)/sckstrm.$(OBJSUFF) \
138# $(COMMDIR)/protocol.$(OBJSUFF) \
139# $(COMMDIR)/http.$(OBJSUFF) \
140# $(COMMDIR)/ftp.$(OBJSUFF) \
141# $(COMMDIR)/url.$(OBJSUFF) \
27529614 142
2bda0e17 143MSWOBJS = \
57a7b7c1 144 accel.$(OBJSUFF) \
2bda0e17
KB
145 app.$(OBJSUFF) \
146 bitmap.$(OBJSUFF) \
147 bmpbuttn.$(OBJSUFF) \
148 brush.$(OBJSUFF) \
149 button.$(OBJSUFF) \
150 checkbox.$(OBJSUFF) \
151 checklst.$(OBJSUFF) \
152 choice.$(OBJSUFF) \
153 clipbrd.$(OBJSUFF) \
154 colordlg.$(OBJSUFF) \
155 colour.$(OBJSUFF) \
156 combobox.$(OBJSUFF) \
157 control.$(OBJSUFF) \
158 curico.$(OBJSUFF) \
159 cursor.$(OBJSUFF) \
160 data.$(OBJSUFF) \
161 dc.$(OBJSUFF) \
162 dcmemory.$(OBJSUFF) \
163 dcclient.$(OBJSUFF) \
164 dcprint.$(OBJSUFF) \
165 dcscreen.$(OBJSUFF) \
166 dde.$(OBJSUFF) \
167 dialog.$(OBJSUFF) \
168 dib.$(OBJSUFF) \
2bda0e17
KB
169 filedlg.$(OBJSUFF) \
170 font.$(OBJSUFF) \
171 fontdlg.$(OBJSUFF) \
172 frame.$(OBJSUFF) \
da87a1ca
JS
173 gaugemsw.$(OBJSUFF) \
174 gauge95.$(OBJSUFF) \
2bda0e17
KB
175 gdiobj.$(OBJSUFF) \
176 helpwin.$(OBJSUFF) \
177 icon.$(OBJSUFF) \
178 imaglist.$(OBJSUFF) \
179 joystick.$(OBJSUFF) \
180 listbox.$(OBJSUFF) \
181 listctrl.$(OBJSUFF) \
182 main.$(OBJSUFF) \
183 mdi.$(OBJSUFF) \
184 menu.$(OBJSUFF) \
185 menuitem.$(OBJSUFF) \
186 metafile.$(OBJSUFF) \
187 minifram.$(OBJSUFF) \
188 msgdlg.$(OBJSUFF) \
189 nativdlg.$(OBJSUFF) \
8b9518ee 190 notebook.$(OBJSUFF) \
2bda0e17
KB
191 ownerdrw.$(OBJSUFF) \
192 palette.$(OBJSUFF) \
193 pen.$(OBJSUFF) \
194 penwin.$(OBJSUFF) \
195 printdlg.$(OBJSUFF) \
196 printwin.$(OBJSUFF) \
197 radiobox.$(OBJSUFF) \
198 radiobut.$(OBJSUFF) \
199 region.$(OBJSUFF) \
200 registry.$(OBJSUFF) \
6a23cbce 201 regconf.$(OBJSUFF) \
2bda0e17
KB
202 scrolbar.$(OBJSUFF) \
203 settings.$(OBJSUFF) \
da87a1ca
JS
204 slidrmsw.$(OBJSUFF) \
205 slider95.$(OBJSUFF) \
2bda0e17
KB
206 spinbutt.$(OBJSUFF) \
207 statbmp.$(OBJSUFF) \
208 statbox.$(OBJSUFF) \
209 statbr95.$(OBJSUFF) \
210 stattext.$(OBJSUFF) \
211 tabctrl.$(OBJSUFF) \
212 taskbar.$(OBJSUFF) \
213 tbar95.$(OBJSUFF) \
214 tbarmsw.$(OBJSUFF) \
215 textctrl.$(OBJSUFF) \
216 thread.$(OBJSUFF) \
217 timer.$(OBJSUFF) \
1f112209 218 tooltip.$(OBJSUFF) \
2bda0e17
KB
219 treectrl.$(OBJSUFF) \
220 utils.$(OBJSUFF) \
cf447356 221 utilsexc.$(OBJSUFF) \
2bda0e17 222 wave.$(OBJSUFF) \
2fd284a4
JS
223 window.$(OBJSUFF) \
224 xpmhand.$(OBJSUFF)
27529614 225
9ca2fe7e
JS
226# Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
227# dirdlg.$(OBJSUFF) \
228
74e34480 229# OLE not supported yet by GnuWin32
27529614
JS
230# $(OLEDIR)/droptgt.$(OBJSUFF) \
231# $(OLEDIR)/dropsrc.$(OBJSUFF) \
232# $(OLEDIR)/dataobj.$(OBJSUFF) \
233# $(OLEDIR)/oleutils.$(OBJSUFF) \
aa0b7e1e
JS
234# $(OLEDIR)/uuid.$(OBJSUFF) \
235# $(OLEDIR)/automtn.$(OBJSUFF)
2bda0e17 236
4fabb575
JS
237XPMOBJECTS = $(XPMDIR)/crbuffri.o\
238 $(XPMDIR)/crdatfri.o\
239 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
240 $(XPMDIR)/crifrdat.o\
241 $(XPMDIR)/data.o\
242 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
243 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
244 $(XPMDIR)/rdftoi.o\
245 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
246 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
247 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
74e34480 248
4fabb575 249OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
2bda0e17
KB
250
251all: $(OBJECTS) $(WXLIB)
252
253base:
254 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
255 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
256
257
258$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
259 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
260 $(RANLIB) $@
261
2bda0e17
KB
262$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
263
264$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
265 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
266
267# Replace lex with flex if you run into compilation
268# problems with lex_yy.c. See also note about LEX_SCANNER
269# above.
270$(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
8870c26e 271 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
06e38c8e 272
8870c26e
JS
273# Try one of these if the above line doesn't work.
274# Alternative syntax (1)
275# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
276# Alternative syntax (2)
277# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
2bda0e17
KB
278
279# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
280# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
281# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
282# rm -f lex.yy.c
283
284# Replace yacc with bison if you run into compilation
285# problems with y_tab.c.
57c208c5 286
2bda0e17
KB
287$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
288 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
289
57c208c5
JS
290# If you use e.g. gcc on Unix, uncomment these lines
291# and comment out the above.
2bda0e17 292
57c208c5
JS
293#$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
294# $(YACC) $(COMMDIR)/parser.y
295# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17
KB
296
297# Extra targets
2bda0e17
KB
298rcparser:
299 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
300 cd $(WXDIR)/src/msw
301
302clean_rcp:
303 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
304 cd $(WXDIR)/src/msw
305
2bda0e17
KB
306clean:
307 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
308
309cleanall: clean
310