]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/makefile.g95
fixed outdated filenames
[wxWidgets.git] / src / msw / makefile.g95
... / ...
CommitLineData
1# This file was automatically generated by tmake
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$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT).dll
25WXDEF = wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT).def
26DLL_EXTRA_LIBS = $(WXDIR)/lib/libzlib.a \
27 $(WXDIR)/lib/libpng.a $(WXDIR)/lib/libjpeg.a \
28 $(WXDIR)/lib/libtiff.a $(WXDIR)/lib/libregex.a
29DLL_LDFLAGS = -L$(WXDIR)/lib
30DLL_BASE_LDLIBS = $(DLL_EXTRA_LIBS) -lstdc++ -lwsock32
31ifeq ($(wxUSE_GUI),0)
32 DLL_LDLIBS = $(DLL_BASE_LDLIBS)
33else
34 DLL_LDLIBS = -mwindows -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
35 -luuid -lrpcrt4 -lodbc32 -lwinmm -lopengl32 \
36 $(DLL_BASE_LDLIBS)
37endif
38endif
39
40# Subordinate library possibilities
41
42EXTRAOBJS=
43
44GENDIR = $(WXDIR)/src/generic
45COMMDIR = $(WXDIR)/src/common
46HTMLDIR = $(WXDIR)/src/html
47ZLIBDIR = $(WXDIR)/src/zlib
48PNGDIR = $(WXDIR)/src/png
49JPEGDIR = $(WXDIR)/src/jpeg
50TIFFDIR = $(WXDIR)/src/tiff
51OLEDIR = $(WXDIR)/src/msw/ole
52MSWDIR = $(WXDIR)/src/msw
53REGEXDIR= $(WXDIR)/src/regex
54
55ZLIBLIB = $(WXDIR)/lib/libzlib.a
56PNGLIB = $(WXDIR)/lib/libpng.a
57JPEGLIB = $(WXDIR)/lib/libjpeg.a
58TIFFLIB = $(WXDIR)/lib/libtiff.a
59REGEXLIB= $(WXDIR)/lib/libregex.a
60
61DOCDIR = $(WXDIR)/docs
62
63# Only use the WIN32 wxDirDialog if we have a recent
64# version of Mingw32
65ifeq ($(MINGW32),1)
66 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
67 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
68 else
69 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
70 endif
71else
72 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
73endif
74ifeq ($(wxUSE_GUI),0)
75 DIRDLGOBJ =
76endif
77
78GENERICOBJS_BASE = \
79
80GENERICOBJS = \
81 $(GENERICOBJS_BASE) \
82 $(GENDIR)/busyinfo.$(OBJSUFF) \
83 $(GENDIR)/calctrl.$(OBJSUFF) \
84 $(GENDIR)/choicdgg.$(OBJSUFF) \
85 $(GENDIR)/dcbuffer.$(OBJSUFF) \
86 $(GENDIR)/dcpsg.$(OBJSUFF) \
87 $(GENDIR)/dirctrlg.$(OBJSUFF) \
88 $(GENDIR)/dragimgg.$(OBJSUFF) \
89 $(GENDIR)/grid.$(OBJSUFF) \
90 $(GENDIR)/gridctrl.$(OBJSUFF) \
91 $(GENDIR)/gridsel.$(OBJSUFF) \
92 $(GENDIR)/laywin.$(OBJSUFF) \
93 $(GENDIR)/logg.$(OBJSUFF) \
94 $(GENDIR)/numdlgg.$(OBJSUFF) \
95 $(GENDIR)/panelg.$(OBJSUFF) \
96 $(GENDIR)/progdlgg.$(OBJSUFF) \
97 $(GENDIR)/prop.$(OBJSUFF) \
98 $(GENDIR)/propform.$(OBJSUFF) \
99 $(GENDIR)/proplist.$(OBJSUFF) \
100 $(GENDIR)/sashwin.$(OBJSUFF) \
101 $(GENDIR)/scrlwing.$(OBJSUFF) \
102 $(GENDIR)/spinctlg.$(OBJSUFF) \
103 $(GENDIR)/splash.$(OBJSUFF) \
104 $(GENDIR)/splitter.$(OBJSUFF) \
105 $(GENDIR)/statusbr.$(OBJSUFF) \
106 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
107 $(GENDIR)/textdlgg.$(OBJSUFF) \
108 $(GENDIR)/tipdlg.$(OBJSUFF) \
109 $(GENDIR)/tipwin.$(OBJSUFF) \
110 $(GENDIR)/treectlg.$(OBJSUFF) \
111 $(GENDIR)/treelay.$(OBJSUFF) \
112 $(GENDIR)/wizard.$(OBJSUFF)
113
114COMMONOBJS_BASE = \
115 $(COMMDIR)/appcmn.$(OBJSUFF) \
116 $(COMMDIR)/clntdata.$(OBJSUFF) \
117 $(COMMDIR)/cmdline.$(OBJSUFF) \
118 $(COMMDIR)/config.$(OBJSUFF) \
119 $(COMMDIR)/datetime.$(OBJSUFF) \
120 $(COMMDIR)/datstrm.$(OBJSUFF) \
121 $(COMMDIR)/db.$(OBJSUFF) \
122 $(COMMDIR)/dbtable.$(OBJSUFF) \
123 $(COMMDIR)/dircmn.$(OBJSUFF) \
124 $(COMMDIR)/dynarray.$(OBJSUFF) \
125 $(COMMDIR)/dynlib.$(OBJSUFF) \
126 $(COMMDIR)/dynload.$(OBJSUFF) \
127 $(COMMDIR)/encconv.$(OBJSUFF) \
128 $(COMMDIR)/event.$(OBJSUFF) \
129 $(COMMDIR)/extended.$(OBJSUFF) \
130 $(COMMDIR)/ffile.$(OBJSUFF) \
131 $(COMMDIR)/file.$(OBJSUFF) \
132 $(COMMDIR)/fileconf.$(OBJSUFF) \
133 $(COMMDIR)/filefn.$(OBJSUFF) \
134 $(COMMDIR)/filename.$(OBJSUFF) \
135 $(COMMDIR)/filesys.$(OBJSUFF) \
136 $(COMMDIR)/fontmap.$(OBJSUFF) \
137 $(COMMDIR)/fs_inet.$(OBJSUFF) \
138 $(COMMDIR)/fs_mem.$(OBJSUFF) \
139 $(COMMDIR)/fs_zip.$(OBJSUFF) \
140 $(COMMDIR)/ftp.$(OBJSUFF) \
141 $(COMMDIR)/hash.$(OBJSUFF) \
142 $(COMMDIR)/hashmap.$(OBJSUFF) \
143 $(COMMDIR)/http.$(OBJSUFF) \
144 $(COMMDIR)/intl.$(OBJSUFF) \
145 $(COMMDIR)/ipcbase.$(OBJSUFF) \
146 $(COMMDIR)/list.$(OBJSUFF) \
147 $(COMMDIR)/log.$(OBJSUFF) \
148 $(COMMDIR)/longlong.$(OBJSUFF) \
149 $(COMMDIR)/memory.$(OBJSUFF) \
150 $(COMMDIR)/mimecmn.$(OBJSUFF) \
151 $(COMMDIR)/module.$(OBJSUFF) \
152 $(COMMDIR)/mstream.$(OBJSUFF) \
153 $(COMMDIR)/object.$(OBJSUFF) \
154 $(COMMDIR)/process.$(OBJSUFF) \
155 $(COMMDIR)/protocol.$(OBJSUFF) \
156 $(COMMDIR)/regex.$(OBJSUFF) \
157 $(COMMDIR)/sckaddr.$(OBJSUFF) \
158 $(COMMDIR)/sckfile.$(OBJSUFF) \
159 $(COMMDIR)/sckipc.$(OBJSUFF) \
160 $(COMMDIR)/sckstrm.$(OBJSUFF) \
161 $(COMMDIR)/socket.$(OBJSUFF) \
162 $(COMMDIR)/strconv.$(OBJSUFF) \
163 $(COMMDIR)/stream.$(OBJSUFF) \
164 $(COMMDIR)/string.$(OBJSUFF) \
165 $(COMMDIR)/sysopt.$(OBJSUFF) \
166 $(COMMDIR)/textbuf.$(OBJSUFF) \
167 $(COMMDIR)/textfile.$(OBJSUFF) \
168 $(COMMDIR)/timercmn.$(OBJSUFF) \
169 $(COMMDIR)/tokenzr.$(OBJSUFF) \
170 $(COMMDIR)/txtstrm.$(OBJSUFF) \
171 $(COMMDIR)/unzip.$(OBJSUFF) \
172 $(COMMDIR)/url.$(OBJSUFF) \
173 $(COMMDIR)/utilscmn.$(OBJSUFF) \
174 $(COMMDIR)/variant.$(OBJSUFF) \
175 $(COMMDIR)/wfstream.$(OBJSUFF) \
176 $(COMMDIR)/wxchar.$(OBJSUFF) \
177 $(COMMDIR)/zipstrm.$(OBJSUFF) \
178 $(COMMDIR)/zstream.$(OBJSUFF)
179
180COMMONOBJS_BASEONLY = \
181 $(COMMDIR)/init.$(OBJSUFF)
182
183COMMONOBJS = \
184 $(COMMONOBJS_BASE) \
185 $(COMMDIR)/y_tab.$(OBJSUFF) \
186 $(COMMDIR)/artprov.$(OBJSUFF) \
187 $(COMMDIR)/artstd.$(OBJSUFF) \
188 $(COMMDIR)/choiccmn.$(OBJSUFF) \
189 $(COMMDIR)/clipcmn.$(OBJSUFF) \
190 $(COMMDIR)/cmdproc.$(OBJSUFF) \
191 $(COMMDIR)/cmndata.$(OBJSUFF) \
192 $(COMMDIR)/containr.$(OBJSUFF) \
193 $(COMMDIR)/cshelp.$(OBJSUFF) \
194 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
195 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
196 $(COMMDIR)/dbgrid.$(OBJSUFF) \
197 $(COMMDIR)/dcbase.$(OBJSUFF) \
198 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
199 $(COMMDIR)/dndcmn.$(OBJSUFF) \
200 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
201 $(COMMDIR)/docmdi.$(OBJSUFF) \
202 $(COMMDIR)/docview.$(OBJSUFF) \
203 $(COMMDIR)/dseldlg.$(OBJSUFF) \
204 $(COMMDIR)/effects.$(OBJSUFF) \
205 $(COMMDIR)/fddlgcmn.$(OBJSUFF) \
206 $(COMMDIR)/fontcmn.$(OBJSUFF) \
207 $(COMMDIR)/framecmn.$(OBJSUFF) \
208 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
209 $(COMMDIR)/gdicmn.$(OBJSUFF) \
210 $(COMMDIR)/geometry.$(OBJSUFF) \
211 $(COMMDIR)/gifdecod.$(OBJSUFF) \
212 $(COMMDIR)/helpbase.$(OBJSUFF) \
213 $(COMMDIR)/iconbndl.$(OBJSUFF) \
214 $(COMMDIR)/imagall.$(OBJSUFF) \
215 $(COMMDIR)/imagbmp.$(OBJSUFF) \
216 $(COMMDIR)/image.$(OBJSUFF) \
217 $(COMMDIR)/imagfill.$(OBJSUFF) \
218 $(COMMDIR)/imaggif.$(OBJSUFF) \
219 $(COMMDIR)/imagiff.$(OBJSUFF) \
220 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
221 $(COMMDIR)/imagpcx.$(OBJSUFF) \
222 $(COMMDIR)/imagpng.$(OBJSUFF) \
223 $(COMMDIR)/imagpnm.$(OBJSUFF) \
224 $(COMMDIR)/imagtiff.$(OBJSUFF) \
225 $(COMMDIR)/imagxpm.$(OBJSUFF) \
226 $(COMMDIR)/layout.$(OBJSUFF) \
227 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
228 $(COMMDIR)/matrix.$(OBJSUFF) \
229 $(COMMDIR)/menucmn.$(OBJSUFF) \
230 $(COMMDIR)/nbkbase.$(OBJSUFF) \
231 $(COMMDIR)/paper.$(OBJSUFF) \
232 $(COMMDIR)/popupcmn.$(OBJSUFF) \
233 $(COMMDIR)/prntbase.$(OBJSUFF) \
234 $(COMMDIR)/quantize.$(OBJSUFF) \
235 $(COMMDIR)/radiocmn.$(OBJSUFF) \
236 $(COMMDIR)/resource.$(OBJSUFF) \
237 $(COMMDIR)/sizer.$(OBJSUFF) \
238 $(COMMDIR)/statbar.$(OBJSUFF) \
239 $(COMMDIR)/tbarbase.$(OBJSUFF) \
240 $(COMMDIR)/textcmn.$(OBJSUFF) \
241 $(COMMDIR)/toplvcmn.$(OBJSUFF) \
242 $(COMMDIR)/treebase.$(OBJSUFF) \
243 $(COMMDIR)/valgen.$(OBJSUFF) \
244 $(COMMDIR)/validate.$(OBJSUFF) \
245 $(COMMDIR)/valtext.$(OBJSUFF) \
246 $(COMMDIR)/wincmn.$(OBJSUFF) \
247 $(COMMDIR)/wxexpr.$(OBJSUFF) \
248 $(COMMDIR)/xpmdecod.$(OBJSUFF)
249
250HTMLOBJS = \
251 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
252 $(HTMLDIR)/helpdata.$(OBJSUFF) \
253 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
254 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
255 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
256 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
257 $(HTMLDIR)/htmltag.$(OBJSUFF) \
258 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
259 $(HTMLDIR)/htmprint.$(OBJSUFF) \
260 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
261 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
262 $(HTMLDIR)/m_hline.$(OBJSUFF) \
263 $(HTMLDIR)/m_image.$(OBJSUFF) \
264 $(HTMLDIR)/m_layout.$(OBJSUFF) \
265 $(HTMLDIR)/m_links.$(OBJSUFF) \
266 $(HTMLDIR)/m_list.$(OBJSUFF) \
267 $(HTMLDIR)/m_meta.$(OBJSUFF) \
268 $(HTMLDIR)/m_pre.$(OBJSUFF) \
269 $(HTMLDIR)/m_style.$(OBJSUFF) \
270 $(HTMLDIR)/m_tables.$(OBJSUFF) \
271 $(HTMLDIR)/winpars.$(OBJSUFF)
272
273MSWOBJS_BASE = \
274 $(MSWDIR)/dde.$(OBJSUFF) \
275 $(MSWDIR)/dir.$(OBJSUFF) \
276 $(MSWDIR)/gsocket.$(OBJSUFF) \
277 $(MSWDIR)/gsockmsw.$(OBJSUFF) \
278 $(MSWDIR)/main.$(OBJSUFF) \
279 $(MSWDIR)/mimetype.$(OBJSUFF) \
280 $(MSWDIR)/regconf.$(OBJSUFF) \
281 $(MSWDIR)/registry.$(OBJSUFF) \
282 $(MSWDIR)/snglinst.$(OBJSUFF) \
283 $(MSWDIR)/thread.$(OBJSUFF) \
284 $(MSWDIR)/utils.$(OBJSUFF) \
285 $(MSWDIR)/utilsexc.$(OBJSUFF) \
286 $(MSWDIR)/volume.$(OBJSUFF)
287
288MSWOBJS = \
289 $(MSWOBJS_BASE) \
290 $(MSWDIR)/accel.$(OBJSUFF) \
291 $(MSWDIR)/app.$(OBJSUFF) \
292 $(MSWDIR)/bitmap.$(OBJSUFF) \
293 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
294 $(MSWDIR)/brush.$(OBJSUFF) \
295 $(MSWDIR)/button.$(OBJSUFF) \
296 $(MSWDIR)/caret.$(OBJSUFF) \
297 $(MSWDIR)/checkbox.$(OBJSUFF) \
298 $(MSWDIR)/checklst.$(OBJSUFF) \
299 $(MSWDIR)/choice.$(OBJSUFF) \
300 $(MSWDIR)/clipbrd.$(OBJSUFF) \
301 $(MSWDIR)/colordlg.$(OBJSUFF) \
302 $(MSWDIR)/colour.$(OBJSUFF) \
303 $(MSWDIR)/combobox.$(OBJSUFF) \
304 $(MSWDIR)/control.$(OBJSUFF) \
305 $(MSWDIR)/curico.$(OBJSUFF) \
306 $(MSWDIR)/cursor.$(OBJSUFF) \
307 $(MSWDIR)/data.$(OBJSUFF) \
308 $(MSWDIR)/dc.$(OBJSUFF) \
309 $(MSWDIR)/dcclient.$(OBJSUFF) \
310 $(MSWDIR)/dcmemory.$(OBJSUFF) \
311 $(MSWDIR)/dcprint.$(OBJSUFF) \
312 $(MSWDIR)/dcscreen.$(OBJSUFF) \
313 $(MSWDIR)/dialog.$(OBJSUFF) \
314 $(MSWDIR)/dialup.$(OBJSUFF) \
315 $(MSWDIR)/dib.$(OBJSUFF) \
316 $(MSWDIR)/dibutils.$(OBJSUFF) \
317 $(MSWDIR)/dragimag.$(OBJSUFF) \
318 $(MSWDIR)/enhmeta.$(OBJSUFF) \
319 $(MSWDIR)/evtloop.$(OBJSUFF) \
320 $(MSWDIR)/fdrepdlg.$(OBJSUFF) \
321 $(MSWDIR)/filedlg.$(OBJSUFF) \
322 $(MSWDIR)/font.$(OBJSUFF) \
323 $(MSWDIR)/fontdlg.$(OBJSUFF) \
324 $(MSWDIR)/fontenum.$(OBJSUFF) \
325 $(MSWDIR)/fontutil.$(OBJSUFF) \
326 $(MSWDIR)/frame.$(OBJSUFF) \
327 $(MSWDIR)/gauge95.$(OBJSUFF) \
328 $(MSWDIR)/gdiimage.$(OBJSUFF) \
329 $(MSWDIR)/gdiobj.$(OBJSUFF) \
330 $(MSWDIR)/glcanvas.$(OBJSUFF) \
331 $(MSWDIR)/helpbest.$(OBJSUFF) \
332 $(MSWDIR)/helpchm.$(OBJSUFF) \
333 $(MSWDIR)/helpwin.$(OBJSUFF) \
334 $(MSWDIR)/icon.$(OBJSUFF) \
335 $(MSWDIR)/imaglist.$(OBJSUFF) \
336 $(MSWDIR)/iniconf.$(OBJSUFF) \
337 $(MSWDIR)/joystick.$(OBJSUFF) \
338 $(MSWDIR)/listbox.$(OBJSUFF) \
339 $(MSWDIR)/listctrl.$(OBJSUFF) \
340 $(MSWDIR)/mdi.$(OBJSUFF) \
341 $(MSWDIR)/menu.$(OBJSUFF) \
342 $(MSWDIR)/menuitem.$(OBJSUFF) \
343 $(MSWDIR)/metafile.$(OBJSUFF) \
344 $(MSWDIR)/minifram.$(OBJSUFF) \
345 $(MSWDIR)/msgdlg.$(OBJSUFF) \
346 $(MSWDIR)/mslu.$(OBJSUFF) \
347 $(MSWDIR)/nativdlg.$(OBJSUFF) \
348 $(MSWDIR)/notebook.$(OBJSUFF) \
349 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
350 $(MSWDIR)/palette.$(OBJSUFF) \
351 $(MSWDIR)/pen.$(OBJSUFF) \
352 $(MSWDIR)/penwin.$(OBJSUFF) \
353 $(MSWDIR)/printdlg.$(OBJSUFF) \
354 $(MSWDIR)/printwin.$(OBJSUFF) \
355 $(MSWDIR)/radiobox.$(OBJSUFF) \
356 $(MSWDIR)/radiobut.$(OBJSUFF) \
357 $(MSWDIR)/region.$(OBJSUFF) \
358 $(MSWDIR)/scrolbar.$(OBJSUFF) \
359 $(MSWDIR)/settings.$(OBJSUFF) \
360 $(MSWDIR)/slider95.$(OBJSUFF) \
361 $(MSWDIR)/spinbutt.$(OBJSUFF) \
362 $(MSWDIR)/spinctrl.$(OBJSUFF) \
363 $(MSWDIR)/statbmp.$(OBJSUFF) \
364 $(MSWDIR)/statbox.$(OBJSUFF) \
365 $(MSWDIR)/statbr95.$(OBJSUFF) \
366 $(MSWDIR)/statline.$(OBJSUFF) \
367 $(MSWDIR)/stattext.$(OBJSUFF) \
368 $(MSWDIR)/tabctrl.$(OBJSUFF) \
369 $(MSWDIR)/taskbar.$(OBJSUFF) \
370 $(MSWDIR)/tbar95.$(OBJSUFF) \
371 $(MSWDIR)/textctrl.$(OBJSUFF) \
372 $(MSWDIR)/tglbtn.$(OBJSUFF) \
373 $(MSWDIR)/timer.$(OBJSUFF) \
374 $(MSWDIR)/tooltip.$(OBJSUFF) \
375 $(MSWDIR)/toplevel.$(OBJSUFF) \
376 $(MSWDIR)/treectrl.$(OBJSUFF) \
377 $(MSWDIR)/wave.$(OBJSUFF) \
378 $(MSWDIR)/window.$(OBJSUFF)
379
380ADVANCEDOBJS_BASE = \
381
382ADVANCEDOBJS = \
383 $(ADVANCEDOBJS_BASE) \
384 $(COMMDIR)/odbc.$(OBJSUFF) \
385 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
386 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
387 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
388 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
389 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
390 $(MSWDIR)/ole/uuid.$(OBJSUFF)
391
392ZLIBOBJS = \
393 $(ZLIBDIR)/adler32.$(OBJSUFF) \
394 $(ZLIBDIR)/compress.$(OBJSUFF) \
395 $(ZLIBDIR)/crc32.$(OBJSUFF) \
396 $(ZLIBDIR)/gzio.$(OBJSUFF) \
397 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
398 $(ZLIBDIR)/deflate.$(OBJSUFF) \
399 $(ZLIBDIR)/trees.$(OBJSUFF) \
400 $(ZLIBDIR)/zutil.$(OBJSUFF) \
401 $(ZLIBDIR)/inflate.$(OBJSUFF) \
402 $(ZLIBDIR)/infblock.$(OBJSUFF) \
403 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
404 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
405 $(ZLIBDIR)/infutil.$(OBJSUFF) \
406 $(ZLIBDIR)/inffast.$(OBJSUFF)
407
408PNGOBJS = \
409 $(PNGDIR)/png.$(OBJSUFF) \
410 $(PNGDIR)/pngread.$(OBJSUFF) \
411 $(PNGDIR)/pngrtran.$(OBJSUFF) \
412 $(PNGDIR)/pngrutil.$(OBJSUFF) \
413 $(PNGDIR)/pngpread.$(OBJSUFF) \
414 $(PNGDIR)/pngtrans.$(OBJSUFF) \
415 $(PNGDIR)/pngwrite.$(OBJSUFF) \
416 $(PNGDIR)/pngwtran.$(OBJSUFF) \
417 $(PNGDIR)/pngwutil.$(OBJSUFF) \
418 $(PNGDIR)/pngerror.$(OBJSUFF) \
419 $(PNGDIR)/pngmem.$(OBJSUFF) \
420 $(PNGDIR)/pngwio.$(OBJSUFF) \
421 $(PNGDIR)/pngrio.$(OBJSUFF) \
422 $(PNGDIR)/pngget.$(OBJSUFF) \
423 $(PNGDIR)/pngset.$(OBJSUFF)
424
425
426JPEGOBJS = \
427 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
428 $(JPEGDIR)/jutils.$(OBJSUFF) \
429 $(JPEGDIR)/jerror.$(OBJSUFF) \
430 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
431 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
432 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
433 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
434 $(JPEGDIR)/jctrans.$(OBJSUFF) \
435 $(JPEGDIR)/jcparam.$(OBJSUFF) \
436 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
437 $(JPEGDIR)/jcinit.$(OBJSUFF) \
438 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
439 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
440 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
441 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
442 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
443 $(JPEGDIR)/jccolor.$(OBJSUFF) \
444 $(JPEGDIR)/jcsample.$(OBJSUFF) \
445 $(JPEGDIR)/jchuff.$(OBJSUFF) \
446 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
447 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
448 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
449 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
450 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
451 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
452 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
453 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
454 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
455 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
456 $(JPEGDIR)/jdinput.$(OBJSUFF) \
457 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
458 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
459 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
460 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
461 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
462 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
463 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
464 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
465 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
466 $(JPEGDIR)/jidctint.$(OBJSUFF) \
467 $(JPEGDIR)/jidctred.$(OBJSUFF) \
468 $(JPEGDIR)/jdsample.$(OBJSUFF) \
469 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
470 $(JPEGDIR)/jquant1.$(OBJSUFF) \
471 $(JPEGDIR)/jquant2.$(OBJSUFF) \
472 $(JPEGDIR)/jdmerge.$(OBJSUFF)
473
474TIFFOBJS = $(TIFFDIR)/tif_aux.o \
475 $(TIFFDIR)/tif_close.o \
476 $(TIFFDIR)/tif_codec.o \
477 $(TIFFDIR)/tif_compress.o \
478 $(TIFFDIR)/tif_dir.o \
479 $(TIFFDIR)/tif_dirinfo.o \
480 $(TIFFDIR)/tif_dirread.o \
481 $(TIFFDIR)/tif_dirwrite.o \
482 $(TIFFDIR)/tif_dumpmode.o \
483 $(TIFFDIR)/tif_error.o \
484 $(TIFFDIR)/tif_fax3.o \
485 $(TIFFDIR)/tif_fax3sm.o \
486 $(TIFFDIR)/tif_flush.o \
487 $(TIFFDIR)/tif_getimage.o \
488 $(TIFFDIR)/tif_jpeg.o \
489 $(TIFFDIR)/tif_luv.o \
490 $(TIFFDIR)/tif_lzw.o \
491 $(TIFFDIR)/tif_next.o \
492 $(TIFFDIR)/tif_open.o \
493 $(TIFFDIR)/tif_packbits.o \
494 $(TIFFDIR)/tif_pixarlog.o \
495 $(TIFFDIR)/tif_predict.o \
496 $(TIFFDIR)/tif_print.o \
497 $(TIFFDIR)/tif_read.o \
498 $(TIFFDIR)/tif_strip.o \
499 $(TIFFDIR)/tif_swab.o \
500 $(TIFFDIR)/tif_thunder.o \
501 $(TIFFDIR)/tif_tile.o \
502 $(TIFFDIR)/tif_version.o \
503 $(TIFFDIR)/tif_warning.o \
504 $(TIFFDIR)/tif_win32.o \
505 $(TIFFDIR)/tif_write.o \
506 $(TIFFDIR)/tif_zip.o
507
508ifeq ($(MINGW32),1)
509 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
510 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
511 else
512 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
513 endif
514else
515 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
516endif
517ifeq ($(wxUSE_GUI),0)
518 OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
519endif
520
521# MBN: if anyone has a better solution for this kludge, step
522# forward, *please*
523# this tests is we are on cygwin or not ( will _not_ work if you are using
524# ZSH on plain Win32, tought ); it uses the presence of "/"
525# in the PATH variable
526
527# how do you do "VAR=\" ? BLEAGH!
528BACKSLASH=$(subst a,\,a)
529ifeq (,$(findstring /,$(PATH)))
530 IS_CYGWIN=0
531 PATH_SEPARATOR:=$(BACKSLASH)
532 PATH_SUBST=/
533else
534 IS_CYGWIN=1
535 PATH_SEPARATOR=/
536 PATH_SUBST:=$(BACKSLASH)
537endif
538
539#ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
540ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
541
542SETUP_H=$(ARCHINCDIR)/wx/setup.h
543
544ifndef WXMAKINGDLL
545all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
546else
547all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
548endif
549
550$(ARCHINCDIR)/wx:
551 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
552 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
553
554$(SETUP_H): $(ARCHINCDIR)/wx
555 $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
556
557# $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
558
559ifndef WXMAKINGDLL
560
561$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
562 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
563 $(RANLIB) $@
564
565else
566
567# The new linker is a few orders of magnitude faster than the old way
568# of creating DLLs.
569ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
570
571$(WXDLL): $(OBJECTS) $(EXTRAOBJS)
572 $(CC) -shared -o $@ \
573 -Wl,--output-def,$(WXDEF) \
574 -Wl,--out-implib,$(WXLIB) \
575 $(OBJECTS) $(EXTRAOBJS) \
576 $(DLL_LDFLAGS) $(DLL_LDLIBS)
577else
578
579ifeq ($(MINGW32),1)
580 DLL_ENTRY = _DllMainCRTStartup@12
581else
582 DLL_ENTRY = __cygwin_dll_entry@12
583endif
584LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
585 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
586
587DLL_STUFF = --as=$(AS) --dllname $(notdir $(WXDLL)) \
588 --def $(WXDEF) \
589 --base-file wx.base --output-exp wx.exp
590
591$(WXDEF) $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
592 $(DLLTOOL) --output-def $@ --output-lib $(WXLIB) \
593 --dllname $(notdir $(WXDLL)) \
594 $(OBJECTS) $(EXTRAOBJS) $(DLL_EXTRA_LIBS)
595
596$(WXDLL): $(OBJECTS) $(EXTRAOBJS) $(WXDEF)
597 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF)
598 $(DLLTOOL) $(DLL_STUFF)
599 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF)
600 $(DLLTOOL) $(DLL_STUFF)
601 $(CC) -mdll wx.exp -o $@ $(LD_STUFF)
602 -$(RM) wx.base
603 -$(RM) wx.exp
604
605endif
606
607endif
608
609
610$(ZLIBLIB): $(ZLIBOBJS)
611 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
612 $(RANLIB) $@
613
614$(PNGLIB): $(PNGOBJS)
615 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
616 $(RANLIB) $@
617
618$(JPEGLIB): $(JPEGOBJS)
619 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
620 $(RANLIB) $@
621
622$(TIFFLIB): $(TIFFOBJS)
623 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
624 $(RANLIB) $@
625
626$(REGEXLIB):
627 $(MAKE) -C $(REGEXDIR) -f makefile.g95 WXDIR=$(WXDIR)
628
629$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
630
631$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
632 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
633
634$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
635 $(COPY) ../common/dosyacc.c ../common/y_tab.c
636
637$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
638 $(COPY) ../common/doslex.c ../common/lex_yy.c
639
640# Replace lex with flex if you run into compilation
641# problems with lex_yy.c. See also note about LEX_SCANNER
642# above.
643# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
644# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
645#
646# Try one of these if the above line doesn't work.
647# Alternative syntax (1)
648# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
649# Alternative syntax (2)
650# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
651#
652# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
653# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
654# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
655# rm -f lex.yy.c
656#
657# Replace yacc with bison if you run into compilation
658# problems with y_tab.c.
659#
660# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
661# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
662#
663# If you use e.g. gcc on Unix, uncomment these lines
664# and comment out the above.
665#
666# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
667# $(YACC) $(COMMDIR)/parser.y
668# mv y.tab.c $(COMMDIR)/y_tab.c
669
670clean:
671 -$(RM) *.o
672 -$(RM) ole/*.o
673 -$(RM) *.bak
674 -$(RM) core
675 -$(RM) ../common/y_tab.c
676 -$(RM) ../common/lex_yy.c
677 -$(RM) ../common/*.o
678 -$(RM) ../common/*.bak
679 -$(RM) ../generic/*.o
680 -$(RM) ../generic/*.bak
681 -$(RM) ../html/*.o
682 -$(RM) ../zlib/*.o
683 -$(RM) ../zlib/*.bak
684 -$(RM) ../png/*.o
685 -$(RM) ../png/*.bak
686 -$(RM) ../jpeg/*.o
687 -$(RM) ../jpeg/*.bak
688 -$(RM) ../tiff/*.o
689 -$(RM) ../tiff/*.bak
690 -$(RM) ../regex/*.o
691 -$(RM) ../regex/*.bak
692
693cleanall: clean
694 -$(RM) $(WXLIB)
695 -$(RM) $(ZLIBLIB)
696 -$(RM) $(PNGLIB)
697 -$(RM) $(JPEGLIB)
698 -$(RM) $(TIFFLIB)
699 -$(RM) $(REGEXLIB)
700
701ifdef WXMAKINGDLL
702 -$(RM) $(WXDLL)
703 -$(RM) $(WXDEF)
704ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
705 -$(RM) wx.base
706 -$(RM) wx.exp
707endif
708endif
709