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