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