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