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