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