]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Removed a deprecated wxBitmap constructor, and some
[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
4a9dba0e 9# Copyright:,
c45a644e
RR
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
b994671d 24WXDLL = $(WXDIR)/lib/wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT)$(MIN_SUFFIX).dll
c448540d 25WXDEF = wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT).def
b994671d
MB
26DLL_EXTRA_LIBS = $(WXDIR)/lib/libzlib$(MIN_SUFFIX).a \
27 $(WXDIR)/lib/libpng$(MIN_SUFFIX).a \
28 $(WXDIR)/lib/libjpeg$(MIN_SUFFIX).a \
29 $(WXDIR)/lib/libtiff$(MIN_SUFFIX).a \
30 $(WXDIR)/lib/libregex$(MIN_SUFFIX).a
8535af00 31DLL_LDFLAGS = -L$(WXDIR)/lib
c448540d
MB
32DLL_BASE_LDLIBS = $(DLL_EXTRA_LIBS) -lstdc++ -lwsock32
33ifeq ($(wxUSE_GUI),0)
34 DLL_LDLIBS = $(DLL_BASE_LDLIBS)
35else
78e376b5 36 DLL_LDLIBS = -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
c448540d
MB
37 -luuid -lrpcrt4 -lodbc32 -lwinmm -lopengl32 \
38 $(DLL_BASE_LDLIBS)
39endif
8535af00
VZ
40endif
41
2bda0e17
KB
42# Subordinate library possibilities
43
44EXTRAOBJS=
45
c45a644e
RR
46GENDIR = $(WXDIR)/src/generic
47COMMDIR = $(WXDIR)/src/common
a3015c54 48HTMLDIR = $(WXDIR)/src/html
8535af00 49ZLIBDIR = $(WXDIR)/src/zlib
c45a644e
RR
50PNGDIR = $(WXDIR)/src/png
51JPEGDIR = $(WXDIR)/src/jpeg
8535af00 52TIFFDIR = $(WXDIR)/src/tiff
c45a644e
RR
53OLEDIR = $(WXDIR)/src/msw/ole
54MSWDIR = $(WXDIR)/src/msw
b3bd664a 55REGEXDIR= $(WXDIR)/src/regex
2bda0e17 56
b994671d
MB
57ZLIBLIB = $(WXDIR)/lib/libzlib$(MIN_SUFFIX).a
58PNGLIB = $(WXDIR)/lib/libpng$(MIN_SUFFIX).a
59JPEGLIB = $(WXDIR)/lib/libjpeg$(MIN_SUFFIX).a
60TIFFLIB = $(WXDIR)/lib/libtiff$(MIN_SUFFIX).a
61REGEXLIB= $(WXDIR)/lib/libregex$(MIN_SUFFIX).a
01dba85a 62
8535af00 63DOCDIR = $(WXDIR)/docs
2bda0e17 64
154f22b3
JS
65# Only use the WIN32 wxDirDialog if we have a recent
66# version of Mingw32
78e376b5 67ifeq "$(strip $(RECENT_MINGW))" "yes"
154f22b3 68 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
154f22b3
JS
69else
70 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
71endif
78e376b5 72
c448540d
MB
73ifeq ($(wxUSE_GUI),0)
74 DIRDLGOBJ =
75endif
76
77GENERICOBJS_BASE = \
154f22b3 78
c45a644e 79GENERICOBJS = \
c448540d 80 $(GENERICOBJS_BASE) \
c45a644e 81 $(GENDIR)/busyinfo.$(OBJSUFF) \
9d9b7755 82 $(GENDIR)/calctrl.$(OBJSUFF) \
2662e49e 83 $(GENDIR)/choicdgg.$(OBJSUFF) \
67e2efca 84 $(GENDIR)/dcbuffer.$(OBJSUFF) \
b403ab00 85 $(GENDIR)/dcpsg.$(OBJSUFF) \
484523cf 86 $(GENDIR)/dirctrlg.$(OBJSUFF) \
68be9f09 87 $(GENDIR)/dragimgg.$(OBJSUFF) \
f85afd4e 88 $(GENDIR)/grid.$(OBJSUFF) \
0537351f 89 $(GENDIR)/gridctrl.$(OBJSUFF) \
5fa399c9 90 $(GENDIR)/gridsel.$(OBJSUFF) \
2662e49e 91 $(GENDIR)/laywin.$(OBJSUFF) \
dd85fc6b 92 $(GENDIR)/logg.$(OBJSUFF) \
9be9b974 93 $(GENDIR)/numdlgg.$(OBJSUFF) \
2662e49e
RR
94 $(GENDIR)/panelg.$(OBJSUFF) \
95 $(GENDIR)/progdlgg.$(OBJSUFF) \
2662e49e 96 $(GENDIR)/sashwin.$(OBJSUFF) \
3379ed37
VZ
97 $(GENDIR)/scrlwing.$(OBJSUFF) \
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
MB
109COMMONOBJS_BASE = \
110 $(COMMDIR)/appcmn.$(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) \
01dba85a 131 $(COMMDIR)/fontmap.$(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) \
77671fd2 158 $(COMMDIR)/strconv.$(OBJSUFF) \
2662e49e
RR
159 $(COMMDIR)/stream.$(OBJSUFF) \
160 $(COMMDIR)/string.$(OBJSUFF) \
0cbff120 161 $(COMMDIR)/sysopt.$(OBJSUFF) \
a3a584a7 162 $(COMMDIR)/textbuf.$(OBJSUFF) \
2662e49e 163 $(COMMDIR)/textfile.$(OBJSUFF) \
2662e49e
RR
164 $(COMMDIR)/timercmn.$(OBJSUFF) \
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) \
f435c1f0
VS
182 $(COMMDIR)/artprov.$(OBJSUFF) \
183 $(COMMDIR)/artstd.$(OBJSUFF) \
c448540d
MB
184 $(COMMDIR)/choiccmn.$(OBJSUFF) \
185 $(COMMDIR)/clipcmn.$(OBJSUFF) \
186 $(COMMDIR)/cmdproc.$(OBJSUFF) \
187 $(COMMDIR)/cmndata.$(OBJSUFF) \
188 $(COMMDIR)/containr.$(OBJSUFF) \
189 $(COMMDIR)/cshelp.$(OBJSUFF) \
190 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
191 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
192 $(COMMDIR)/dbgrid.$(OBJSUFF) \
193 $(COMMDIR)/dcbase.$(OBJSUFF) \
194 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
195 $(COMMDIR)/dndcmn.$(OBJSUFF) \
196 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
197 $(COMMDIR)/docmdi.$(OBJSUFF) \
198 $(COMMDIR)/docview.$(OBJSUFF) \
6f87d554 199 $(COMMDIR)/dpycmn.$(OBJSUFF) \
c448540d
MB
200 $(COMMDIR)/dseldlg.$(OBJSUFF) \
201 $(COMMDIR)/effects.$(OBJSUFF) \
202 $(COMMDIR)/fddlgcmn.$(OBJSUFF) \
203 $(COMMDIR)/fontcmn.$(OBJSUFF) \
204 $(COMMDIR)/framecmn.$(OBJSUFF) \
205 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
206 $(COMMDIR)/gdicmn.$(OBJSUFF) \
207 $(COMMDIR)/geometry.$(OBJSUFF) \
208 $(COMMDIR)/gifdecod.$(OBJSUFF) \
209 $(COMMDIR)/helpbase.$(OBJSUFF) \
f618020a 210 $(COMMDIR)/iconbndl.$(OBJSUFF) \
c448540d
MB
211 $(COMMDIR)/imagall.$(OBJSUFF) \
212 $(COMMDIR)/imagbmp.$(OBJSUFF) \
213 $(COMMDIR)/image.$(OBJSUFF) \
0fa78457 214 $(COMMDIR)/imagfill.$(OBJSUFF) \
c448540d
MB
215 $(COMMDIR)/imaggif.$(OBJSUFF) \
216 $(COMMDIR)/imagiff.$(OBJSUFF) \
217 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
218 $(COMMDIR)/imagpcx.$(OBJSUFF) \
219 $(COMMDIR)/imagpng.$(OBJSUFF) \
220 $(COMMDIR)/imagpnm.$(OBJSUFF) \
221 $(COMMDIR)/imagtiff.$(OBJSUFF) \
222 $(COMMDIR)/imagxpm.$(OBJSUFF) \
223 $(COMMDIR)/layout.$(OBJSUFF) \
224 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
225 $(COMMDIR)/matrix.$(OBJSUFF) \
226 $(COMMDIR)/menucmn.$(OBJSUFF) \
227 $(COMMDIR)/nbkbase.$(OBJSUFF) \
228 $(COMMDIR)/paper.$(OBJSUFF) \
229 $(COMMDIR)/popupcmn.$(OBJSUFF) \
230 $(COMMDIR)/prntbase.$(OBJSUFF) \
231 $(COMMDIR)/quantize.$(OBJSUFF) \
232 $(COMMDIR)/radiocmn.$(OBJSUFF) \
2a736129 233 $(COMMDIR)/rgncmn.$(OBJSUFF) \
c15521c6 234 $(COMMDIR)/settcmn.$(OBJSUFF) \
c448540d
MB
235 $(COMMDIR)/sizer.$(OBJSUFF) \
236 $(COMMDIR)/statbar.$(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) \
c448540d
MB
245 $(COMMDIR)/xpmdecod.$(OBJSUFF)
246
a3015c54 247HTMLOBJS = \
8ec2b484
HH
248 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
249 $(HTMLDIR)/helpdata.$(OBJSUFF) \
250 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
251 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
252 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
253 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
254 $(HTMLDIR)/htmltag.$(OBJSUFF) \
255 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 256 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 257 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
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) \
c44fdc94 265 $(HTMLDIR)/m_style.$(OBJSUFF) \
69941f05 266 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 267 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 268
c448540d
MB
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) \
a0cb0ba5
VS
281 $(MSWDIR)/utilsexc.$(OBJSUFF) \
282 $(MSWDIR)/volume.$(OBJSUFF)
c448540d 283
c45a644e 284MSWOBJS = \
c448540d 285 $(MSWOBJS_BASE) \
a3015c54
RR
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) \
a3015c54
RR
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) \
a3015c54 308 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 309 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54 310 $(MSWDIR)/dib.$(OBJSUFF) \
6f87d554 311 $(MSWDIR)/display.$(OBJSUFF) \
a3015c54 312 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 313 $(MSWDIR)/enhmeta.$(OBJSUFF) \
0cbff120 314 $(MSWDIR)/evtloop.$(OBJSUFF) \
8db37e06 315 $(MSWDIR)/fdrepdlg.$(OBJSUFF) \
a3015c54
RR
316 $(MSWDIR)/filedlg.$(OBJSUFF) \
317 $(MSWDIR)/font.$(OBJSUFF) \
318 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
319 $(MSWDIR)/fontenum.$(OBJSUFF) \
320 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
321 $(MSWDIR)/frame.$(OBJSUFF) \
322 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 323 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 324 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8b089c5e 325 $(MSWDIR)/glcanvas.$(OBJSUFF) \
ce32af5d 326 $(MSWDIR)/helpbest.$(OBJSUFF) \
f6bcfd97 327 $(MSWDIR)/helpchm.$(OBJSUFF) \
a3015c54
RR
328 $(MSWDIR)/helpwin.$(OBJSUFF) \
329 $(MSWDIR)/icon.$(OBJSUFF) \
330 $(MSWDIR)/imaglist.$(OBJSUFF) \
67d947ba 331 $(MSWDIR)/iniconf.$(OBJSUFF) \
a3015c54
RR
332 $(MSWDIR)/joystick.$(OBJSUFF) \
333 $(MSWDIR)/listbox.$(OBJSUFF) \
334 $(MSWDIR)/listctrl.$(OBJSUFF) \
a3015c54
RR
335 $(MSWDIR)/mdi.$(OBJSUFF) \
336 $(MSWDIR)/menu.$(OBJSUFF) \
337 $(MSWDIR)/menuitem.$(OBJSUFF) \
338 $(MSWDIR)/metafile.$(OBJSUFF) \
339 $(MSWDIR)/minifram.$(OBJSUFF) \
340 $(MSWDIR)/msgdlg.$(OBJSUFF) \
3d5231db 341 $(MSWDIR)/mslu.$(OBJSUFF) \
a3015c54
RR
342 $(MSWDIR)/nativdlg.$(OBJSUFF) \
343 $(MSWDIR)/notebook.$(OBJSUFF) \
344 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
345 $(MSWDIR)/palette.$(OBJSUFF) \
346 $(MSWDIR)/pen.$(OBJSUFF) \
347 $(MSWDIR)/penwin.$(OBJSUFF) \
3a03c143 348 $(MSWDIR)/popupwin.$(OBJSUFF) \
a3015c54
RR
349 $(MSWDIR)/printdlg.$(OBJSUFF) \
350 $(MSWDIR)/printwin.$(OBJSUFF) \
351 $(MSWDIR)/radiobox.$(OBJSUFF) \
352 $(MSWDIR)/radiobut.$(OBJSUFF) \
a3015c54 353 $(MSWDIR)/region.$(OBJSUFF) \
a3015c54
RR
354 $(MSWDIR)/scrolbar.$(OBJSUFF) \
355 $(MSWDIR)/settings.$(OBJSUFF) \
356 $(MSWDIR)/slider95.$(OBJSUFF) \
357 $(MSWDIR)/spinbutt.$(OBJSUFF) \
791a2102 358 $(MSWDIR)/spinctrl.$(OBJSUFF) \
a3015c54
RR
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) \
1db8dc4a 368 $(MSWDIR)/tglbtn.$(OBJSUFF) \
a3015c54
RR
369 $(MSWDIR)/timer.$(OBJSUFF) \
370 $(MSWDIR)/tooltip.$(OBJSUFF) \
34a1d732 371 $(MSWDIR)/toplevel.$(OBJSUFF) \
a3015c54 372 $(MSWDIR)/treectrl.$(OBJSUFF) \
a3015c54 373 $(MSWDIR)/wave.$(OBJSUFF) \
f50fd919 374 $(MSWDIR)/window.$(OBJSUFF)
2bda0e17 375
c448540d
MB
376ADVANCEDOBJS_BASE = \
377
6c8a980f 378ADVANCEDOBJS = \
c448540d 379 $(ADVANCEDOBJS_BASE) \
6f87d554 380 $(MSWDIR)/ole/access.$(OBJSUFF) \
6c8a980f
VZ
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
c45a644e
RR
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
8535af00
VZ
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
78e376b5
MB
504ifeq "$(strip $(RECENT_MINGW))" "yes"
505 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
6c8a980f 506else
fd4fe42c 507 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f 508endif
c448540d
MB
509ifeq ($(wxUSE_GUI),0)
510 OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
511endif
2bda0e17 512
6433f6d3
MB
513# how do you do "VAR=\" ? BLEAGH!
514BACKSLASH=$(subst a,\,a)
46c0c2dc 515ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
6433f6d3
MB
516 PATH_SEPARATOR:=$(BACKSLASH)
517 PATH_SUBST=/
518else
6433f6d3
MB
519 PATH_SEPARATOR=/
520 PATH_SUBST:=$(BACKSLASH)
521endif
522
c942560f 523#ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
c448540d 524ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
b3bd664a 525
180db908 526SETUP_H=$(ARCHINCDIR)/wx/setup.h
b3bd664a 527
fa146dd7 528ifndef WXMAKINGDLL
b3bd664a 529all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
fa146dd7 530else
b3bd664a 531all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
fa146dd7 532endif
8535af00 533
180db908 534$(ARCHINCDIR)/wx:
6433f6d3
MB
535 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
536 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
b3bd664a 537
2b5f62a0
VZ
538# Copy ALWAYS uses forward slashes now.
539
78e376b5 540$(SETUP_H): $(ARCHINCDIR)/wx $(WXDIR)/include/wx/msw/setup.h
2b5f62a0 541 $(COPY) $(WXDIR)/include/wx/msw/setup.h $(subst $(BACKSLASH),/,$@)
c942560f 542
2b5f62a0 543# $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
c942560f 544# $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
b3bd664a 545
8535af00 546ifndef WXMAKINGDLL
2bda0e17 547
2bda0e17
KB
548$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
549 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
550 $(RANLIB) $@
551
8535af00
VZ
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)
78e376b5 559 $(CXX) -shared -o $@ \
8535af00
VZ
560 -Wl,--output-def,$(WXDEF) \
561 -Wl,--out-implib,$(WXLIB) \
562 $(OBJECTS) $(EXTRAOBJS) \
78e376b5
MB
563 $(DLL_LDFLAGS) $(DLL_LDLIBS) \
564 $(ALL_LDFLAGS_DLL)
8535af00
VZ
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)
78e376b5 585 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 586 $(DLLTOOL) $(DLL_STUFF)
78e376b5 587 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 588 $(DLLTOOL) $(DLL_STUFF)
78e376b5 589 $(CC) -mdll wx.exp -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00
VZ
590 -$(RM) wx.base
591 -$(RM) wx.exp
592
593endif
594
595endif
596
597
01dba85a 598$(ZLIBLIB): $(ZLIBOBJS)
fa146dd7 599 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
01dba85a
JS
600 $(RANLIB) $@
601
602$(PNGLIB): $(PNGOBJS)
fa146dd7 603 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
01dba85a
JS
604 $(RANLIB) $@
605
606$(JPEGLIB): $(JPEGOBJS)
fa146dd7 607 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
01dba85a
JS
608 $(RANLIB) $@
609
8535af00 610$(TIFFLIB): $(TIFFOBJS)
fa146dd7 611 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
612 $(RANLIB) $@
613
b3bd664a 614$(REGEXLIB):
b994671d 615 $(MAKE) -C $(REGEXDIR) -f makefile.g95 MINGW32=$(MINGW32) WXDIR=$(WXDIR) WXWIN=$(WXDIR)
8535af00 616
b3bd664a 617$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
2bda0e17 618
2bda0e17
KB
619# Replace lex with flex if you run into compilation
620# problems with lex_yy.c. See also note about LEX_SCANNER
621# above.
6a570331
RR
622# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
623# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
624#
8870c26e
JS
625# Try one of these if the above line doesn't work.
626# Alternative syntax (1)
627# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
628# Alternative syntax (2)
629# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
6a570331 630#
2bda0e17
KB
631# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
632# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
633# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
634# rm -f lex.yy.c
6a570331 635#
2bda0e17
KB
636# Replace yacc with bison if you run into compilation
637# problems with y_tab.c.
6a570331
RR
638#
639# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
640# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
641#
57c208c5
JS
642# If you use e.g. gcc on Unix, uncomment these lines
643# and comment out the above.
6a570331 644#
a1b82138 645# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
57c208c5
JS
646# $(YACC) $(COMMDIR)/parser.y
647# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17 648
2bda0e17 649clean:
6474416b 650 -$(RM) *.o
01dba85a 651 -$(RM) ole/*.o
6474416b
JS
652 -$(RM) *.bak
653 -$(RM) core
01dba85a
JS
654 -$(RM) ../common/*.o
655 -$(RM) ../common/*.bak
656 -$(RM) ../generic/*.o
657 -$(RM) ../generic/*.bak
658 -$(RM) ../html/*.o
01dba85a
JS
659 -$(RM) ../zlib/*.o
660 -$(RM) ../zlib/*.bak
8535af00
VZ
661 -$(RM) ../png/*.o
662 -$(RM) ../png/*.bak
01dba85a 663 -$(RM) ../jpeg/*.o
fd4fe42c 664 -$(RM) ../jpeg/*.bak
8535af00
VZ
665 -$(RM) ../tiff/*.o
666 -$(RM) ../tiff/*.bak
b3bd664a
MB
667 -$(RM) ../regex/*.o
668 -$(RM) ../regex/*.bak
6e6d9f9e
VZ
669
670cleanall: clean
8535af00 671 -$(RM) $(WXLIB)
fa146dd7
VS
672 -$(RM) $(ZLIBLIB)
673 -$(RM) $(PNGLIB)
674 -$(RM) $(JPEGLIB)
fa146dd7 675 -$(RM) $(TIFFLIB)
b3bd664a 676 -$(RM) $(REGEXLIB)
8535af00
VZ
677
678ifdef WXMAKINGDLL
679 -$(RM) $(WXDLL)
680 -$(RM) $(WXDEF)
681ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
682 -$(RM) wx.base
683 -$(RM) wx.exp
684endif
685endif
31929f80 686