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