]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
typo fixed
[wxWidgets.git] / src / msw / makefile.g95
CommitLineData
c692969f 1# This file was automatically generated by tmake at 18:32, 2000/02/17
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 79 $(GENDIR)/panelg.$(OBJSUFF) \
5d541a03 80 $(GENDIR)/plot.$(OBJSUFF) \
2662e49e
RR
81 $(GENDIR)/progdlgg.$(OBJSUFF) \
82 $(GENDIR)/prop.$(OBJSUFF) \
83 $(GENDIR)/propform.$(OBJSUFF) \
84 $(GENDIR)/proplist.$(OBJSUFF) \
85 $(GENDIR)/sashwin.$(OBJSUFF) \
86 $(GENDIR)/scrolwin.$(OBJSUFF) \
87 $(GENDIR)/splitter.$(OBJSUFF) \
88 $(GENDIR)/statusbr.$(OBJSUFF) \
bf84b0be 89 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
2662e49e 90 $(GENDIR)/textdlgg.$(OBJSUFF) \
e8ac7bf2
RD
91 $(GENDIR)/tipdlg.$(OBJSUFF) \
92 $(GENDIR)/wizard.$(OBJSUFF)
8baa0e61 93
c45a644e 94COMMONOBJS = \
a1b82138 95 $(COMMDIR)/y_tab.$(OBJSUFF) \
72cdf4c9 96 $(COMMDIR)/appcmn.$(OBJSUFF) \
8d99be5f 97 $(COMMDIR)/choiccmn.$(OBJSUFF) \
08794f69 98 $(COMMDIR)/clipcmn.$(OBJSUFF) \
2a36259f 99 $(COMMDIR)/cmdline.$(OBJSUFF) \
2662e49e
RR
100 $(COMMDIR)/cmndata.$(OBJSUFF) \
101 $(COMMDIR)/config.$(OBJSUFF) \
8d99be5f 102 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
6c8a980f 103 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
bf84b0be 104 $(COMMDIR)/datetime.$(OBJSUFF) \
2662e49e
RR
105 $(COMMDIR)/datstrm.$(OBJSUFF) \
106 $(COMMDIR)/db.$(OBJSUFF) \
107 $(COMMDIR)/dbtable.$(OBJSUFF) \
108 $(COMMDIR)/dcbase.$(OBJSUFF) \
109 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
c692969f 110 $(COMMDIR)/dndcmn.$(OBJSUFF) \
c4933157 111 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
2662e49e
RR
112 $(COMMDIR)/docmdi.$(OBJSUFF) \
113 $(COMMDIR)/docview.$(OBJSUFF) \
114 $(COMMDIR)/dynarray.$(OBJSUFF) \
115 $(COMMDIR)/dynlib.$(OBJSUFF) \
15b83243 116 $(COMMDIR)/encconv.$(OBJSUFF) \
2662e49e 117 $(COMMDIR)/event.$(OBJSUFF) \
a1b82138 118 $(COMMDIR)/extended.$(OBJSUFF) \
2662e49e
RR
119 $(COMMDIR)/ffile.$(OBJSUFF) \
120 $(COMMDIR)/file.$(OBJSUFF) \
121 $(COMMDIR)/fileconf.$(OBJSUFF) \
122 $(COMMDIR)/filefn.$(OBJSUFF) \
123 $(COMMDIR)/filesys.$(OBJSUFF) \
0c5d3e1c 124 $(COMMDIR)/fontcmn.$(OBJSUFF) \
01dba85a 125 $(COMMDIR)/fontmap.$(OBJSUFF) \
2662e49e
RR
126 $(COMMDIR)/framecmn.$(OBJSUFF) \
127 $(COMMDIR)/fs_inet.$(OBJSUFF) \
c692969f 128 $(COMMDIR)/fs_mem.$(OBJSUFF) \
2662e49e
RR
129 $(COMMDIR)/fs_zip.$(OBJSUFF) \
130 $(COMMDIR)/ftp.$(OBJSUFF) \
131 $(COMMDIR)/gdicmn.$(OBJSUFF) \
c692969f 132 $(COMMDIR)/geometry.$(OBJSUFF) \
e8ac7bf2 133 $(COMMDIR)/gifdecod.$(OBJSUFF) \
2662e49e
RR
134 $(COMMDIR)/hash.$(OBJSUFF) \
135 $(COMMDIR)/helpbase.$(OBJSUFF) \
136 $(COMMDIR)/http.$(OBJSUFF) \
93ccaed8 137 $(COMMDIR)/imagall.$(OBJSUFF) \
2662e49e
RR
138 $(COMMDIR)/imagbmp.$(OBJSUFF) \
139 $(COMMDIR)/image.$(OBJSUFF) \
140 $(COMMDIR)/imaggif.$(OBJSUFF) \
141 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
dfdc56a3 142 $(COMMDIR)/imagpcx.$(OBJSUFF) \
2662e49e 143 $(COMMDIR)/imagpng.$(OBJSUFF) \
e8ac7bf2 144 $(COMMDIR)/imagpnm.$(OBJSUFF) \
e694c22c 145 $(COMMDIR)/imagtiff.$(OBJSUFF) \
2662e49e
RR
146 $(COMMDIR)/intl.$(OBJSUFF) \
147 $(COMMDIR)/ipcbase.$(OBJSUFF) \
148 $(COMMDIR)/layout.$(OBJSUFF) \
2ee3ee1b 149 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
2662e49e
RR
150 $(COMMDIR)/list.$(OBJSUFF) \
151 $(COMMDIR)/log.$(OBJSUFF) \
bf84b0be 152 $(COMMDIR)/longlong.$(OBJSUFF) \
2662e49e 153 $(COMMDIR)/memory.$(OBJSUFF) \
ad9bb75f 154 $(COMMDIR)/menucmn.$(OBJSUFF) \
5d541a03 155 $(COMMDIR)/mimecmn.$(OBJSUFF) \
2662e49e
RR
156 $(COMMDIR)/module.$(OBJSUFF) \
157 $(COMMDIR)/mstream.$(OBJSUFF) \
158 $(COMMDIR)/object.$(OBJSUFF) \
159 $(COMMDIR)/objstrm.$(OBJSUFF) \
160 $(COMMDIR)/paper.$(OBJSUFF) \
161 $(COMMDIR)/prntbase.$(OBJSUFF) \
162 $(COMMDIR)/process.$(OBJSUFF) \
163 $(COMMDIR)/protocol.$(OBJSUFF) \
164 $(COMMDIR)/resource.$(OBJSUFF) \
165 $(COMMDIR)/sckaddr.$(OBJSUFF) \
166 $(COMMDIR)/sckfile.$(OBJSUFF) \
2662e49e
RR
167 $(COMMDIR)/sckipc.$(OBJSUFF) \
168 $(COMMDIR)/sckstrm.$(OBJSUFF) \
ae8f5769 169 $(COMMDIR)/serbase.$(OBJSUFF) \
0ae2df30 170 $(COMMDIR)/sizer.$(OBJSUFF) \
2662e49e 171 $(COMMDIR)/socket.$(OBJSUFF) \
77671fd2 172 $(COMMDIR)/strconv.$(OBJSUFF) \
2662e49e
RR
173 $(COMMDIR)/stream.$(OBJSUFF) \
174 $(COMMDIR)/string.$(OBJSUFF) \
175 $(COMMDIR)/tbarbase.$(OBJSUFF) \
176 $(COMMDIR)/textcmn.$(OBJSUFF) \
177 $(COMMDIR)/textfile.$(OBJSUFF) \
2662e49e
RR
178 $(COMMDIR)/timercmn.$(OBJSUFF) \
179 $(COMMDIR)/tokenzr.$(OBJSUFF) \
180 $(COMMDIR)/txtstrm.$(OBJSUFF) \
181 $(COMMDIR)/unzip.$(OBJSUFF) \
182 $(COMMDIR)/url.$(OBJSUFF) \
183 $(COMMDIR)/utilscmn.$(OBJSUFF) \
184 $(COMMDIR)/valgen.$(OBJSUFF) \
185 $(COMMDIR)/validate.$(OBJSUFF) \
186 $(COMMDIR)/valtext.$(OBJSUFF) \
187 $(COMMDIR)/variant.$(OBJSUFF) \
188 $(COMMDIR)/wfstream.$(OBJSUFF) \
189 $(COMMDIR)/wincmn.$(OBJSUFF) \
190 $(COMMDIR)/wxchar.$(OBJSUFF) \
191 $(COMMDIR)/wxexpr.$(OBJSUFF) \
77671fd2 192 $(COMMDIR)/zipstrm.$(OBJSUFF) \
2662e49e 193 $(COMMDIR)/zstream.$(OBJSUFF)
a1b82138 194
a3015c54 195HTMLOBJS = \
8ec2b484
HH
196 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
197 $(HTMLDIR)/helpdata.$(OBJSUFF) \
198 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
199 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
200 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
201 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
202 $(HTMLDIR)/htmltag.$(OBJSUFF) \
203 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 204 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 205 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
206 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
207 $(HTMLDIR)/m_hline.$(OBJSUFF) \
208 $(HTMLDIR)/m_image.$(OBJSUFF) \
209 $(HTMLDIR)/m_layout.$(OBJSUFF) \
210 $(HTMLDIR)/m_links.$(OBJSUFF) \
211 $(HTMLDIR)/m_list.$(OBJSUFF) \
fa146dd7 212 $(HTMLDIR)/m_meta.$(OBJSUFF) \
69941f05
VS
213 $(HTMLDIR)/m_pre.$(OBJSUFF) \
214 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 215 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 216
c45a644e 217MSWOBJS = \
a3015c54
RR
218 $(MSWDIR)/accel.$(OBJSUFF) \
219 $(MSWDIR)/app.$(OBJSUFF) \
220 $(MSWDIR)/bitmap.$(OBJSUFF) \
221 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
222 $(MSWDIR)/brush.$(OBJSUFF) \
223 $(MSWDIR)/button.$(OBJSUFF) \
224 $(MSWDIR)/caret.$(OBJSUFF) \
225 $(MSWDIR)/checkbox.$(OBJSUFF) \
226 $(MSWDIR)/checklst.$(OBJSUFF) \
227 $(MSWDIR)/choice.$(OBJSUFF) \
228 $(MSWDIR)/clipbrd.$(OBJSUFF) \
229 $(MSWDIR)/colordlg.$(OBJSUFF) \
230 $(MSWDIR)/colour.$(OBJSUFF) \
231 $(MSWDIR)/combobox.$(OBJSUFF) \
232 $(MSWDIR)/control.$(OBJSUFF) \
233 $(MSWDIR)/curico.$(OBJSUFF) \
234 $(MSWDIR)/cursor.$(OBJSUFF) \
235 $(MSWDIR)/data.$(OBJSUFF) \
236 $(MSWDIR)/dc.$(OBJSUFF) \
237 $(MSWDIR)/dcclient.$(OBJSUFF) \
238 $(MSWDIR)/dcmemory.$(OBJSUFF) \
239 $(MSWDIR)/dcprint.$(OBJSUFF) \
240 $(MSWDIR)/dcscreen.$(OBJSUFF) \
241 $(MSWDIR)/dde.$(OBJSUFF) \
242 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 243 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54
RR
244 $(MSWDIR)/dib.$(OBJSUFF) \
245 $(MSWDIR)/dibutils.$(OBJSUFF) \
e694c22c 246 $(MSWDIR)/dir.$(OBJSUFF) \
a3015c54 247 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 248 $(MSWDIR)/enhmeta.$(OBJSUFF) \
a3015c54
RR
249 $(MSWDIR)/filedlg.$(OBJSUFF) \
250 $(MSWDIR)/font.$(OBJSUFF) \
251 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
252 $(MSWDIR)/fontenum.$(OBJSUFF) \
253 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
254 $(MSWDIR)/frame.$(OBJSUFF) \
255 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 256 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 257 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8ec2b484 258 $(MSWDIR)/gsocket.$(OBJSUFF) \
a3015c54
RR
259 $(MSWDIR)/helpwin.$(OBJSUFF) \
260 $(MSWDIR)/icon.$(OBJSUFF) \
261 $(MSWDIR)/imaglist.$(OBJSUFF) \
262 $(MSWDIR)/joystick.$(OBJSUFF) \
263 $(MSWDIR)/listbox.$(OBJSUFF) \
264 $(MSWDIR)/listctrl.$(OBJSUFF) \
265 $(MSWDIR)/main.$(OBJSUFF) \
266 $(MSWDIR)/mdi.$(OBJSUFF) \
267 $(MSWDIR)/menu.$(OBJSUFF) \
268 $(MSWDIR)/menuitem.$(OBJSUFF) \
269 $(MSWDIR)/metafile.$(OBJSUFF) \
5d541a03 270 $(MSWDIR)/mimetype.$(OBJSUFF) \
a3015c54
RR
271 $(MSWDIR)/minifram.$(OBJSUFF) \
272 $(MSWDIR)/msgdlg.$(OBJSUFF) \
273 $(MSWDIR)/nativdlg.$(OBJSUFF) \
274 $(MSWDIR)/notebook.$(OBJSUFF) \
275 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
276 $(MSWDIR)/palette.$(OBJSUFF) \
277 $(MSWDIR)/pen.$(OBJSUFF) \
278 $(MSWDIR)/penwin.$(OBJSUFF) \
a3015c54
RR
279 $(MSWDIR)/printdlg.$(OBJSUFF) \
280 $(MSWDIR)/printwin.$(OBJSUFF) \
281 $(MSWDIR)/radiobox.$(OBJSUFF) \
282 $(MSWDIR)/radiobut.$(OBJSUFF) \
283 $(MSWDIR)/regconf.$(OBJSUFF) \
284 $(MSWDIR)/region.$(OBJSUFF) \
285 $(MSWDIR)/registry.$(OBJSUFF) \
286 $(MSWDIR)/scrolbar.$(OBJSUFF) \
287 $(MSWDIR)/settings.$(OBJSUFF) \
288 $(MSWDIR)/slider95.$(OBJSUFF) \
289 $(MSWDIR)/spinbutt.$(OBJSUFF) \
791a2102 290 $(MSWDIR)/spinctrl.$(OBJSUFF) \
a3015c54
RR
291 $(MSWDIR)/statbmp.$(OBJSUFF) \
292 $(MSWDIR)/statbox.$(OBJSUFF) \
293 $(MSWDIR)/statbr95.$(OBJSUFF) \
294 $(MSWDIR)/statline.$(OBJSUFF) \
295 $(MSWDIR)/stattext.$(OBJSUFF) \
296 $(MSWDIR)/tabctrl.$(OBJSUFF) \
297 $(MSWDIR)/taskbar.$(OBJSUFF) \
298 $(MSWDIR)/tbar95.$(OBJSUFF) \
299 $(MSWDIR)/textctrl.$(OBJSUFF) \
300 $(MSWDIR)/thread.$(OBJSUFF) \
301 $(MSWDIR)/timer.$(OBJSUFF) \
302 $(MSWDIR)/tooltip.$(OBJSUFF) \
303 $(MSWDIR)/treectrl.$(OBJSUFF) \
304 $(MSWDIR)/utils.$(OBJSUFF) \
305 $(MSWDIR)/utilsexc.$(OBJSUFF) \
306 $(MSWDIR)/wave.$(OBJSUFF) \
307 $(MSWDIR)/window.$(OBJSUFF) \
308 $(MSWDIR)/xpmhand.$(OBJSUFF)
2bda0e17 309
6c8a980f
VZ
310ADVANCEDOBJS = \
311 $(COMMDIR)/odbc.$(OBJSUFF) \
312 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
313 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
314 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
315 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
316 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
317 $(MSWDIR)/ole/uuid.$(OBJSUFF)
318
c45a644e
RR
319ZLIBOBJS = \
320 $(ZLIBDIR)/adler32.$(OBJSUFF) \
321 $(ZLIBDIR)/compress.$(OBJSUFF) \
322 $(ZLIBDIR)/crc32.$(OBJSUFF) \
323 $(ZLIBDIR)/gzio.$(OBJSUFF) \
324 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
325 $(ZLIBDIR)/deflate.$(OBJSUFF) \
326 $(ZLIBDIR)/trees.$(OBJSUFF) \
327 $(ZLIBDIR)/zutil.$(OBJSUFF) \
328 $(ZLIBDIR)/inflate.$(OBJSUFF) \
329 $(ZLIBDIR)/infblock.$(OBJSUFF) \
330 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
331 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
332 $(ZLIBDIR)/infutil.$(OBJSUFF) \
333 $(ZLIBDIR)/inffast.$(OBJSUFF)
334
335PNGOBJS = \
336 $(PNGDIR)/png.$(OBJSUFF) \
337 $(PNGDIR)/pngread.$(OBJSUFF) \
338 $(PNGDIR)/pngrtran.$(OBJSUFF) \
339 $(PNGDIR)/pngrutil.$(OBJSUFF) \
340 $(PNGDIR)/pngpread.$(OBJSUFF) \
341 $(PNGDIR)/pngtrans.$(OBJSUFF) \
342 $(PNGDIR)/pngwrite.$(OBJSUFF) \
343 $(PNGDIR)/pngwtran.$(OBJSUFF) \
344 $(PNGDIR)/pngwutil.$(OBJSUFF) \
345 $(PNGDIR)/pngerror.$(OBJSUFF) \
346 $(PNGDIR)/pngmem.$(OBJSUFF) \
347 $(PNGDIR)/pngwio.$(OBJSUFF) \
348 $(PNGDIR)/pngrio.$(OBJSUFF) \
349 $(PNGDIR)/pngget.$(OBJSUFF) \
350 $(PNGDIR)/pngset.$(OBJSUFF)
351
352
353JPEGOBJS = \
354 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
355 $(JPEGDIR)/jutils.$(OBJSUFF) \
356 $(JPEGDIR)/jerror.$(OBJSUFF) \
357 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
358 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
359 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
360 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
361 $(JPEGDIR)/jctrans.$(OBJSUFF) \
362 $(JPEGDIR)/jcparam.$(OBJSUFF) \
363 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
364 $(JPEGDIR)/jcinit.$(OBJSUFF) \
365 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
366 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
367 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
368 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
369 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
370 $(JPEGDIR)/jccolor.$(OBJSUFF) \
371 $(JPEGDIR)/jcsample.$(OBJSUFF) \
372 $(JPEGDIR)/jchuff.$(OBJSUFF) \
373 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
374 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
375 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
376 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
377 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
378 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
379 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
380 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
381 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
382 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
383 $(JPEGDIR)/jdinput.$(OBJSUFF) \
384 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
385 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
386 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
387 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
388 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
389 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
390 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
391 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
392 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
393 $(JPEGDIR)/jidctint.$(OBJSUFF) \
394 $(JPEGDIR)/jidctred.$(OBJSUFF) \
395 $(JPEGDIR)/jdsample.$(OBJSUFF) \
396 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
397 $(JPEGDIR)/jquant1.$(OBJSUFF) \
398 $(JPEGDIR)/jquant2.$(OBJSUFF) \
399 $(JPEGDIR)/jdmerge.$(OBJSUFF)
400
9b97ee33
GRG
401XPMOBJS = $(XPMDIR)/attrib.o\
402 $(XPMDIR)/crbuffri.o\
4fabb575 403 $(XPMDIR)/crdatfri.o\
9b97ee33
GRG
404 $(XPMDIR)/create.o\
405 $(XPMDIR)/crifrbuf.o\
4fabb575
JS
406 $(XPMDIR)/crifrdat.o\
407 $(XPMDIR)/data.o\
9b97ee33
GRG
408 $(XPMDIR)/image.o\
409 $(XPMDIR)/info.o\
410 $(XPMDIR)/hashtab.o\
411 $(XPMDIR)/misc.o\
412 $(XPMDIR)/parse.o\
413 $(XPMDIR)/rdftodat.o\
4fabb575 414 $(XPMDIR)/rdftoi.o\
9b97ee33
GRG
415 $(XPMDIR)/rgb.o\
416 $(XPMDIR)/scan.o\
417 $(XPMDIR)/simx.o\
418 $(XPMDIR)/wrffrdat.o\
419 $(XPMDIR)/wrffri.o
74e34480 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
8535af00 466all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(XPMLIB) $(TIFFLIB)
fa146dd7
VS
467else
468all: $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(XPMLIB) $(TIFFLIB) $(WXDLL)
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
fd4fe42c 534$(XPMLIB): $(XPMOBJS)
fa146dd7 535 $(AR) $(AROPTIONS) $@ $(XPMOBJS)
fd4fe42c
VZ
536 $(RANLIB) $@
537
8535af00 538$(TIFFLIB): $(TIFFOBJS)
fa146dd7 539 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
540 $(RANLIB) $@
541
542
2bda0e17
KB
543$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
544
545$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
6a570331
RR
546 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
547
a2327a9f 548$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
102f951d 549 $(COPY) ../common/dosyacc.c ../common/y_tab.c
6a570331
RR
550
551$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
102f951d 552 $(COPY) ../common/doslex.c ../common/lex_yy.c
2bda0e17
KB
553
554# Replace lex with flex if you run into compilation
555# problems with lex_yy.c. See also note about LEX_SCANNER
556# above.
6a570331
RR
557# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
558# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
559#
8870c26e
JS
560# Try one of these if the above line doesn't work.
561# Alternative syntax (1)
562# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
563# Alternative syntax (2)
564# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
6a570331 565#
2bda0e17
KB
566# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
567# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
568# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
569# rm -f lex.yy.c
6a570331 570#
2bda0e17
KB
571# Replace yacc with bison if you run into compilation
572# problems with y_tab.c.
6a570331
RR
573#
574# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
575# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
576#
57c208c5
JS
577# If you use e.g. gcc on Unix, uncomment these lines
578# and comment out the above.
6a570331 579#
a1b82138 580# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
57c208c5
JS
581# $(YACC) $(COMMDIR)/parser.y
582# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17 583
2bda0e17 584clean:
6474416b 585 -$(RM) *.o
01dba85a 586 -$(RM) ole/*.o
6474416b
JS
587 -$(RM) *.bak
588 -$(RM) core
01dba85a
JS
589 -$(RM) ../common/y_tab.c
590 -$(RM) ../common/lex_yy.c
591 -$(RM) ../common/*.o
592 -$(RM) ../common/*.bak
593 -$(RM) ../generic/*.o
594 -$(RM) ../generic/*.bak
595 -$(RM) ../html/*.o
01dba85a
JS
596 -$(RM) ../zlib/*.o
597 -$(RM) ../zlib/*.bak
8535af00
VZ
598 -$(RM) ../png/*.o
599 -$(RM) ../png/*.bak
01dba85a 600 -$(RM) ../jpeg/*.o
fd4fe42c
VZ
601 -$(RM) ../jpeg/*.bak
602 -$(RM) ../xpm/*.o
603 -$(RM) ../xpm/*.bak
8535af00
VZ
604 -$(RM) ../tiff/*.o
605 -$(RM) ../tiff/*.bak
606 -$(RM) $(WXLIB)
fa146dd7
VS
607 -$(RM) $(ZLIBLIB)
608 -$(RM) $(PNGLIB)
609 -$(RM) $(JPEGLIB)
610 -$(RM) $(XPMLIB)
611 -$(RM) $(TIFFLIB)
8535af00
VZ
612
613ifdef WXMAKINGDLL
614 -$(RM) $(WXDLL)
615 -$(RM) $(WXDEF)
616ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
617 -$(RM) wx.base
618 -$(RM) wx.exp
619endif
620endif
621
2bda0e17
KB
622
623cleanall: clean
8535af00
VZ
624
625