]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
Allow for multiple CHM controllers in app (don't leak dynamic libs)
[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
VZ
96 $(GENDIR)/scrlwing.$(OBJSUFF) \
97 $(GENDIR)/spinctlg.$(OBJSUFF) \
484523cf 98 $(GENDIR)/splash.$(OBJSUFF) \
2662e49e
RR
99 $(GENDIR)/splitter.$(OBJSUFF) \
100 $(GENDIR)/statusbr.$(OBJSUFF) \
bf84b0be 101 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
2662e49e 102 $(GENDIR)/textdlgg.$(OBJSUFF) \
e8ac7bf2 103 $(GENDIR)/tipdlg.$(OBJSUFF) \
01fa3fe7 104 $(GENDIR)/tipwin.$(OBJSUFF) \
2736b3ce 105 $(GENDIR)/treectlg.$(OBJSUFF) \
e8ac7bf2 106 $(GENDIR)/wizard.$(OBJSUFF)
8baa0e61 107
c448540d
MB
108COMMONOBJS_BASE = \
109 $(COMMDIR)/appcmn.$(OBJSUFF) \
88a9f974 110 $(COMMDIR)/clntdata.$(OBJSUFF) \
2a36259f 111 $(COMMDIR)/cmdline.$(OBJSUFF) \
2662e49e 112 $(COMMDIR)/config.$(OBJSUFF) \
bfe835d0 113 $(COMMDIR)/datacmn.$(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) \
842f5c94 237 $(COMMDIR)/taskbarcmn.$(OBJSUFF) \
c448540d
MB
238 $(COMMDIR)/tbarbase.$(OBJSUFF) \
239 $(COMMDIR)/textcmn.$(OBJSUFF) \
240 $(COMMDIR)/toplvcmn.$(OBJSUFF) \
241 $(COMMDIR)/treebase.$(OBJSUFF) \
242 $(COMMDIR)/valgen.$(OBJSUFF) \
243 $(COMMDIR)/validate.$(OBJSUFF) \
244 $(COMMDIR)/valtext.$(OBJSUFF) \
245 $(COMMDIR)/wincmn.$(OBJSUFF) \
c448540d
MB
246 $(COMMDIR)/xpmdecod.$(OBJSUFF)
247
a3015c54 248HTMLOBJS = \
8ec2b484
HH
249 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
250 $(HTMLDIR)/helpdata.$(OBJSUFF) \
251 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
252 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
253 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
254 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
255 $(HTMLDIR)/htmltag.$(OBJSUFF) \
256 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 257 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 258 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
259 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
260 $(HTMLDIR)/m_hline.$(OBJSUFF) \
261 $(HTMLDIR)/m_image.$(OBJSUFF) \
262 $(HTMLDIR)/m_layout.$(OBJSUFF) \
263 $(HTMLDIR)/m_links.$(OBJSUFF) \
264 $(HTMLDIR)/m_list.$(OBJSUFF) \
265 $(HTMLDIR)/m_pre.$(OBJSUFF) \
c44fdc94 266 $(HTMLDIR)/m_style.$(OBJSUFF) \
69941f05 267 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 268 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 269
c448540d
MB
270MSWOBJS_BASE = \
271 $(MSWDIR)/dde.$(OBJSUFF) \
272 $(MSWDIR)/dir.$(OBJSUFF) \
273 $(MSWDIR)/gsocket.$(OBJSUFF) \
274 $(MSWDIR)/gsockmsw.$(OBJSUFF) \
275 $(MSWDIR)/main.$(OBJSUFF) \
276 $(MSWDIR)/mimetype.$(OBJSUFF) \
277 $(MSWDIR)/regconf.$(OBJSUFF) \
278 $(MSWDIR)/registry.$(OBJSUFF) \
279 $(MSWDIR)/snglinst.$(OBJSUFF) \
280 $(MSWDIR)/thread.$(OBJSUFF) \
281 $(MSWDIR)/utils.$(OBJSUFF) \
a0cb0ba5
VS
282 $(MSWDIR)/utilsexc.$(OBJSUFF) \
283 $(MSWDIR)/volume.$(OBJSUFF)
c448540d 284
c45a644e 285MSWOBJS = \
c448540d 286 $(MSWOBJS_BASE) \
a3015c54
RR
287 $(MSWDIR)/accel.$(OBJSUFF) \
288 $(MSWDIR)/app.$(OBJSUFF) \
289 $(MSWDIR)/bitmap.$(OBJSUFF) \
290 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
291 $(MSWDIR)/brush.$(OBJSUFF) \
292 $(MSWDIR)/button.$(OBJSUFF) \
293 $(MSWDIR)/caret.$(OBJSUFF) \
294 $(MSWDIR)/checkbox.$(OBJSUFF) \
295 $(MSWDIR)/checklst.$(OBJSUFF) \
296 $(MSWDIR)/choice.$(OBJSUFF) \
297 $(MSWDIR)/clipbrd.$(OBJSUFF) \
298 $(MSWDIR)/colordlg.$(OBJSUFF) \
299 $(MSWDIR)/colour.$(OBJSUFF) \
300 $(MSWDIR)/combobox.$(OBJSUFF) \
301 $(MSWDIR)/control.$(OBJSUFF) \
a3015c54
RR
302 $(MSWDIR)/cursor.$(OBJSUFF) \
303 $(MSWDIR)/data.$(OBJSUFF) \
304 $(MSWDIR)/dc.$(OBJSUFF) \
305 $(MSWDIR)/dcclient.$(OBJSUFF) \
306 $(MSWDIR)/dcmemory.$(OBJSUFF) \
307 $(MSWDIR)/dcprint.$(OBJSUFF) \
308 $(MSWDIR)/dcscreen.$(OBJSUFF) \
a3015c54 309 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 310 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54 311 $(MSWDIR)/dib.$(OBJSUFF) \
6f87d554 312 $(MSWDIR)/display.$(OBJSUFF) \
a3015c54 313 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 314 $(MSWDIR)/enhmeta.$(OBJSUFF) \
0cbff120 315 $(MSWDIR)/evtloop.$(OBJSUFF) \
8db37e06 316 $(MSWDIR)/fdrepdlg.$(OBJSUFF) \
a3015c54
RR
317 $(MSWDIR)/filedlg.$(OBJSUFF) \
318 $(MSWDIR)/font.$(OBJSUFF) \
319 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
320 $(MSWDIR)/fontenum.$(OBJSUFF) \
321 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
322 $(MSWDIR)/frame.$(OBJSUFF) \
323 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 324 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 325 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8b089c5e 326 $(MSWDIR)/glcanvas.$(OBJSUFF) \
ce32af5d 327 $(MSWDIR)/helpbest.$(OBJSUFF) \
f6bcfd97 328 $(MSWDIR)/helpchm.$(OBJSUFF) \
a3015c54
RR
329 $(MSWDIR)/helpwin.$(OBJSUFF) \
330 $(MSWDIR)/icon.$(OBJSUFF) \
331 $(MSWDIR)/imaglist.$(OBJSUFF) \
67d947ba 332 $(MSWDIR)/iniconf.$(OBJSUFF) \
a3015c54
RR
333 $(MSWDIR)/joystick.$(OBJSUFF) \
334 $(MSWDIR)/listbox.$(OBJSUFF) \
335 $(MSWDIR)/listctrl.$(OBJSUFF) \
a3015c54
RR
336 $(MSWDIR)/mdi.$(OBJSUFF) \
337 $(MSWDIR)/menu.$(OBJSUFF) \
338 $(MSWDIR)/menuitem.$(OBJSUFF) \
339 $(MSWDIR)/metafile.$(OBJSUFF) \
340 $(MSWDIR)/minifram.$(OBJSUFF) \
341 $(MSWDIR)/msgdlg.$(OBJSUFF) \
3d5231db 342 $(MSWDIR)/mslu.$(OBJSUFF) \
a3015c54
RR
343 $(MSWDIR)/nativdlg.$(OBJSUFF) \
344 $(MSWDIR)/notebook.$(OBJSUFF) \
345 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
346 $(MSWDIR)/palette.$(OBJSUFF) \
347 $(MSWDIR)/pen.$(OBJSUFF) \
348 $(MSWDIR)/penwin.$(OBJSUFF) \
3a03c143 349 $(MSWDIR)/popupwin.$(OBJSUFF) \
a3015c54
RR
350 $(MSWDIR)/printdlg.$(OBJSUFF) \
351 $(MSWDIR)/printwin.$(OBJSUFF) \
352 $(MSWDIR)/radiobox.$(OBJSUFF) \
353 $(MSWDIR)/radiobut.$(OBJSUFF) \
a3015c54 354 $(MSWDIR)/region.$(OBJSUFF) \
a3015c54
RR
355 $(MSWDIR)/scrolbar.$(OBJSUFF) \
356 $(MSWDIR)/settings.$(OBJSUFF) \
357 $(MSWDIR)/slider95.$(OBJSUFF) \
358 $(MSWDIR)/spinbutt.$(OBJSUFF) \
791a2102 359 $(MSWDIR)/spinctrl.$(OBJSUFF) \
a3015c54
RR
360 $(MSWDIR)/statbmp.$(OBJSUFF) \
361 $(MSWDIR)/statbox.$(OBJSUFF) \
362 $(MSWDIR)/statbr95.$(OBJSUFF) \
363 $(MSWDIR)/statline.$(OBJSUFF) \
364 $(MSWDIR)/stattext.$(OBJSUFF) \
365 $(MSWDIR)/tabctrl.$(OBJSUFF) \
366 $(MSWDIR)/taskbar.$(OBJSUFF) \
367 $(MSWDIR)/tbar95.$(OBJSUFF) \
368 $(MSWDIR)/textctrl.$(OBJSUFF) \
1db8dc4a 369 $(MSWDIR)/tglbtn.$(OBJSUFF) \
a3015c54
RR
370 $(MSWDIR)/timer.$(OBJSUFF) \
371 $(MSWDIR)/tooltip.$(OBJSUFF) \
34a1d732 372 $(MSWDIR)/toplevel.$(OBJSUFF) \
a3015c54 373 $(MSWDIR)/treectrl.$(OBJSUFF) \
85b43fbf 374 $(MSWDIR)/uxtheme.$(OBJSUFF) \
a3015c54 375 $(MSWDIR)/wave.$(OBJSUFF) \
f50fd919 376 $(MSWDIR)/window.$(OBJSUFF)
2bda0e17 377
c448540d
MB
378ADVANCEDOBJS_BASE = \
379
6c8a980f 380ADVANCEDOBJS = \
c448540d 381 $(ADVANCEDOBJS_BASE) \
6f87d554 382 $(MSWDIR)/ole/access.$(OBJSUFF) \
6c8a980f
VZ
383 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
384 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
385 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
386 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
387 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
388 $(MSWDIR)/ole/uuid.$(OBJSUFF)
389
c45a644e
RR
390ZLIBOBJS = \
391 $(ZLIBDIR)/adler32.$(OBJSUFF) \
392 $(ZLIBDIR)/compress.$(OBJSUFF) \
393 $(ZLIBDIR)/crc32.$(OBJSUFF) \
394 $(ZLIBDIR)/gzio.$(OBJSUFF) \
395 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
396 $(ZLIBDIR)/deflate.$(OBJSUFF) \
397 $(ZLIBDIR)/trees.$(OBJSUFF) \
398 $(ZLIBDIR)/zutil.$(OBJSUFF) \
399 $(ZLIBDIR)/inflate.$(OBJSUFF) \
400 $(ZLIBDIR)/infblock.$(OBJSUFF) \
401 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
402 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
403 $(ZLIBDIR)/infutil.$(OBJSUFF) \
404 $(ZLIBDIR)/inffast.$(OBJSUFF)
405
406PNGOBJS = \
407 $(PNGDIR)/png.$(OBJSUFF) \
408 $(PNGDIR)/pngread.$(OBJSUFF) \
409 $(PNGDIR)/pngrtran.$(OBJSUFF) \
410 $(PNGDIR)/pngrutil.$(OBJSUFF) \
411 $(PNGDIR)/pngpread.$(OBJSUFF) \
412 $(PNGDIR)/pngtrans.$(OBJSUFF) \
413 $(PNGDIR)/pngwrite.$(OBJSUFF) \
414 $(PNGDIR)/pngwtran.$(OBJSUFF) \
415 $(PNGDIR)/pngwutil.$(OBJSUFF) \
416 $(PNGDIR)/pngerror.$(OBJSUFF) \
417 $(PNGDIR)/pngmem.$(OBJSUFF) \
418 $(PNGDIR)/pngwio.$(OBJSUFF) \
419 $(PNGDIR)/pngrio.$(OBJSUFF) \
420 $(PNGDIR)/pngget.$(OBJSUFF) \
421 $(PNGDIR)/pngset.$(OBJSUFF)
422
423
424JPEGOBJS = \
425 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
426 $(JPEGDIR)/jutils.$(OBJSUFF) \
427 $(JPEGDIR)/jerror.$(OBJSUFF) \
428 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
429 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
430 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
431 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
432 $(JPEGDIR)/jctrans.$(OBJSUFF) \
433 $(JPEGDIR)/jcparam.$(OBJSUFF) \
434 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
435 $(JPEGDIR)/jcinit.$(OBJSUFF) \
436 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
437 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
438 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
439 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
440 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
441 $(JPEGDIR)/jccolor.$(OBJSUFF) \
442 $(JPEGDIR)/jcsample.$(OBJSUFF) \
443 $(JPEGDIR)/jchuff.$(OBJSUFF) \
444 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
445 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
446 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
447 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
448 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
449 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
450 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
451 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
452 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
453 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
454 $(JPEGDIR)/jdinput.$(OBJSUFF) \
455 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
456 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
457 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
458 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
459 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
460 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
461 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
462 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
463 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
464 $(JPEGDIR)/jidctint.$(OBJSUFF) \
465 $(JPEGDIR)/jidctred.$(OBJSUFF) \
466 $(JPEGDIR)/jdsample.$(OBJSUFF) \
467 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
468 $(JPEGDIR)/jquant1.$(OBJSUFF) \
469 $(JPEGDIR)/jquant2.$(OBJSUFF) \
470 $(JPEGDIR)/jdmerge.$(OBJSUFF)
471
8535af00
VZ
472TIFFOBJS = $(TIFFDIR)/tif_aux.o \
473 $(TIFFDIR)/tif_close.o \
474 $(TIFFDIR)/tif_codec.o \
475 $(TIFFDIR)/tif_compress.o \
476 $(TIFFDIR)/tif_dir.o \
477 $(TIFFDIR)/tif_dirinfo.o \
478 $(TIFFDIR)/tif_dirread.o \
479 $(TIFFDIR)/tif_dirwrite.o \
480 $(TIFFDIR)/tif_dumpmode.o \
481 $(TIFFDIR)/tif_error.o \
482 $(TIFFDIR)/tif_fax3.o \
483 $(TIFFDIR)/tif_fax3sm.o \
484 $(TIFFDIR)/tif_flush.o \
485 $(TIFFDIR)/tif_getimage.o \
486 $(TIFFDIR)/tif_jpeg.o \
487 $(TIFFDIR)/tif_luv.o \
488 $(TIFFDIR)/tif_lzw.o \
489 $(TIFFDIR)/tif_next.o \
490 $(TIFFDIR)/tif_open.o \
491 $(TIFFDIR)/tif_packbits.o \
492 $(TIFFDIR)/tif_pixarlog.o \
493 $(TIFFDIR)/tif_predict.o \
494 $(TIFFDIR)/tif_print.o \
495 $(TIFFDIR)/tif_read.o \
496 $(TIFFDIR)/tif_strip.o \
497 $(TIFFDIR)/tif_swab.o \
498 $(TIFFDIR)/tif_thunder.o \
499 $(TIFFDIR)/tif_tile.o \
500 $(TIFFDIR)/tif_version.o \
501 $(TIFFDIR)/tif_warning.o \
502 $(TIFFDIR)/tif_win32.o \
503 $(TIFFDIR)/tif_write.o \
504 $(TIFFDIR)/tif_zip.o
505
78e376b5
MB
506ifeq "$(strip $(RECENT_MINGW))" "yes"
507 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
6c8a980f 508else
fd4fe42c 509 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f 510endif
c448540d
MB
511ifeq ($(wxUSE_GUI),0)
512 OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
513endif
2bda0e17 514
6433f6d3
MB
515# how do you do "VAR=\" ? BLEAGH!
516BACKSLASH=$(subst a,\,a)
46c0c2dc 517ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
6433f6d3
MB
518 PATH_SEPARATOR:=$(BACKSLASH)
519 PATH_SUBST=/
520else
6433f6d3
MB
521 PATH_SEPARATOR=/
522 PATH_SUBST:=$(BACKSLASH)
523endif
524
c942560f 525#ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
c448540d 526ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
b3bd664a 527
180db908 528SETUP_H=$(ARCHINCDIR)/wx/setup.h
b3bd664a 529
fa146dd7 530ifndef WXMAKINGDLL
b3bd664a 531all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
fa146dd7 532else
b3bd664a 533all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
fa146dd7 534endif
8535af00 535
180db908 536$(ARCHINCDIR)/wx:
6433f6d3
MB
537 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
538 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
b3bd664a 539
2b5f62a0
VZ
540# Copy ALWAYS uses forward slashes now.
541
78e376b5 542$(SETUP_H): $(ARCHINCDIR)/wx $(WXDIR)/include/wx/msw/setup.h
2b5f62a0 543 $(COPY) $(WXDIR)/include/wx/msw/setup.h $(subst $(BACKSLASH),/,$@)
c942560f 544
2b5f62a0 545# $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
c942560f 546# $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
b3bd664a 547
8535af00 548ifndef WXMAKINGDLL
2bda0e17 549
2bda0e17
KB
550$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
551 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
552 $(RANLIB) $@
553
8535af00
VZ
554else
555
556# The new linker is a few orders of magnitude faster than the old way
557# of creating DLLs.
558ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
559
560$(WXDLL): $(OBJECTS) $(EXTRAOBJS)
78e376b5 561 $(CXX) -shared -o $@ \
8535af00
VZ
562 -Wl,--output-def,$(WXDEF) \
563 -Wl,--out-implib,$(WXLIB) \
564 $(OBJECTS) $(EXTRAOBJS) \
78e376b5
MB
565 $(DLL_LDFLAGS) $(DLL_LDLIBS) \
566 $(ALL_LDFLAGS_DLL)
8535af00
VZ
567else
568
569ifeq ($(MINGW32),1)
570 DLL_ENTRY = _DllMainCRTStartup@12
571else
572 DLL_ENTRY = __cygwin_dll_entry@12
573endif
574LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
575 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
576
577DLL_STUFF = --as=$(AS) --dllname $(notdir $(WXDLL)) \
578 --def $(WXDEF) \
579 --base-file wx.base --output-exp wx.exp
580
581$(WXDEF) $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
582 $(DLLTOOL) --output-def $@ --output-lib $(WXLIB) \
583 --dllname $(notdir $(WXDLL)) \
584 $(OBJECTS) $(EXTRAOBJS) $(DLL_EXTRA_LIBS)
585
586$(WXDLL): $(OBJECTS) $(EXTRAOBJS) $(WXDEF)
78e376b5 587 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 588 $(DLLTOOL) $(DLL_STUFF)
78e376b5 589 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 590 $(DLLTOOL) $(DLL_STUFF)
78e376b5 591 $(CC) -mdll wx.exp -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00
VZ
592 -$(RM) wx.base
593 -$(RM) wx.exp
594
595endif
596
597endif
598
599
01dba85a 600$(ZLIBLIB): $(ZLIBOBJS)
fa146dd7 601 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
01dba85a
JS
602 $(RANLIB) $@
603
604$(PNGLIB): $(PNGOBJS)
fa146dd7 605 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
01dba85a
JS
606 $(RANLIB) $@
607
608$(JPEGLIB): $(JPEGOBJS)
fa146dd7 609 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
01dba85a
JS
610 $(RANLIB) $@
611
8535af00 612$(TIFFLIB): $(TIFFOBJS)
fa146dd7 613 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
614 $(RANLIB) $@
615
b3bd664a 616$(REGEXLIB):
b994671d 617 $(MAKE) -C $(REGEXDIR) -f makefile.g95 MINGW32=$(MINGW32) WXDIR=$(WXDIR) WXWIN=$(WXDIR)
8535af00 618
b3bd664a 619$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
2bda0e17 620
2bda0e17 621clean:
6474416b 622 -$(RM) *.o
01dba85a 623 -$(RM) ole/*.o
6474416b
JS
624 -$(RM) *.bak
625 -$(RM) core
01dba85a
JS
626 -$(RM) ../common/*.o
627 -$(RM) ../common/*.bak
628 -$(RM) ../generic/*.o
629 -$(RM) ../generic/*.bak
630 -$(RM) ../html/*.o
01dba85a
JS
631 -$(RM) ../zlib/*.o
632 -$(RM) ../zlib/*.bak
8535af00
VZ
633 -$(RM) ../png/*.o
634 -$(RM) ../png/*.bak
01dba85a 635 -$(RM) ../jpeg/*.o
fd4fe42c 636 -$(RM) ../jpeg/*.bak
8535af00
VZ
637 -$(RM) ../tiff/*.o
638 -$(RM) ../tiff/*.bak
b3bd664a
MB
639 -$(RM) ../regex/*.o
640 -$(RM) ../regex/*.bak
6e6d9f9e
VZ
641
642cleanall: clean
8535af00 643 -$(RM) $(WXLIB)
fa146dd7
VS
644 -$(RM) $(ZLIBLIB)
645 -$(RM) $(PNGLIB)
646 -$(RM) $(JPEGLIB)
fa146dd7 647 -$(RM) $(TIFFLIB)
b3bd664a 648 -$(RM) $(REGEXLIB)
8535af00
VZ
649
650ifdef WXMAKINGDLL
651 -$(RM) $(WXDLL)
652 -$(RM) $(WXDEF)
653ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
654 -$(RM) wx.base
655 -$(RM) wx.exp
656endif
657endif
31929f80 658