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