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