]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/makefile.g95
More small fixes
[wxWidgets.git] / src / msw / makefile.g95
... / ...
CommitLineData
1# This file was automatically generated by tmake at 21:02, 2001/06/26
2# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
3
4#
5# File: makefile.g95
6# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
7# Created: 1993
8# Updated: 1999
9# Copyright:(c) 1993, AIAI, University of Edinburgh,
10# Copyright:(c) 1999, Vadim Zeitlin
11# Copyright:(c) 1999, Robert Roebling
12#
13# Makefile for libwx.a
14
15# Replace this with your own path if necessary
16WXDIR = ../..
17
18# All common compiler flags and options are now in
19# this central makefile.
20include $(WXDIR)/src/makeg95.env
21
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/libtiff.a
29DLL_LDFLAGS = -L$(WXDIR)/lib
30DLL_LDLIBS = -mwindows -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
31 -luuid -lrpcrt4 -lodbc32 -lwinmm -lopengl32 \
32 -lwsock32 $(DLL_EXTRA_LIBS) \
33 -lstdc++
34endif
35
36# Subordinate library possibilities
37
38EXTRAOBJS=
39
40GENDIR = $(WXDIR)/src/generic
41COMMDIR = $(WXDIR)/src/common
42HTMLDIR = $(WXDIR)/src/html
43ZLIBDIR = $(WXDIR)/src/zlib
44PNGDIR = $(WXDIR)/src/png
45JPEGDIR = $(WXDIR)/src/jpeg
46TIFFDIR = $(WXDIR)/src/tiff
47OLEDIR = $(WXDIR)/src/msw/ole
48MSWDIR = $(WXDIR)/src/msw
49
50ZLIBLIB = $(WXDIR)/lib/libzlib.a
51PNGLIB = $(WXDIR)/lib/libpng.a
52JPEGLIB = $(WXDIR)/lib/libjpeg.a
53TIFFLIB = $(WXDIR)/lib/libtiff.a
54
55DOCDIR = $(WXDIR)/docs
56
57# Only use the WIN32 wxDirDialog if we have a recent
58# version of Mingw32
59ifeq ($(MINGW32),1)
60 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
61 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
62 else
63 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
64 endif
65else
66 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
67endif
68
69GENERICOBJS = \
70 $(GENDIR)/busyinfo.$(OBJSUFF) \
71 $(GENDIR)/calctrl.$(OBJSUFF) \
72 $(GENDIR)/choicdgg.$(OBJSUFF) \
73 $(GENDIR)/dirctrlg.$(OBJSUFF) \
74 $(GENDIR)/dragimgg.$(OBJSUFF) \
75 $(GENDIR)/grid.$(OBJSUFF) \
76 $(GENDIR)/gridctrl.$(OBJSUFF) \
77 $(GENDIR)/gridsel.$(OBJSUFF) \
78 $(GENDIR)/laywin.$(OBJSUFF) \
79 $(GENDIR)/logg.$(OBJSUFF) \
80 $(GENDIR)/numdlgg.$(OBJSUFF) \
81 $(GENDIR)/panelg.$(OBJSUFF) \
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)/splash.$(OBJSUFF) \
89 $(GENDIR)/splitter.$(OBJSUFF) \
90 $(GENDIR)/statusbr.$(OBJSUFF) \
91 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
92 $(GENDIR)/textdlgg.$(OBJSUFF) \
93 $(GENDIR)/tipdlg.$(OBJSUFF) \
94 $(GENDIR)/tipwin.$(OBJSUFF) \
95 $(GENDIR)/treectlg.$(OBJSUFF) \
96 $(GENDIR)/treelay.$(OBJSUFF) \
97 $(GENDIR)/wizard.$(OBJSUFF)
98
99COMMONOBJS = \
100 $(COMMDIR)/y_tab.$(OBJSUFF) \
101 $(COMMDIR)/appcmn.$(OBJSUFF) \
102 $(COMMDIR)/choiccmn.$(OBJSUFF) \
103 $(COMMDIR)/clipcmn.$(OBJSUFF) \
104 $(COMMDIR)/cmdline.$(OBJSUFF) \
105 $(COMMDIR)/cmdproc.$(OBJSUFF) \
106 $(COMMDIR)/cmndata.$(OBJSUFF) \
107 $(COMMDIR)/config.$(OBJSUFF) \
108 $(COMMDIR)/cshelp.$(OBJSUFF) \
109 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
110 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
111 $(COMMDIR)/datetime.$(OBJSUFF) \
112 $(COMMDIR)/datstrm.$(OBJSUFF) \
113 $(COMMDIR)/db.$(OBJSUFF) \
114 $(COMMDIR)/dbgrid.$(OBJSUFF) \
115 $(COMMDIR)/dbtable.$(OBJSUFF) \
116 $(COMMDIR)/dcbase.$(OBJSUFF) \
117 $(COMMDIR)/dircmn.$(OBJSUFF) \
118 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
119 $(COMMDIR)/dndcmn.$(OBJSUFF) \
120 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
121 $(COMMDIR)/docmdi.$(OBJSUFF) \
122 $(COMMDIR)/docview.$(OBJSUFF) \
123 $(COMMDIR)/dynarray.$(OBJSUFF) \
124 $(COMMDIR)/dynlib.$(OBJSUFF) \
125 $(COMMDIR)/effects.$(OBJSUFF) \
126 $(COMMDIR)/encconv.$(OBJSUFF) \
127 $(COMMDIR)/event.$(OBJSUFF) \
128 $(COMMDIR)/extended.$(OBJSUFF) \
129 $(COMMDIR)/ffile.$(OBJSUFF) \
130 $(COMMDIR)/file.$(OBJSUFF) \
131 $(COMMDIR)/fileconf.$(OBJSUFF) \
132 $(COMMDIR)/filefn.$(OBJSUFF) \
133 $(COMMDIR)/filename.$(OBJSUFF) \
134 $(COMMDIR)/filesys.$(OBJSUFF) \
135 $(COMMDIR)/fontcmn.$(OBJSUFF) \
136 $(COMMDIR)/fontmap.$(OBJSUFF) \
137 $(COMMDIR)/framecmn.$(OBJSUFF) \
138 $(COMMDIR)/fs_inet.$(OBJSUFF) \
139 $(COMMDIR)/fs_mem.$(OBJSUFF) \
140 $(COMMDIR)/fs_zip.$(OBJSUFF) \
141 $(COMMDIR)/ftp.$(OBJSUFF) \
142 $(COMMDIR)/gdicmn.$(OBJSUFF) \
143 $(COMMDIR)/geometry.$(OBJSUFF) \
144 $(COMMDIR)/gifdecod.$(OBJSUFF) \
145 $(COMMDIR)/hash.$(OBJSUFF) \
146 $(COMMDIR)/helpbase.$(OBJSUFF) \
147 $(COMMDIR)/http.$(OBJSUFF) \
148 $(COMMDIR)/imagall.$(OBJSUFF) \
149 $(COMMDIR)/imagbmp.$(OBJSUFF) \
150 $(COMMDIR)/image.$(OBJSUFF) \
151 $(COMMDIR)/imaggif.$(OBJSUFF) \
152 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
153 $(COMMDIR)/imagpcx.$(OBJSUFF) \
154 $(COMMDIR)/imagpng.$(OBJSUFF) \
155 $(COMMDIR)/imagpnm.$(OBJSUFF) \
156 $(COMMDIR)/imagtiff.$(OBJSUFF) \
157 $(COMMDIR)/imagxpm.$(OBJSUFF) \
158 $(COMMDIR)/intl.$(OBJSUFF) \
159 $(COMMDIR)/ipcbase.$(OBJSUFF) \
160 $(COMMDIR)/layout.$(OBJSUFF) \
161 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
162 $(COMMDIR)/list.$(OBJSUFF) \
163 $(COMMDIR)/log.$(OBJSUFF) \
164 $(COMMDIR)/longlong.$(OBJSUFF) \
165 $(COMMDIR)/matrix.$(OBJSUFF) \
166 $(COMMDIR)/memory.$(OBJSUFF) \
167 $(COMMDIR)/menucmn.$(OBJSUFF) \
168 $(COMMDIR)/mimecmn.$(OBJSUFF) \
169 $(COMMDIR)/module.$(OBJSUFF) \
170 $(COMMDIR)/mstream.$(OBJSUFF) \
171 $(COMMDIR)/object.$(OBJSUFF) \
172 $(COMMDIR)/objstrm.$(OBJSUFF) \
173 $(COMMDIR)/paper.$(OBJSUFF) \
174 $(COMMDIR)/prntbase.$(OBJSUFF) \
175 $(COMMDIR)/process.$(OBJSUFF) \
176 $(COMMDIR)/protocol.$(OBJSUFF) \
177 $(COMMDIR)/quantize.$(OBJSUFF) \
178 $(COMMDIR)/resource.$(OBJSUFF) \
179 $(COMMDIR)/sckaddr.$(OBJSUFF) \
180 $(COMMDIR)/sckfile.$(OBJSUFF) \
181 $(COMMDIR)/sckipc.$(OBJSUFF) \
182 $(COMMDIR)/sckstrm.$(OBJSUFF) \
183 $(COMMDIR)/serbase.$(OBJSUFF) \
184 $(COMMDIR)/sizer.$(OBJSUFF) \
185 $(COMMDIR)/socket.$(OBJSUFF) \
186 $(COMMDIR)/strconv.$(OBJSUFF) \
187 $(COMMDIR)/stream.$(OBJSUFF) \
188 $(COMMDIR)/string.$(OBJSUFF) \
189 $(COMMDIR)/tbarbase.$(OBJSUFF) \
190 $(COMMDIR)/textcmn.$(OBJSUFF) \
191 $(COMMDIR)/textfile.$(OBJSUFF) \
192 $(COMMDIR)/timercmn.$(OBJSUFF) \
193 $(COMMDIR)/tokenzr.$(OBJSUFF) \
194 $(COMMDIR)/treebase.$(OBJSUFF) \
195 $(COMMDIR)/txtstrm.$(OBJSUFF) \
196 $(COMMDIR)/unzip.$(OBJSUFF) \
197 $(COMMDIR)/url.$(OBJSUFF) \
198 $(COMMDIR)/utilscmn.$(OBJSUFF) \
199 $(COMMDIR)/valgen.$(OBJSUFF) \
200 $(COMMDIR)/validate.$(OBJSUFF) \
201 $(COMMDIR)/valtext.$(OBJSUFF) \
202 $(COMMDIR)/variant.$(OBJSUFF) \
203 $(COMMDIR)/wfstream.$(OBJSUFF) \
204 $(COMMDIR)/wincmn.$(OBJSUFF) \
205 $(COMMDIR)/wxchar.$(OBJSUFF) \
206 $(COMMDIR)/wxexpr.$(OBJSUFF) \
207 $(COMMDIR)/xpmdecod.$(OBJSUFF) \
208 $(COMMDIR)/zipstrm.$(OBJSUFF) \
209 $(COMMDIR)/zstream.$(OBJSUFF)
210
211HTMLOBJS = \
212 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
213 $(HTMLDIR)/helpdata.$(OBJSUFF) \
214 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
215 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
216 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
217 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
218 $(HTMLDIR)/htmltag.$(OBJSUFF) \
219 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
220 $(HTMLDIR)/htmprint.$(OBJSUFF) \
221 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
222 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
223 $(HTMLDIR)/m_hline.$(OBJSUFF) \
224 $(HTMLDIR)/m_image.$(OBJSUFF) \
225 $(HTMLDIR)/m_layout.$(OBJSUFF) \
226 $(HTMLDIR)/m_links.$(OBJSUFF) \
227 $(HTMLDIR)/m_list.$(OBJSUFF) \
228 $(HTMLDIR)/m_meta.$(OBJSUFF) \
229 $(HTMLDIR)/m_pre.$(OBJSUFF) \
230 $(HTMLDIR)/m_tables.$(OBJSUFF) \
231 $(HTMLDIR)/winpars.$(OBJSUFF)
232
233MSWOBJS = \
234 $(MSWDIR)/accel.$(OBJSUFF) \
235 $(MSWDIR)/app.$(OBJSUFF) \
236 $(MSWDIR)/bitmap.$(OBJSUFF) \
237 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
238 $(MSWDIR)/brush.$(OBJSUFF) \
239 $(MSWDIR)/button.$(OBJSUFF) \
240 $(MSWDIR)/caret.$(OBJSUFF) \
241 $(MSWDIR)/checkbox.$(OBJSUFF) \
242 $(MSWDIR)/checklst.$(OBJSUFF) \
243 $(MSWDIR)/choice.$(OBJSUFF) \
244 $(MSWDIR)/clipbrd.$(OBJSUFF) \
245 $(MSWDIR)/colordlg.$(OBJSUFF) \
246 $(MSWDIR)/colour.$(OBJSUFF) \
247 $(MSWDIR)/combobox.$(OBJSUFF) \
248 $(MSWDIR)/control.$(OBJSUFF) \
249 $(MSWDIR)/curico.$(OBJSUFF) \
250 $(MSWDIR)/cursor.$(OBJSUFF) \
251 $(MSWDIR)/data.$(OBJSUFF) \
252 $(MSWDIR)/dc.$(OBJSUFF) \
253 $(MSWDIR)/dcclient.$(OBJSUFF) \
254 $(MSWDIR)/dcmemory.$(OBJSUFF) \
255 $(MSWDIR)/dcprint.$(OBJSUFF) \
256 $(MSWDIR)/dcscreen.$(OBJSUFF) \
257 $(MSWDIR)/dde.$(OBJSUFF) \
258 $(MSWDIR)/dialog.$(OBJSUFF) \
259 $(MSWDIR)/dialup.$(OBJSUFF) \
260 $(MSWDIR)/dib.$(OBJSUFF) \
261 $(MSWDIR)/dibutils.$(OBJSUFF) \
262 $(MSWDIR)/dir.$(OBJSUFF) \
263 $(MSWDIR)/dragimag.$(OBJSUFF) \
264 $(MSWDIR)/enhmeta.$(OBJSUFF) \
265 $(MSWDIR)/filedlg.$(OBJSUFF) \
266 $(MSWDIR)/font.$(OBJSUFF) \
267 $(MSWDIR)/fontdlg.$(OBJSUFF) \
268 $(MSWDIR)/fontenum.$(OBJSUFF) \
269 $(MSWDIR)/fontutil.$(OBJSUFF) \
270 $(MSWDIR)/frame.$(OBJSUFF) \
271 $(MSWDIR)/gauge95.$(OBJSUFF) \
272 $(MSWDIR)/gdiimage.$(OBJSUFF) \
273 $(MSWDIR)/gdiobj.$(OBJSUFF) \
274 $(MSWDIR)/glcanvas.$(OBJSUFF) \
275 $(MSWDIR)/gsocket.$(OBJSUFF) \
276 $(MSWDIR)/gsockmsw.$(OBJSUFF) \
277 $(MSWDIR)/helpchm.$(OBJSUFF) \
278 $(MSWDIR)/helpwin.$(OBJSUFF) \
279 $(MSWDIR)/icon.$(OBJSUFF) \
280 $(MSWDIR)/imaglist.$(OBJSUFF) \
281 $(MSWDIR)/joystick.$(OBJSUFF) \
282 $(MSWDIR)/listbox.$(OBJSUFF) \
283 $(MSWDIR)/listctrl.$(OBJSUFF) \
284 $(MSWDIR)/main.$(OBJSUFF) \
285 $(MSWDIR)/mdi.$(OBJSUFF) \
286 $(MSWDIR)/menu.$(OBJSUFF) \
287 $(MSWDIR)/menuitem.$(OBJSUFF) \
288 $(MSWDIR)/metafile.$(OBJSUFF) \
289 $(MSWDIR)/mimetype.$(OBJSUFF) \
290 $(MSWDIR)/minifram.$(OBJSUFF) \
291 $(MSWDIR)/msgdlg.$(OBJSUFF) \
292 $(MSWDIR)/nativdlg.$(OBJSUFF) \
293 $(MSWDIR)/notebook.$(OBJSUFF) \
294 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
295 $(MSWDIR)/palette.$(OBJSUFF) \
296 $(MSWDIR)/pen.$(OBJSUFF) \
297 $(MSWDIR)/penwin.$(OBJSUFF) \
298 $(MSWDIR)/printdlg.$(OBJSUFF) \
299 $(MSWDIR)/printwin.$(OBJSUFF) \
300 $(MSWDIR)/radiobox.$(OBJSUFF) \
301 $(MSWDIR)/radiobut.$(OBJSUFF) \
302 $(MSWDIR)/regconf.$(OBJSUFF) \
303 $(MSWDIR)/region.$(OBJSUFF) \
304 $(MSWDIR)/registry.$(OBJSUFF) \
305 $(MSWDIR)/scrolbar.$(OBJSUFF) \
306 $(MSWDIR)/settings.$(OBJSUFF) \
307 $(MSWDIR)/slider95.$(OBJSUFF) \
308 $(MSWDIR)/snglinst.$(OBJSUFF) \
309 $(MSWDIR)/spinbutt.$(OBJSUFF) \
310 $(MSWDIR)/spinctrl.$(OBJSUFF) \
311 $(MSWDIR)/statbmp.$(OBJSUFF) \
312 $(MSWDIR)/statbox.$(OBJSUFF) \
313 $(MSWDIR)/statbr95.$(OBJSUFF) \
314 $(MSWDIR)/statline.$(OBJSUFF) \
315 $(MSWDIR)/stattext.$(OBJSUFF) \
316 $(MSWDIR)/tabctrl.$(OBJSUFF) \
317 $(MSWDIR)/taskbar.$(OBJSUFF) \
318 $(MSWDIR)/tbar95.$(OBJSUFF) \
319 $(MSWDIR)/textctrl.$(OBJSUFF) \
320 $(MSWDIR)/tglbtn.$(OBJSUFF) \
321 $(MSWDIR)/thread.$(OBJSUFF) \
322 $(MSWDIR)/timer.$(OBJSUFF) \
323 $(MSWDIR)/tooltip.$(OBJSUFF) \
324 $(MSWDIR)/treectrl.$(OBJSUFF) \
325 $(MSWDIR)/utils.$(OBJSUFF) \
326 $(MSWDIR)/utilsexc.$(OBJSUFF) \
327 $(MSWDIR)/wave.$(OBJSUFF) \
328 $(MSWDIR)/window.$(OBJSUFF)
329
330ADVANCEDOBJS = \
331 $(COMMDIR)/odbc.$(OBJSUFF) \
332 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
333 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
334 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
335 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
336 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
337 $(MSWDIR)/ole/uuid.$(OBJSUFF)
338
339ZLIBOBJS = \
340 $(ZLIBDIR)/adler32.$(OBJSUFF) \
341 $(ZLIBDIR)/compress.$(OBJSUFF) \
342 $(ZLIBDIR)/crc32.$(OBJSUFF) \
343 $(ZLIBDIR)/gzio.$(OBJSUFF) \
344 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
345 $(ZLIBDIR)/deflate.$(OBJSUFF) \
346 $(ZLIBDIR)/trees.$(OBJSUFF) \
347 $(ZLIBDIR)/zutil.$(OBJSUFF) \
348 $(ZLIBDIR)/inflate.$(OBJSUFF) \
349 $(ZLIBDIR)/infblock.$(OBJSUFF) \
350 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
351 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
352 $(ZLIBDIR)/infutil.$(OBJSUFF) \
353 $(ZLIBDIR)/inffast.$(OBJSUFF)
354
355PNGOBJS = \
356 $(PNGDIR)/png.$(OBJSUFF) \
357 $(PNGDIR)/pngread.$(OBJSUFF) \
358 $(PNGDIR)/pngrtran.$(OBJSUFF) \
359 $(PNGDIR)/pngrutil.$(OBJSUFF) \
360 $(PNGDIR)/pngpread.$(OBJSUFF) \
361 $(PNGDIR)/pngtrans.$(OBJSUFF) \
362 $(PNGDIR)/pngwrite.$(OBJSUFF) \
363 $(PNGDIR)/pngwtran.$(OBJSUFF) \
364 $(PNGDIR)/pngwutil.$(OBJSUFF) \
365 $(PNGDIR)/pngerror.$(OBJSUFF) \
366 $(PNGDIR)/pngmem.$(OBJSUFF) \
367 $(PNGDIR)/pngwio.$(OBJSUFF) \
368 $(PNGDIR)/pngrio.$(OBJSUFF) \
369 $(PNGDIR)/pngget.$(OBJSUFF) \
370 $(PNGDIR)/pngset.$(OBJSUFF)
371
372
373JPEGOBJS = \
374 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
375 $(JPEGDIR)/jutils.$(OBJSUFF) \
376 $(JPEGDIR)/jerror.$(OBJSUFF) \
377 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
378 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
379 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
380 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
381 $(JPEGDIR)/jctrans.$(OBJSUFF) \
382 $(JPEGDIR)/jcparam.$(OBJSUFF) \
383 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
384 $(JPEGDIR)/jcinit.$(OBJSUFF) \
385 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
386 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
387 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
388 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
389 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
390 $(JPEGDIR)/jccolor.$(OBJSUFF) \
391 $(JPEGDIR)/jcsample.$(OBJSUFF) \
392 $(JPEGDIR)/jchuff.$(OBJSUFF) \
393 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
394 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
395 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
396 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
397 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
398 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
399 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
400 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
401 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
402 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
403 $(JPEGDIR)/jdinput.$(OBJSUFF) \
404 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
405 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
406 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
407 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
408 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
409 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
410 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
411 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
412 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
413 $(JPEGDIR)/jidctint.$(OBJSUFF) \
414 $(JPEGDIR)/jidctred.$(OBJSUFF) \
415 $(JPEGDIR)/jdsample.$(OBJSUFF) \
416 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
417 $(JPEGDIR)/jquant1.$(OBJSUFF) \
418 $(JPEGDIR)/jquant2.$(OBJSUFF) \
419 $(JPEGDIR)/jdmerge.$(OBJSUFF)
420
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
455ifeq ($(MINGW32),1)
456 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
457 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
458 else
459 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
460 endif
461else
462 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
463endif
464
465ifndef WXMAKINGDLL
466all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB)
467else
468all: $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(WXDLL)
469endif
470
471ifndef WXMAKINGDLL
472
473$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
474 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
475 $(RANLIB) $@
476
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
522$(ZLIBLIB): $(ZLIBOBJS)
523 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
524 $(RANLIB) $@
525
526$(PNGLIB): $(PNGOBJS)
527 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
528 $(RANLIB) $@
529
530$(JPEGLIB): $(JPEGOBJS)
531 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
532 $(RANLIB) $@
533
534$(TIFFLIB): $(TIFFOBJS)
535 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
536 $(RANLIB) $@
537
538
539$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
540
541$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
542 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
543
544$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
545 $(COPY) ../common/dosyacc.c ../common/y_tab.c
546
547$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
548 $(COPY) ../common/doslex.c ../common/lex_yy.c
549
550# Replace lex with flex if you run into compilation
551# problems with lex_yy.c. See also note about LEX_SCANNER
552# above.
553# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
554# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
555#
556# Try one of these if the above line doesn't work.
557# Alternative syntax (1)
558# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
559# Alternative syntax (2)
560# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
561#
562# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
563# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
564# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
565# rm -f lex.yy.c
566#
567# Replace yacc with bison if you run into compilation
568# problems with y_tab.c.
569#
570# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
571# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
572#
573# If you use e.g. gcc on Unix, uncomment these lines
574# and comment out the above.
575#
576# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
577# $(YACC) $(COMMDIR)/parser.y
578# mv y.tab.c $(COMMDIR)/y_tab.c
579
580clean:
581 -$(RM) *.o
582 -$(RM) ole/*.o
583 -$(RM) *.bak
584 -$(RM) core
585 -$(RM) ../common/y_tab.c
586 -$(RM) ../common/lex_yy.c
587 -$(RM) ../common/*.o
588 -$(RM) ../common/*.bak
589 -$(RM) ../generic/*.o
590 -$(RM) ../generic/*.bak
591 -$(RM) ../html/*.o
592 -$(RM) ../zlib/*.o
593 -$(RM) ../zlib/*.bak
594 -$(RM) ../png/*.o
595 -$(RM) ../png/*.bak
596 -$(RM) ../jpeg/*.o
597 -$(RM) ../jpeg/*.bak
598 -$(RM) ../tiff/*.o
599 -$(RM) ../tiff/*.bak
600
601cleanall: clean
602 -$(RM) $(WXLIB)
603 -$(RM) $(ZLIBLIB)
604 -$(RM) $(PNGLIB)
605 -$(RM) $(JPEGLIB)
606 -$(RM) $(TIFFLIB)
607
608ifdef WXMAKINGDLL
609 -$(RM) $(WXDLL)
610 -$(RM) $(WXDEF)
611ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
612 -$(RM) wx.base
613 -$(RM) wx.exp
614endif
615endif
616