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