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