]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Compilation fix for !WXWIN_COMPATIBILITY_2_4.
[wxWidgets.git] / src / msw / makefile.g95
CommitLineData
c448540d 1# This file was automatically generated by tmake
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 8# Updated: 1999
c45a644e
RR
9# Copyright:(c) 1999, Vadim Zeitlin
10# Copyright:(c) 1999, Robert Roebling
2bda0e17
KB
11#
12# Makefile for libwx.a
13
14# Replace this with your own path if necessary
15WXDIR = ../..
16
c45a644e 17# All common compiler flags and options are now in
2bda0e17
KB
18# this central makefile.
19include $(WXDIR)/src/makeg95.env
20
8535af00
VZ
21# DLL Name, if building wxWindows as a DLL.
22ifdef WXMAKINGDLL
b994671d 23WXDLL = $(WXDIR)/lib/wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT)$(MIN_SUFFIX).dll
c448540d 24WXDEF = wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT).def
b994671d
MB
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
8535af00 30DLL_LDFLAGS = -L$(WXDIR)/lib
c448540d
MB
31DLL_BASE_LDLIBS = $(DLL_EXTRA_LIBS) -lstdc++ -lwsock32
32ifeq ($(wxUSE_GUI),0)
33 DLL_LDLIBS = $(DLL_BASE_LDLIBS)
34else
78e376b5 35 DLL_LDLIBS = -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
c448540d
MB
36 -luuid -lrpcrt4 -lodbc32 -lwinmm -lopengl32 \
37 $(DLL_BASE_LDLIBS)
38endif
8535af00
VZ
39endif
40
2bda0e17
KB
41# Subordinate library possibilities
42
43EXTRAOBJS=
44
c45a644e
RR
45GENDIR = $(WXDIR)/src/generic
46COMMDIR = $(WXDIR)/src/common
a3015c54 47HTMLDIR = $(WXDIR)/src/html
8535af00 48ZLIBDIR = $(WXDIR)/src/zlib
c45a644e
RR
49PNGDIR = $(WXDIR)/src/png
50JPEGDIR = $(WXDIR)/src/jpeg
8535af00 51TIFFDIR = $(WXDIR)/src/tiff
c45a644e
RR
52OLEDIR = $(WXDIR)/src/msw/ole
53MSWDIR = $(WXDIR)/src/msw
b3bd664a 54REGEXDIR= $(WXDIR)/src/regex
2bda0e17 55
b994671d
MB
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
01dba85a 61
8535af00 62DOCDIR = $(WXDIR)/docs
2bda0e17 63
154f22b3
JS
64# Only use the WIN32 wxDirDialog if we have a recent
65# version of Mingw32
78e376b5 66ifeq "$(strip $(RECENT_MINGW))" "yes"
154f22b3 67 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
154f22b3
JS
68else
69 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
70endif
78e376b5 71
c448540d
MB
72ifeq ($(wxUSE_GUI),0)
73 DIRDLGOBJ =
74endif
75
76GENERICOBJS_BASE = \
154f22b3 77
c45a644e 78GENERICOBJS = \
c448540d 79 $(GENERICOBJS_BASE) \
c45a644e 80 $(GENDIR)/busyinfo.$(OBJSUFF) \
9d9b7755 81 $(GENDIR)/calctrl.$(OBJSUFF) \
2662e49e 82 $(GENDIR)/choicdgg.$(OBJSUFF) \
67e2efca 83 $(GENDIR)/dcbuffer.$(OBJSUFF) \
b403ab00 84 $(GENDIR)/dcpsg.$(OBJSUFF) \
484523cf 85 $(GENDIR)/dirctrlg.$(OBJSUFF) \
68be9f09 86 $(GENDIR)/dragimgg.$(OBJSUFF) \
f85afd4e 87 $(GENDIR)/grid.$(OBJSUFF) \
0537351f 88 $(GENDIR)/gridctrl.$(OBJSUFF) \
5fa399c9 89 $(GENDIR)/gridsel.$(OBJSUFF) \
2662e49e 90 $(GENDIR)/laywin.$(OBJSUFF) \
dd85fc6b 91 $(GENDIR)/logg.$(OBJSUFF) \
9be9b974 92 $(GENDIR)/numdlgg.$(OBJSUFF) \
2662e49e
RR
93 $(GENDIR)/panelg.$(OBJSUFF) \
94 $(GENDIR)/progdlgg.$(OBJSUFF) \
2662e49e 95 $(GENDIR)/sashwin.$(OBJSUFF) \
3379ed37 96 $(GENDIR)/scrlwing.$(OBJSUFF) \
b0126f60 97 $(GENDIR)/selstore.$(OBJSUFF) \
3379ed37 98 $(GENDIR)/spinctlg.$(OBJSUFF) \
484523cf 99 $(GENDIR)/splash.$(OBJSUFF) \
2662e49e
RR
100 $(GENDIR)/splitter.$(OBJSUFF) \
101 $(GENDIR)/statusbr.$(OBJSUFF) \
bf84b0be 102 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
2662e49e 103 $(GENDIR)/textdlgg.$(OBJSUFF) \
e8ac7bf2 104 $(GENDIR)/tipdlg.$(OBJSUFF) \
01fa3fe7 105 $(GENDIR)/tipwin.$(OBJSUFF) \
2736b3ce 106 $(GENDIR)/treectlg.$(OBJSUFF) \
e8ac7bf2 107 $(GENDIR)/wizard.$(OBJSUFF)
8baa0e61 108
c448540d 109COMMONOBJS_BASE = \
153ecbb8 110 $(COMMDIR)/appbase.$(OBJSUFF) \
88a9f974 111 $(COMMDIR)/clntdata.$(OBJSUFF) \
2a36259f 112 $(COMMDIR)/cmdline.$(OBJSUFF) \
2662e49e 113 $(COMMDIR)/config.$(OBJSUFF) \
bf84b0be 114 $(COMMDIR)/datetime.$(OBJSUFF) \
2662e49e
RR
115 $(COMMDIR)/datstrm.$(OBJSUFF) \
116 $(COMMDIR)/db.$(OBJSUFF) \
117 $(COMMDIR)/dbtable.$(OBJSUFF) \
0537351f 118 $(COMMDIR)/dircmn.$(OBJSUFF) \
2662e49e
RR
119 $(COMMDIR)/dynarray.$(OBJSUFF) \
120 $(COMMDIR)/dynlib.$(OBJSUFF) \
0b9ab0bd 121 $(COMMDIR)/dynload.$(OBJSUFF) \
15b83243 122 $(COMMDIR)/encconv.$(OBJSUFF) \
2662e49e 123 $(COMMDIR)/event.$(OBJSUFF) \
a1b82138 124 $(COMMDIR)/extended.$(OBJSUFF) \
2662e49e
RR
125 $(COMMDIR)/ffile.$(OBJSUFF) \
126 $(COMMDIR)/file.$(OBJSUFF) \
127 $(COMMDIR)/fileconf.$(OBJSUFF) \
128 $(COMMDIR)/filefn.$(OBJSUFF) \
3b94ab18 129 $(COMMDIR)/filename.$(OBJSUFF) \
2662e49e 130 $(COMMDIR)/filesys.$(OBJSUFF) \
153ecbb8 131 $(COMMDIR)/fmapbase.$(OBJSUFF) \
2662e49e 132 $(COMMDIR)/fs_inet.$(OBJSUFF) \
c692969f 133 $(COMMDIR)/fs_mem.$(OBJSUFF) \
2662e49e
RR
134 $(COMMDIR)/fs_zip.$(OBJSUFF) \
135 $(COMMDIR)/ftp.$(OBJSUFF) \
2662e49e 136 $(COMMDIR)/hash.$(OBJSUFF) \
d74b838c 137 $(COMMDIR)/hashmap.$(OBJSUFF) \
2662e49e 138 $(COMMDIR)/http.$(OBJSUFF) \
2662e49e
RR
139 $(COMMDIR)/intl.$(OBJSUFF) \
140 $(COMMDIR)/ipcbase.$(OBJSUFF) \
2662e49e
RR
141 $(COMMDIR)/list.$(OBJSUFF) \
142 $(COMMDIR)/log.$(OBJSUFF) \
bf84b0be 143 $(COMMDIR)/longlong.$(OBJSUFF) \
2662e49e 144 $(COMMDIR)/memory.$(OBJSUFF) \
5d541a03 145 $(COMMDIR)/mimecmn.$(OBJSUFF) \
2662e49e 146 $(COMMDIR)/module.$(OBJSUFF) \
dc0e23b8 147 $(COMMDIR)/msgout.$(OBJSUFF) \
2662e49e
RR
148 $(COMMDIR)/mstream.$(OBJSUFF) \
149 $(COMMDIR)/object.$(OBJSUFF) \
2662e49e
RR
150 $(COMMDIR)/process.$(OBJSUFF) \
151 $(COMMDIR)/protocol.$(OBJSUFF) \
2bda9cc8 152 $(COMMDIR)/regex.$(OBJSUFF) \
2662e49e
RR
153 $(COMMDIR)/sckaddr.$(OBJSUFF) \
154 $(COMMDIR)/sckfile.$(OBJSUFF) \
2662e49e
RR
155 $(COMMDIR)/sckipc.$(OBJSUFF) \
156 $(COMMDIR)/sckstrm.$(OBJSUFF) \
157 $(COMMDIR)/socket.$(OBJSUFF) \
153ecbb8 158 $(COMMDIR)/stopwatch.$(OBJSUFF) \
77671fd2 159 $(COMMDIR)/strconv.$(OBJSUFF) \
2662e49e
RR
160 $(COMMDIR)/stream.$(OBJSUFF) \
161 $(COMMDIR)/string.$(OBJSUFF) \
0cbff120 162 $(COMMDIR)/sysopt.$(OBJSUFF) \
a3a584a7 163 $(COMMDIR)/textbuf.$(OBJSUFF) \
2662e49e 164 $(COMMDIR)/textfile.$(OBJSUFF) \
2662e49e
RR
165 $(COMMDIR)/tokenzr.$(OBJSUFF) \
166 $(COMMDIR)/txtstrm.$(OBJSUFF) \
167 $(COMMDIR)/unzip.$(OBJSUFF) \
168 $(COMMDIR)/url.$(OBJSUFF) \
169 $(COMMDIR)/utilscmn.$(OBJSUFF) \
2662e49e
RR
170 $(COMMDIR)/variant.$(OBJSUFF) \
171 $(COMMDIR)/wfstream.$(OBJSUFF) \
2662e49e 172 $(COMMDIR)/wxchar.$(OBJSUFF) \
77671fd2 173 $(COMMDIR)/zipstrm.$(OBJSUFF) \
2662e49e 174 $(COMMDIR)/zstream.$(OBJSUFF)
a1b82138 175
c448540d
MB
176COMMONOBJS_BASEONLY = \
177 $(COMMDIR)/init.$(OBJSUFF)
178
179COMMONOBJS = \
180 $(COMMONOBJS_BASE) \
6f87d554 181 $(COMMDIR)/accesscmn.$(OBJSUFF) \
153ecbb8 182 $(COMMDIR)/appcmn.$(OBJSUFF) \
f435c1f0
VS
183 $(COMMDIR)/artprov.$(OBJSUFF) \
184 $(COMMDIR)/artstd.$(OBJSUFF) \
c448540d
MB
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) \
153ecbb8 193 $(COMMDIR)/datacmn.$(OBJSUFF) \
c448540d
MB
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) \
6f87d554 201 $(COMMDIR)/dpycmn.$(OBJSUFF) \
c448540d
MB
202 $(COMMDIR)/dseldlg.$(OBJSUFF) \
203 $(COMMDIR)/effects.$(OBJSUFF) \
204 $(COMMDIR)/fddlgcmn.$(OBJSUFF) \
de896962 205 $(COMMDIR)/fldlgcmn.$(OBJSUFF) \
c448540d 206 $(COMMDIR)/fontcmn.$(OBJSUFF) \
153ecbb8 207 $(COMMDIR)/fontmap.$(OBJSUFF) \
c448540d
MB
208 $(COMMDIR)/framecmn.$(OBJSUFF) \
209 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
210 $(COMMDIR)/gdicmn.$(OBJSUFF) \
211 $(COMMDIR)/geometry.$(OBJSUFF) \
212 $(COMMDIR)/gifdecod.$(OBJSUFF) \
213 $(COMMDIR)/helpbase.$(OBJSUFF) \
f618020a 214 $(COMMDIR)/iconbndl.$(OBJSUFF) \
c448540d
MB
215 $(COMMDIR)/imagall.$(OBJSUFF) \
216 $(COMMDIR)/imagbmp.$(OBJSUFF) \
217 $(COMMDIR)/image.$(OBJSUFF) \
0fa78457 218 $(COMMDIR)/imagfill.$(OBJSUFF) \
c448540d
MB
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) \
2a736129 237 $(COMMDIR)/rgncmn.$(OBJSUFF) \
c15521c6 238 $(COMMDIR)/settcmn.$(OBJSUFF) \
c448540d
MB
239 $(COMMDIR)/sizer.$(OBJSUFF) \
240 $(COMMDIR)/statbar.$(OBJSUFF) \
842f5c94 241 $(COMMDIR)/taskbarcmn.$(OBJSUFF) \
c448540d
MB
242 $(COMMDIR)/tbarbase.$(OBJSUFF) \
243 $(COMMDIR)/textcmn.$(OBJSUFF) \
153ecbb8 244 $(COMMDIR)/timercmn.$(OBJSUFF) \
c448540d
MB
245 $(COMMDIR)/toplvcmn.$(OBJSUFF) \
246 $(COMMDIR)/treebase.$(OBJSUFF) \
247 $(COMMDIR)/valgen.$(OBJSUFF) \
248 $(COMMDIR)/validate.$(OBJSUFF) \
249 $(COMMDIR)/valtext.$(OBJSUFF) \
250 $(COMMDIR)/wincmn.$(OBJSUFF) \
c448540d
MB
251 $(COMMDIR)/xpmdecod.$(OBJSUFF)
252
a3015c54 253HTMLOBJS = \
8ec2b484
HH
254 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
255 $(HTMLDIR)/helpdata.$(OBJSUFF) \
256 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
257 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
258 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
259 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
260 $(HTMLDIR)/htmltag.$(OBJSUFF) \
261 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 262 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 263 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
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) \
c44fdc94 271 $(HTMLDIR)/m_style.$(OBJSUFF) \
69941f05 272 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 273 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 274
c448540d 275MSWOBJS_BASE = \
153ecbb8
VZ
276 $(MSWDIR)/basemsw.$(OBJSUFF) \
277 $(MSWDIR)/dde.$(OBJSUFF) \
c448540d
MB
278 $(MSWDIR)/dir.$(OBJSUFF) \
279 $(MSWDIR)/gsocket.$(OBJSUFF) \
280 $(MSWDIR)/gsockmsw.$(OBJSUFF) \
281 $(MSWDIR)/main.$(OBJSUFF) \
282 $(MSWDIR)/mimetype.$(OBJSUFF) \
153ecbb8 283 $(MSWDIR)/mslu.$(OBJSUFF) \
c448540d
MB
284 $(MSWDIR)/regconf.$(OBJSUFF) \
285 $(MSWDIR)/registry.$(OBJSUFF) \
286 $(MSWDIR)/snglinst.$(OBJSUFF) \
287 $(MSWDIR)/thread.$(OBJSUFF) \
288 $(MSWDIR)/utils.$(OBJSUFF) \
a0cb0ba5
VS
289 $(MSWDIR)/utilsexc.$(OBJSUFF) \
290 $(MSWDIR)/volume.$(OBJSUFF)
c448540d 291
c45a644e 292MSWOBJS = \
c448540d 293 $(MSWOBJS_BASE) \
a3015c54
RR
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) \
a3015c54
RR
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) \
a3015c54 316 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 317 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54 318 $(MSWDIR)/dib.$(OBJSUFF) \
6f87d554 319 $(MSWDIR)/display.$(OBJSUFF) \
a3015c54 320 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 321 $(MSWDIR)/enhmeta.$(OBJSUFF) \
0cbff120 322 $(MSWDIR)/evtloop.$(OBJSUFF) \
8db37e06 323 $(MSWDIR)/fdrepdlg.$(OBJSUFF) \
a3015c54
RR
324 $(MSWDIR)/filedlg.$(OBJSUFF) \
325 $(MSWDIR)/font.$(OBJSUFF) \
326 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
327 $(MSWDIR)/fontenum.$(OBJSUFF) \
328 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
329 $(MSWDIR)/frame.$(OBJSUFF) \
330 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 331 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 332 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8b089c5e 333 $(MSWDIR)/glcanvas.$(OBJSUFF) \
ce32af5d 334 $(MSWDIR)/helpbest.$(OBJSUFF) \
f6bcfd97 335 $(MSWDIR)/helpchm.$(OBJSUFF) \
a3015c54
RR
336 $(MSWDIR)/helpwin.$(OBJSUFF) \
337 $(MSWDIR)/icon.$(OBJSUFF) \
338 $(MSWDIR)/imaglist.$(OBJSUFF) \
67d947ba 339 $(MSWDIR)/iniconf.$(OBJSUFF) \
a3015c54
RR
340 $(MSWDIR)/joystick.$(OBJSUFF) \
341 $(MSWDIR)/listbox.$(OBJSUFF) \
342 $(MSWDIR)/listctrl.$(OBJSUFF) \
a3015c54
RR
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) \
3a03c143 355 $(MSWDIR)/popupwin.$(OBJSUFF) \
a3015c54
RR
356 $(MSWDIR)/printdlg.$(OBJSUFF) \
357 $(MSWDIR)/printwin.$(OBJSUFF) \
358 $(MSWDIR)/radiobox.$(OBJSUFF) \
359 $(MSWDIR)/radiobut.$(OBJSUFF) \
a3015c54 360 $(MSWDIR)/region.$(OBJSUFF) \
a3015c54
RR
361 $(MSWDIR)/scrolbar.$(OBJSUFF) \
362 $(MSWDIR)/settings.$(OBJSUFF) \
363 $(MSWDIR)/slider95.$(OBJSUFF) \
364 $(MSWDIR)/spinbutt.$(OBJSUFF) \
791a2102 365 $(MSWDIR)/spinctrl.$(OBJSUFF) \
a3015c54
RR
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) \
1db8dc4a 375 $(MSWDIR)/tglbtn.$(OBJSUFF) \
a3015c54
RR
376 $(MSWDIR)/timer.$(OBJSUFF) \
377 $(MSWDIR)/tooltip.$(OBJSUFF) \
34a1d732 378 $(MSWDIR)/toplevel.$(OBJSUFF) \
a3015c54 379 $(MSWDIR)/treectrl.$(OBJSUFF) \
153ecbb8 380 $(MSWDIR)/utilsgui.$(OBJSUFF) \
85b43fbf 381 $(MSWDIR)/uxtheme.$(OBJSUFF) \
a3015c54 382 $(MSWDIR)/wave.$(OBJSUFF) \
f50fd919 383 $(MSWDIR)/window.$(OBJSUFF)
2bda0e17 384
c448540d
MB
385ADVANCEDOBJS_BASE = \
386
6c8a980f 387ADVANCEDOBJS = \
c448540d 388 $(ADVANCEDOBJS_BASE) \
6f87d554 389 $(MSWDIR)/ole/access.$(OBJSUFF) \
6c8a980f
VZ
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
c45a644e
RR
397ZLIBOBJS = \
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
413PNGOBJS = \
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
431JPEGOBJS = \
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
8535af00
VZ
479TIFFOBJS = $(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
78e376b5
MB
513ifeq "$(strip $(RECENT_MINGW))" "yes"
514 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
6c8a980f 515else
fd4fe42c 516 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f 517endif
c448540d
MB
518ifeq ($(wxUSE_GUI),0)
519 OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
520endif
2bda0e17 521
6433f6d3
MB
522# how do you do "VAR=\" ? BLEAGH!
523BACKSLASH=$(subst a,\,a)
46c0c2dc 524ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
6433f6d3
MB
525 PATH_SEPARATOR:=$(BACKSLASH)
526 PATH_SUBST=/
527else
6433f6d3
MB
528 PATH_SEPARATOR=/
529 PATH_SUBST:=$(BACKSLASH)
530endif
531
c942560f 532#ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
c448540d 533ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
b3bd664a 534
180db908 535SETUP_H=$(ARCHINCDIR)/wx/setup.h
b3bd664a 536
fa146dd7 537ifndef WXMAKINGDLL
b3bd664a 538all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
fa146dd7 539else
b3bd664a 540all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
fa146dd7 541endif
8535af00 542
180db908 543$(ARCHINCDIR)/wx:
6433f6d3
MB
544 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
545 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
b3bd664a 546
2b5f62a0
VZ
547# Copy ALWAYS uses forward slashes now.
548
78e376b5 549$(SETUP_H): $(ARCHINCDIR)/wx $(WXDIR)/include/wx/msw/setup.h
2b5f62a0 550 $(COPY) $(WXDIR)/include/wx/msw/setup.h $(subst $(BACKSLASH),/,$@)
c942560f 551
2b5f62a0 552# $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
c942560f 553# $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
b3bd664a 554
8535af00 555ifndef WXMAKINGDLL
2bda0e17 556
2bda0e17
KB
557$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
558 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
559 $(RANLIB) $@
560
8535af00
VZ
561else
562
563# The new linker is a few orders of magnitude faster than the old way
564# of creating DLLs.
565ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
566
567$(WXDLL): $(OBJECTS) $(EXTRAOBJS)
78e376b5 568 $(CXX) -shared -o $@ \
8535af00
VZ
569 -Wl,--output-def,$(WXDEF) \
570 -Wl,--out-implib,$(WXLIB) \
571 $(OBJECTS) $(EXTRAOBJS) \
78e376b5
MB
572 $(DLL_LDFLAGS) $(DLL_LDLIBS) \
573 $(ALL_LDFLAGS_DLL)
8535af00
VZ
574else
575
576ifeq ($(MINGW32),1)
577 DLL_ENTRY = _DllMainCRTStartup@12
578else
579 DLL_ENTRY = __cygwin_dll_entry@12
580endif
581LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
582 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
583
584DLL_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)
78e376b5 594 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 595 $(DLLTOOL) $(DLL_STUFF)
78e376b5 596 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 597 $(DLLTOOL) $(DLL_STUFF)
78e376b5 598 $(CC) -mdll wx.exp -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00
VZ
599 -$(RM) wx.base
600 -$(RM) wx.exp
601
602endif
603
604endif
605
606
01dba85a 607$(ZLIBLIB): $(ZLIBOBJS)
fa146dd7 608 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
01dba85a
JS
609 $(RANLIB) $@
610
611$(PNGLIB): $(PNGOBJS)
fa146dd7 612 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
01dba85a
JS
613 $(RANLIB) $@
614
615$(JPEGLIB): $(JPEGOBJS)
fa146dd7 616 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
01dba85a
JS
617 $(RANLIB) $@
618
8535af00 619$(TIFFLIB): $(TIFFOBJS)
fa146dd7 620 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
621 $(RANLIB) $@
622
b3bd664a 623$(REGEXLIB):
b994671d 624 $(MAKE) -C $(REGEXDIR) -f makefile.g95 MINGW32=$(MINGW32) WXDIR=$(WXDIR) WXWIN=$(WXDIR)
8535af00 625
b3bd664a 626$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
2bda0e17 627
2bda0e17 628clean:
6474416b 629 -$(RM) *.o
01dba85a 630 -$(RM) ole/*.o
6474416b
JS
631 -$(RM) *.bak
632 -$(RM) core
01dba85a
JS
633 -$(RM) ../common/*.o
634 -$(RM) ../common/*.bak
635 -$(RM) ../generic/*.o
636 -$(RM) ../generic/*.bak
637 -$(RM) ../html/*.o
01dba85a
JS
638 -$(RM) ../zlib/*.o
639 -$(RM) ../zlib/*.bak
8535af00
VZ
640 -$(RM) ../png/*.o
641 -$(RM) ../png/*.bak
01dba85a 642 -$(RM) ../jpeg/*.o
fd4fe42c 643 -$(RM) ../jpeg/*.bak
8535af00
VZ
644 -$(RM) ../tiff/*.o
645 -$(RM) ../tiff/*.bak
b3bd664a
MB
646 -$(RM) ../regex/*.o
647 -$(RM) ../regex/*.bak
6e6d9f9e
VZ
648
649cleanall: clean
8535af00 650 -$(RM) $(WXLIB)
fa146dd7
VS
651 -$(RM) $(ZLIBLIB)
652 -$(RM) $(PNGLIB)
653 -$(RM) $(JPEGLIB)
fa146dd7 654 -$(RM) $(TIFFLIB)
b3bd664a 655 -$(RM) $(REGEXLIB)
8535af00
VZ
656
657ifdef WXMAKINGDLL
658 -$(RM) $(WXDLL)
659 -$(RM) $(WXDEF)
660ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
661 -$(RM) wx.base
662 -$(RM) wx.exp
663endif
664endif
31929f80 665