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