]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
compilation fixes
[wxWidgets.git] / src / msw / makefile.g95
CommitLineData
8773bc76 1# This file was automatically generated by tmake at 01:55, 2001/06/09
a1b82138
VZ
2# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
3
2bda0e17 4#
c45a644e
RR
5# File: makefile.g95
6# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
a1b82138 7# Created: 1993
c45a644e
RR
8# Updated: 1999
9# Copyright:(c) 1993, AIAI, University of Edinburgh,
10# Copyright:(c) 1999, Vadim Zeitlin
11# Copyright:(c) 1999, Robert Roebling
2bda0e17
KB
12#
13# Makefile for libwx.a
14
15# Replace this with your own path if necessary
16WXDIR = ../..
17
c45a644e 18# All common compiler flags and options are now in
2bda0e17
KB
19# this central makefile.
20include $(WXDIR)/src/makeg95.env
21
8535af00
VZ
22# DLL Name, if building wxWindows as a DLL.
23ifdef WXMAKINGDLL
24WXDLL = $(WXDIR)/lib/wx$(WXVERSION).dll
25WXDEF = wx$(WXVERSION).def
26DLL_EXTRA_LIBS = $(WXDIR)/lib/libzlib.a \
27 $(WXDIR)/lib/libpng.a $(WXDIR)/lib/libjpeg.a \
0537351f 28 $(WXDIR)/lib/libtiff.a
8535af00
VZ
29DLL_LDFLAGS = -L$(WXDIR)/lib
30DLL_LDLIBS = -mwindows -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
a3c8a7ad 31 -luuid -lrpcrt4 -lodbc32 -lwinmm -lopengl32 \
8535af00
VZ
32 -lwsock32 $(DLL_EXTRA_LIBS) \
33 -lstdc++
34endif
35
2bda0e17
KB
36# Subordinate library possibilities
37
38EXTRAOBJS=
39
c45a644e
RR
40GENDIR = $(WXDIR)/src/generic
41COMMDIR = $(WXDIR)/src/common
a3015c54 42HTMLDIR = $(WXDIR)/src/html
8535af00 43ZLIBDIR = $(WXDIR)/src/zlib
c45a644e
RR
44PNGDIR = $(WXDIR)/src/png
45JPEGDIR = $(WXDIR)/src/jpeg
8535af00 46TIFFDIR = $(WXDIR)/src/tiff
c45a644e
RR
47OLEDIR = $(WXDIR)/src/msw/ole
48MSWDIR = $(WXDIR)/src/msw
2bda0e17 49
01dba85a 50ZLIBLIB = $(WXDIR)/lib/libzlib.a
8535af00 51PNGLIB = $(WXDIR)/lib/libpng.a
01dba85a 52JPEGLIB = $(WXDIR)/lib/libjpeg.a
8535af00 53TIFFLIB = $(WXDIR)/lib/libtiff.a
01dba85a 54
8535af00 55DOCDIR = $(WXDIR)/docs
2bda0e17 56
154f22b3
JS
57# Only use the WIN32 wxDirDialog if we have a recent
58# version of Mingw32
59ifeq ($(MINGW32),1)
8535af00 60 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
154f22b3
JS
61 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
62 else
63 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
64 endif
65else
66 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
67endif
68
c45a644e
RR
69GENERICOBJS = \
70 $(GENDIR)/busyinfo.$(OBJSUFF) \
9d9b7755 71 $(GENDIR)/calctrl.$(OBJSUFF) \
2662e49e 72 $(GENDIR)/choicdgg.$(OBJSUFF) \
484523cf 73 $(GENDIR)/dirctrlg.$(OBJSUFF) \
68be9f09 74 $(GENDIR)/dragimgg.$(OBJSUFF) \
f85afd4e 75 $(GENDIR)/grid.$(OBJSUFF) \
0537351f 76 $(GENDIR)/gridctrl.$(OBJSUFF) \
5fa399c9 77 $(GENDIR)/gridsel.$(OBJSUFF) \
2662e49e 78 $(GENDIR)/laywin.$(OBJSUFF) \
dd85fc6b 79 $(GENDIR)/logg.$(OBJSUFF) \
9be9b974 80 $(GENDIR)/numdlgg.$(OBJSUFF) \
2662e49e
RR
81 $(GENDIR)/panelg.$(OBJSUFF) \
82 $(GENDIR)/progdlgg.$(OBJSUFF) \
83 $(GENDIR)/prop.$(OBJSUFF) \
84 $(GENDIR)/propform.$(OBJSUFF) \
85 $(GENDIR)/proplist.$(OBJSUFF) \
86 $(GENDIR)/sashwin.$(OBJSUFF) \
87 $(GENDIR)/scrolwin.$(OBJSUFF) \
484523cf 88 $(GENDIR)/splash.$(OBJSUFF) \
2662e49e
RR
89 $(GENDIR)/splitter.$(OBJSUFF) \
90 $(GENDIR)/statusbr.$(OBJSUFF) \
bf84b0be 91 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
2662e49e 92 $(GENDIR)/textdlgg.$(OBJSUFF) \
e8ac7bf2 93 $(GENDIR)/tipdlg.$(OBJSUFF) \
01fa3fe7 94 $(GENDIR)/tipwin.$(OBJSUFF) \
2736b3ce 95 $(GENDIR)/treectlg.$(OBJSUFF) \
babc9758 96 $(GENDIR)/treelay.$(OBJSUFF) \
e8ac7bf2 97 $(GENDIR)/wizard.$(OBJSUFF)
8baa0e61 98
c45a644e 99COMMONOBJS = \
a1b82138 100 $(COMMDIR)/y_tab.$(OBJSUFF) \
72cdf4c9 101 $(COMMDIR)/appcmn.$(OBJSUFF) \
8d99be5f 102 $(COMMDIR)/choiccmn.$(OBJSUFF) \
08794f69 103 $(COMMDIR)/clipcmn.$(OBJSUFF) \
2a36259f 104 $(COMMDIR)/cmdline.$(OBJSUFF) \
2662e49e
RR
105 $(COMMDIR)/cmndata.$(OBJSUFF) \
106 $(COMMDIR)/config.$(OBJSUFF) \
fb6261e9 107 $(COMMDIR)/cshelp.$(OBJSUFF) \
8d99be5f 108 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
6c8a980f 109 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
bf84b0be 110 $(COMMDIR)/datetime.$(OBJSUFF) \
2662e49e
RR
111 $(COMMDIR)/datstrm.$(OBJSUFF) \
112 $(COMMDIR)/db.$(OBJSUFF) \
4d2c67a9 113 $(COMMDIR)/dbgrid.$(OBJSUFF) \
2662e49e
RR
114 $(COMMDIR)/dbtable.$(OBJSUFF) \
115 $(COMMDIR)/dcbase.$(OBJSUFF) \
0537351f 116 $(COMMDIR)/dircmn.$(OBJSUFF) \
2662e49e 117 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
c692969f 118 $(COMMDIR)/dndcmn.$(OBJSUFF) \
c4933157 119 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
2662e49e
RR
120 $(COMMDIR)/docmdi.$(OBJSUFF) \
121 $(COMMDIR)/docview.$(OBJSUFF) \
122 $(COMMDIR)/dynarray.$(OBJSUFF) \
123 $(COMMDIR)/dynlib.$(OBJSUFF) \
484523cf 124 $(COMMDIR)/effects.$(OBJSUFF) \
15b83243 125 $(COMMDIR)/encconv.$(OBJSUFF) \
2662e49e 126 $(COMMDIR)/event.$(OBJSUFF) \
a1b82138 127 $(COMMDIR)/extended.$(OBJSUFF) \
2662e49e
RR
128 $(COMMDIR)/ffile.$(OBJSUFF) \
129 $(COMMDIR)/file.$(OBJSUFF) \
130 $(COMMDIR)/fileconf.$(OBJSUFF) \
131 $(COMMDIR)/filefn.$(OBJSUFF) \
3b94ab18 132 $(COMMDIR)/filename.$(OBJSUFF) \
2662e49e 133 $(COMMDIR)/filesys.$(OBJSUFF) \
0c5d3e1c 134 $(COMMDIR)/fontcmn.$(OBJSUFF) \
01dba85a 135 $(COMMDIR)/fontmap.$(OBJSUFF) \
2662e49e
RR
136 $(COMMDIR)/framecmn.$(OBJSUFF) \
137 $(COMMDIR)/fs_inet.$(OBJSUFF) \
c692969f 138 $(COMMDIR)/fs_mem.$(OBJSUFF) \
2662e49e
RR
139 $(COMMDIR)/fs_zip.$(OBJSUFF) \
140 $(COMMDIR)/ftp.$(OBJSUFF) \
141 $(COMMDIR)/gdicmn.$(OBJSUFF) \
c692969f 142 $(COMMDIR)/geometry.$(OBJSUFF) \
e8ac7bf2 143 $(COMMDIR)/gifdecod.$(OBJSUFF) \
2662e49e
RR
144 $(COMMDIR)/hash.$(OBJSUFF) \
145 $(COMMDIR)/helpbase.$(OBJSUFF) \
146 $(COMMDIR)/http.$(OBJSUFF) \
93ccaed8 147 $(COMMDIR)/imagall.$(OBJSUFF) \
2662e49e
RR
148 $(COMMDIR)/imagbmp.$(OBJSUFF) \
149 $(COMMDIR)/image.$(OBJSUFF) \
150 $(COMMDIR)/imaggif.$(OBJSUFF) \
151 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
dfdc56a3 152 $(COMMDIR)/imagpcx.$(OBJSUFF) \
2662e49e 153 $(COMMDIR)/imagpng.$(OBJSUFF) \
e8ac7bf2 154 $(COMMDIR)/imagpnm.$(OBJSUFF) \
e694c22c 155 $(COMMDIR)/imagtiff.$(OBJSUFF) \
31929f80 156 $(COMMDIR)/imagxpm.$(OBJSUFF) \
2662e49e
RR
157 $(COMMDIR)/intl.$(OBJSUFF) \
158 $(COMMDIR)/ipcbase.$(OBJSUFF) \
159 $(COMMDIR)/layout.$(OBJSUFF) \
2ee3ee1b 160 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
2662e49e
RR
161 $(COMMDIR)/list.$(OBJSUFF) \
162 $(COMMDIR)/log.$(OBJSUFF) \
bf84b0be 163 $(COMMDIR)/longlong.$(OBJSUFF) \
3b94ab18 164 $(COMMDIR)/matrix.$(OBJSUFF) \
2662e49e 165 $(COMMDIR)/memory.$(OBJSUFF) \
ad9bb75f 166 $(COMMDIR)/menucmn.$(OBJSUFF) \
5d541a03 167 $(COMMDIR)/mimecmn.$(OBJSUFF) \
2662e49e
RR
168 $(COMMDIR)/module.$(OBJSUFF) \
169 $(COMMDIR)/mstream.$(OBJSUFF) \
170 $(COMMDIR)/object.$(OBJSUFF) \
171 $(COMMDIR)/objstrm.$(OBJSUFF) \
172 $(COMMDIR)/paper.$(OBJSUFF) \
173 $(COMMDIR)/prntbase.$(OBJSUFF) \
174 $(COMMDIR)/process.$(OBJSUFF) \
175 $(COMMDIR)/protocol.$(OBJSUFF) \
484523cf 176 $(COMMDIR)/quantize.$(OBJSUFF) \
2662e49e
RR
177 $(COMMDIR)/resource.$(OBJSUFF) \
178 $(COMMDIR)/sckaddr.$(OBJSUFF) \
179 $(COMMDIR)/sckfile.$(OBJSUFF) \
2662e49e
RR
180 $(COMMDIR)/sckipc.$(OBJSUFF) \
181 $(COMMDIR)/sckstrm.$(OBJSUFF) \
ae8f5769 182 $(COMMDIR)/serbase.$(OBJSUFF) \
0ae2df30 183 $(COMMDIR)/sizer.$(OBJSUFF) \
2662e49e 184 $(COMMDIR)/socket.$(OBJSUFF) \
77671fd2 185 $(COMMDIR)/strconv.$(OBJSUFF) \
2662e49e
RR
186 $(COMMDIR)/stream.$(OBJSUFF) \
187 $(COMMDIR)/string.$(OBJSUFF) \
188 $(COMMDIR)/tbarbase.$(OBJSUFF) \
189 $(COMMDIR)/textcmn.$(OBJSUFF) \
190 $(COMMDIR)/textfile.$(OBJSUFF) \
2662e49e
RR
191 $(COMMDIR)/timercmn.$(OBJSUFF) \
192 $(COMMDIR)/tokenzr.$(OBJSUFF) \
484523cf 193 $(COMMDIR)/treebase.$(OBJSUFF) \
2662e49e
RR
194 $(COMMDIR)/txtstrm.$(OBJSUFF) \
195 $(COMMDIR)/unzip.$(OBJSUFF) \
196 $(COMMDIR)/url.$(OBJSUFF) \
197 $(COMMDIR)/utilscmn.$(OBJSUFF) \
198 $(COMMDIR)/valgen.$(OBJSUFF) \
199 $(COMMDIR)/validate.$(OBJSUFF) \
200 $(COMMDIR)/valtext.$(OBJSUFF) \
201 $(COMMDIR)/variant.$(OBJSUFF) \
202 $(COMMDIR)/wfstream.$(OBJSUFF) \
203 $(COMMDIR)/wincmn.$(OBJSUFF) \
204 $(COMMDIR)/wxchar.$(OBJSUFF) \
205 $(COMMDIR)/wxexpr.$(OBJSUFF) \
c97e7fa8 206 $(COMMDIR)/xpmdecod.$(OBJSUFF) \
77671fd2 207 $(COMMDIR)/zipstrm.$(OBJSUFF) \
2662e49e 208 $(COMMDIR)/zstream.$(OBJSUFF)
a1b82138 209
a3015c54 210HTMLOBJS = \
8ec2b484
HH
211 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
212 $(HTMLDIR)/helpdata.$(OBJSUFF) \
213 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
214 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
215 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
216 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
217 $(HTMLDIR)/htmltag.$(OBJSUFF) \
218 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 219 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 220 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
221 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
222 $(HTMLDIR)/m_hline.$(OBJSUFF) \
223 $(HTMLDIR)/m_image.$(OBJSUFF) \
224 $(HTMLDIR)/m_layout.$(OBJSUFF) \
225 $(HTMLDIR)/m_links.$(OBJSUFF) \
226 $(HTMLDIR)/m_list.$(OBJSUFF) \
fa146dd7 227 $(HTMLDIR)/m_meta.$(OBJSUFF) \
69941f05
VS
228 $(HTMLDIR)/m_pre.$(OBJSUFF) \
229 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 230 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 231
c45a644e 232MSWOBJS = \
a3015c54
RR
233 $(MSWDIR)/accel.$(OBJSUFF) \
234 $(MSWDIR)/app.$(OBJSUFF) \
235 $(MSWDIR)/bitmap.$(OBJSUFF) \
236 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
237 $(MSWDIR)/brush.$(OBJSUFF) \
238 $(MSWDIR)/button.$(OBJSUFF) \
239 $(MSWDIR)/caret.$(OBJSUFF) \
240 $(MSWDIR)/checkbox.$(OBJSUFF) \
241 $(MSWDIR)/checklst.$(OBJSUFF) \
242 $(MSWDIR)/choice.$(OBJSUFF) \
243 $(MSWDIR)/clipbrd.$(OBJSUFF) \
244 $(MSWDIR)/colordlg.$(OBJSUFF) \
245 $(MSWDIR)/colour.$(OBJSUFF) \
246 $(MSWDIR)/combobox.$(OBJSUFF) \
247 $(MSWDIR)/control.$(OBJSUFF) \
248 $(MSWDIR)/curico.$(OBJSUFF) \
249 $(MSWDIR)/cursor.$(OBJSUFF) \
250 $(MSWDIR)/data.$(OBJSUFF) \
251 $(MSWDIR)/dc.$(OBJSUFF) \
252 $(MSWDIR)/dcclient.$(OBJSUFF) \
253 $(MSWDIR)/dcmemory.$(OBJSUFF) \
254 $(MSWDIR)/dcprint.$(OBJSUFF) \
255 $(MSWDIR)/dcscreen.$(OBJSUFF) \
256 $(MSWDIR)/dde.$(OBJSUFF) \
257 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 258 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54
RR
259 $(MSWDIR)/dib.$(OBJSUFF) \
260 $(MSWDIR)/dibutils.$(OBJSUFF) \
e694c22c 261 $(MSWDIR)/dir.$(OBJSUFF) \
a3015c54 262 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 263 $(MSWDIR)/enhmeta.$(OBJSUFF) \
a3015c54
RR
264 $(MSWDIR)/filedlg.$(OBJSUFF) \
265 $(MSWDIR)/font.$(OBJSUFF) \
266 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
267 $(MSWDIR)/fontenum.$(OBJSUFF) \
268 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
269 $(MSWDIR)/frame.$(OBJSUFF) \
270 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 271 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 272 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8b089c5e 273 $(MSWDIR)/glcanvas.$(OBJSUFF) \
8ec2b484 274 $(MSWDIR)/gsocket.$(OBJSUFF) \
1c282a3a 275 $(MSWDIR)/gsockmsw.$(OBJSUFF) \
f6bcfd97 276 $(MSWDIR)/helpchm.$(OBJSUFF) \
a3015c54
RR
277 $(MSWDIR)/helpwin.$(OBJSUFF) \
278 $(MSWDIR)/icon.$(OBJSUFF) \
279 $(MSWDIR)/imaglist.$(OBJSUFF) \
280 $(MSWDIR)/joystick.$(OBJSUFF) \
281 $(MSWDIR)/listbox.$(OBJSUFF) \
282 $(MSWDIR)/listctrl.$(OBJSUFF) \
283 $(MSWDIR)/main.$(OBJSUFF) \
284 $(MSWDIR)/mdi.$(OBJSUFF) \
285 $(MSWDIR)/menu.$(OBJSUFF) \
286 $(MSWDIR)/menuitem.$(OBJSUFF) \
287 $(MSWDIR)/metafile.$(OBJSUFF) \
5d541a03 288 $(MSWDIR)/mimetype.$(OBJSUFF) \
a3015c54
RR
289 $(MSWDIR)/minifram.$(OBJSUFF) \
290 $(MSWDIR)/msgdlg.$(OBJSUFF) \
291 $(MSWDIR)/nativdlg.$(OBJSUFF) \
292 $(MSWDIR)/notebook.$(OBJSUFF) \
293 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
294 $(MSWDIR)/palette.$(OBJSUFF) \
295 $(MSWDIR)/pen.$(OBJSUFF) \
296 $(MSWDIR)/penwin.$(OBJSUFF) \
a3015c54
RR
297 $(MSWDIR)/printdlg.$(OBJSUFF) \
298 $(MSWDIR)/printwin.$(OBJSUFF) \
299 $(MSWDIR)/radiobox.$(OBJSUFF) \
300 $(MSWDIR)/radiobut.$(OBJSUFF) \
301 $(MSWDIR)/regconf.$(OBJSUFF) \
302 $(MSWDIR)/region.$(OBJSUFF) \
303 $(MSWDIR)/registry.$(OBJSUFF) \
304 $(MSWDIR)/scrolbar.$(OBJSUFF) \
305 $(MSWDIR)/settings.$(OBJSUFF) \
306 $(MSWDIR)/slider95.$(OBJSUFF) \
8773bc76 307 $(MSWDIR)/snglinst.$(OBJSUFF) \
a3015c54 308 $(MSWDIR)/spinbutt.$(OBJSUFF) \
791a2102 309 $(MSWDIR)/spinctrl.$(OBJSUFF) \
a3015c54
RR
310 $(MSWDIR)/statbmp.$(OBJSUFF) \
311 $(MSWDIR)/statbox.$(OBJSUFF) \
312 $(MSWDIR)/statbr95.$(OBJSUFF) \
313 $(MSWDIR)/statline.$(OBJSUFF) \
314 $(MSWDIR)/stattext.$(OBJSUFF) \
315 $(MSWDIR)/tabctrl.$(OBJSUFF) \
316 $(MSWDIR)/taskbar.$(OBJSUFF) \
317 $(MSWDIR)/tbar95.$(OBJSUFF) \
318 $(MSWDIR)/textctrl.$(OBJSUFF) \
1db8dc4a 319 $(MSWDIR)/tglbtn.$(OBJSUFF) \
a3015c54
RR
320 $(MSWDIR)/thread.$(OBJSUFF) \
321 $(MSWDIR)/timer.$(OBJSUFF) \
322 $(MSWDIR)/tooltip.$(OBJSUFF) \
323 $(MSWDIR)/treectrl.$(OBJSUFF) \
324 $(MSWDIR)/utils.$(OBJSUFF) \
325 $(MSWDIR)/utilsexc.$(OBJSUFF) \
326 $(MSWDIR)/wave.$(OBJSUFF) \
f50fd919 327 $(MSWDIR)/window.$(OBJSUFF)
2bda0e17 328
6c8a980f
VZ
329ADVANCEDOBJS = \
330 $(COMMDIR)/odbc.$(OBJSUFF) \
331 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
332 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
333 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
334 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
335 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
336 $(MSWDIR)/ole/uuid.$(OBJSUFF)
337
c45a644e
RR
338ZLIBOBJS = \
339 $(ZLIBDIR)/adler32.$(OBJSUFF) \
340 $(ZLIBDIR)/compress.$(OBJSUFF) \
341 $(ZLIBDIR)/crc32.$(OBJSUFF) \
342 $(ZLIBDIR)/gzio.$(OBJSUFF) \
343 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
344 $(ZLIBDIR)/deflate.$(OBJSUFF) \
345 $(ZLIBDIR)/trees.$(OBJSUFF) \
346 $(ZLIBDIR)/zutil.$(OBJSUFF) \
347 $(ZLIBDIR)/inflate.$(OBJSUFF) \
348 $(ZLIBDIR)/infblock.$(OBJSUFF) \
349 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
350 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
351 $(ZLIBDIR)/infutil.$(OBJSUFF) \
352 $(ZLIBDIR)/inffast.$(OBJSUFF)
353
354PNGOBJS = \
355 $(PNGDIR)/png.$(OBJSUFF) \
356 $(PNGDIR)/pngread.$(OBJSUFF) \
357 $(PNGDIR)/pngrtran.$(OBJSUFF) \
358 $(PNGDIR)/pngrutil.$(OBJSUFF) \
359 $(PNGDIR)/pngpread.$(OBJSUFF) \
360 $(PNGDIR)/pngtrans.$(OBJSUFF) \
361 $(PNGDIR)/pngwrite.$(OBJSUFF) \
362 $(PNGDIR)/pngwtran.$(OBJSUFF) \
363 $(PNGDIR)/pngwutil.$(OBJSUFF) \
364 $(PNGDIR)/pngerror.$(OBJSUFF) \
365 $(PNGDIR)/pngmem.$(OBJSUFF) \
366 $(PNGDIR)/pngwio.$(OBJSUFF) \
367 $(PNGDIR)/pngrio.$(OBJSUFF) \
368 $(PNGDIR)/pngget.$(OBJSUFF) \
369 $(PNGDIR)/pngset.$(OBJSUFF)
370
371
372JPEGOBJS = \
373 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
374 $(JPEGDIR)/jutils.$(OBJSUFF) \
375 $(JPEGDIR)/jerror.$(OBJSUFF) \
376 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
377 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
378 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
379 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
380 $(JPEGDIR)/jctrans.$(OBJSUFF) \
381 $(JPEGDIR)/jcparam.$(OBJSUFF) \
382 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
383 $(JPEGDIR)/jcinit.$(OBJSUFF) \
384 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
385 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
386 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
387 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
388 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
389 $(JPEGDIR)/jccolor.$(OBJSUFF) \
390 $(JPEGDIR)/jcsample.$(OBJSUFF) \
391 $(JPEGDIR)/jchuff.$(OBJSUFF) \
392 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
393 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
394 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
395 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
396 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
397 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
398 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
399 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
400 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
401 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
402 $(JPEGDIR)/jdinput.$(OBJSUFF) \
403 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
404 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
405 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
406 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
407 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
408 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
409 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
410 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
411 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
412 $(JPEGDIR)/jidctint.$(OBJSUFF) \
413 $(JPEGDIR)/jidctred.$(OBJSUFF) \
414 $(JPEGDIR)/jdsample.$(OBJSUFF) \
415 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
416 $(JPEGDIR)/jquant1.$(OBJSUFF) \
417 $(JPEGDIR)/jquant2.$(OBJSUFF) \
418 $(JPEGDIR)/jdmerge.$(OBJSUFF)
419
8535af00
VZ
420TIFFOBJS = $(TIFFDIR)/tif_aux.o \
421 $(TIFFDIR)/tif_close.o \
422 $(TIFFDIR)/tif_codec.o \
423 $(TIFFDIR)/tif_compress.o \
424 $(TIFFDIR)/tif_dir.o \
425 $(TIFFDIR)/tif_dirinfo.o \
426 $(TIFFDIR)/tif_dirread.o \
427 $(TIFFDIR)/tif_dirwrite.o \
428 $(TIFFDIR)/tif_dumpmode.o \
429 $(TIFFDIR)/tif_error.o \
430 $(TIFFDIR)/tif_fax3.o \
431 $(TIFFDIR)/tif_fax3sm.o \
432 $(TIFFDIR)/tif_flush.o \
433 $(TIFFDIR)/tif_getimage.o \
434 $(TIFFDIR)/tif_jpeg.o \
435 $(TIFFDIR)/tif_luv.o \
436 $(TIFFDIR)/tif_lzw.o \
437 $(TIFFDIR)/tif_next.o \
438 $(TIFFDIR)/tif_open.o \
439 $(TIFFDIR)/tif_packbits.o \
440 $(TIFFDIR)/tif_pixarlog.o \
441 $(TIFFDIR)/tif_predict.o \
442 $(TIFFDIR)/tif_print.o \
443 $(TIFFDIR)/tif_read.o \
444 $(TIFFDIR)/tif_strip.o \
445 $(TIFFDIR)/tif_swab.o \
446 $(TIFFDIR)/tif_thunder.o \
447 $(TIFFDIR)/tif_tile.o \
448 $(TIFFDIR)/tif_version.o \
449 $(TIFFDIR)/tif_warning.o \
450 $(TIFFDIR)/tif_win32.o \
451 $(TIFFDIR)/tif_write.o \
452 $(TIFFDIR)/tif_zip.o
453
6c8a980f 454ifeq ($(MINGW32),1)
8535af00 455 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
fd4fe42c 456 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
6c8a980f 457 else
fd4fe42c 458 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f
VZ
459 endif
460else
fd4fe42c 461 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f 462endif
2bda0e17 463
fa146dd7 464ifndef WXMAKINGDLL
9d579917 465all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB)
fa146dd7 466else
9d579917 467all: $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(WXDLL)
fa146dd7 468endif
8535af00
VZ
469
470ifndef WXMAKINGDLL
2bda0e17 471
2bda0e17
KB
472$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
473 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
474 $(RANLIB) $@
475
8535af00
VZ
476else
477
478# The new linker is a few orders of magnitude faster than the old way
479# of creating DLLs.
480ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
481
482$(WXDLL): $(OBJECTS) $(EXTRAOBJS)
483 $(CC) -shared -o $@ \
484 -Wl,--output-def,$(WXDEF) \
485 -Wl,--out-implib,$(WXLIB) \
486 $(OBJECTS) $(EXTRAOBJS) \
487 $(DLL_LDFLAGS) $(DLL_LDLIBS)
488else
489
490ifeq ($(MINGW32),1)
491 DLL_ENTRY = _DllMainCRTStartup@12
492else
493 DLL_ENTRY = __cygwin_dll_entry@12
494endif
495LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
496 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
497
498DLL_STUFF = --as=$(AS) --dllname $(notdir $(WXDLL)) \
499 --def $(WXDEF) \
500 --base-file wx.base --output-exp wx.exp
501
502$(WXDEF) $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
503 $(DLLTOOL) --output-def $@ --output-lib $(WXLIB) \
504 --dllname $(notdir $(WXDLL)) \
505 $(OBJECTS) $(EXTRAOBJS) $(DLL_EXTRA_LIBS)
506
507$(WXDLL): $(OBJECTS) $(EXTRAOBJS) $(WXDEF)
508 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF)
509 $(DLLTOOL) $(DLL_STUFF)
510 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF)
511 $(DLLTOOL) $(DLL_STUFF)
512 $(CC) -mdll wx.exp -o $@ $(LD_STUFF)
513 -$(RM) wx.base
514 -$(RM) wx.exp
515
516endif
517
518endif
519
520
01dba85a 521$(ZLIBLIB): $(ZLIBOBJS)
fa146dd7 522 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
01dba85a
JS
523 $(RANLIB) $@
524
525$(PNGLIB): $(PNGOBJS)
fa146dd7 526 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
01dba85a
JS
527 $(RANLIB) $@
528
529$(JPEGLIB): $(JPEGOBJS)
fa146dd7 530 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
01dba85a
JS
531 $(RANLIB) $@
532
8535af00 533$(TIFFLIB): $(TIFFOBJS)
fa146dd7 534 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
535 $(RANLIB) $@
536
537
2bda0e17
KB
538$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
539
540$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
6a570331
RR
541 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
542
8e97b17b 543$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
102f951d 544 $(COPY) ../common/dosyacc.c ../common/y_tab.c
8e97b17b 545
6a570331 546$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
102f951d 547 $(COPY) ../common/doslex.c ../common/lex_yy.c
2bda0e17
KB
548
549# Replace lex with flex if you run into compilation
550# problems with lex_yy.c. See also note about LEX_SCANNER
551# above.
6a570331
RR
552# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
553# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
554#
8870c26e
JS
555# Try one of these if the above line doesn't work.
556# Alternative syntax (1)
557# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
558# Alternative syntax (2)
559# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
6a570331 560#
2bda0e17
KB
561# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
562# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
563# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
564# rm -f lex.yy.c
6a570331 565#
2bda0e17
KB
566# Replace yacc with bison if you run into compilation
567# problems with y_tab.c.
6a570331
RR
568#
569# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
570# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
571#
57c208c5
JS
572# If you use e.g. gcc on Unix, uncomment these lines
573# and comment out the above.
6a570331 574#
a1b82138 575# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
57c208c5
JS
576# $(YACC) $(COMMDIR)/parser.y
577# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17 578
2bda0e17 579clean:
6474416b 580 -$(RM) *.o
01dba85a 581 -$(RM) ole/*.o
6474416b
JS
582 -$(RM) *.bak
583 -$(RM) core
01dba85a
JS
584 -$(RM) ../common/y_tab.c
585 -$(RM) ../common/lex_yy.c
586 -$(RM) ../common/*.o
587 -$(RM) ../common/*.bak
588 -$(RM) ../generic/*.o
589 -$(RM) ../generic/*.bak
590 -$(RM) ../html/*.o
01dba85a
JS
591 -$(RM) ../zlib/*.o
592 -$(RM) ../zlib/*.bak
8535af00
VZ
593 -$(RM) ../png/*.o
594 -$(RM) ../png/*.bak
01dba85a 595 -$(RM) ../jpeg/*.o
fd4fe42c 596 -$(RM) ../jpeg/*.bak
8535af00
VZ
597 -$(RM) ../tiff/*.o
598 -$(RM) ../tiff/*.bak
6e6d9f9e
VZ
599
600cleanall: clean
8535af00 601 -$(RM) $(WXLIB)
fa146dd7
VS
602 -$(RM) $(ZLIBLIB)
603 -$(RM) $(PNGLIB)
604 -$(RM) $(JPEGLIB)
fa146dd7 605 -$(RM) $(TIFFLIB)
8535af00
VZ
606
607ifdef WXMAKINGDLL
608 -$(RM) $(WXDLL)
609 -$(RM) $(WXDEF)
610ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
611 -$(RM) wx.base
612 -$(RM) wx.exp
613endif
614endif
31929f80 615