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