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