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