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