]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
fixed missing Idle events
[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) \
96 $(GENDIR)/prop.$(OBJSUFF) \
97 $(GENDIR)/propform.$(OBJSUFF) \
98 $(GENDIR)/proplist.$(OBJSUFF) \
99 $(GENDIR)/sashwin.$(OBJSUFF) \
3379ed37
VZ
100 $(GENDIR)/scrlwing.$(OBJSUFF) \
101 $(GENDIR)/spinctlg.$(OBJSUFF) \
484523cf 102 $(GENDIR)/splash.$(OBJSUFF) \
2662e49e
RR
103 $(GENDIR)/splitter.$(OBJSUFF) \
104 $(GENDIR)/statusbr.$(OBJSUFF) \
bf84b0be 105 $(GENDIR)/tbarsmpl.$(OBJSUFF) \
2662e49e 106 $(GENDIR)/textdlgg.$(OBJSUFF) \
e8ac7bf2 107 $(GENDIR)/tipdlg.$(OBJSUFF) \
01fa3fe7 108 $(GENDIR)/tipwin.$(OBJSUFF) \
2736b3ce 109 $(GENDIR)/treectlg.$(OBJSUFF) \
babc9758 110 $(GENDIR)/treelay.$(OBJSUFF) \
e8ac7bf2 111 $(GENDIR)/wizard.$(OBJSUFF)
8baa0e61 112
c448540d
MB
113COMMONOBJS_BASE = \
114 $(COMMDIR)/appcmn.$(OBJSUFF) \
88a9f974 115 $(COMMDIR)/clntdata.$(OBJSUFF) \
2a36259f 116 $(COMMDIR)/cmdline.$(OBJSUFF) \
2662e49e 117 $(COMMDIR)/config.$(OBJSUFF) \
bf84b0be 118 $(COMMDIR)/datetime.$(OBJSUFF) \
2662e49e
RR
119 $(COMMDIR)/datstrm.$(OBJSUFF) \
120 $(COMMDIR)/db.$(OBJSUFF) \
121 $(COMMDIR)/dbtable.$(OBJSUFF) \
0537351f 122 $(COMMDIR)/dircmn.$(OBJSUFF) \
2662e49e
RR
123 $(COMMDIR)/dynarray.$(OBJSUFF) \
124 $(COMMDIR)/dynlib.$(OBJSUFF) \
0b9ab0bd 125 $(COMMDIR)/dynload.$(OBJSUFF) \
15b83243 126 $(COMMDIR)/encconv.$(OBJSUFF) \
2662e49e 127 $(COMMDIR)/event.$(OBJSUFF) \
a1b82138 128 $(COMMDIR)/extended.$(OBJSUFF) \
2662e49e
RR
129 $(COMMDIR)/ffile.$(OBJSUFF) \
130 $(COMMDIR)/file.$(OBJSUFF) \
131 $(COMMDIR)/fileconf.$(OBJSUFF) \
132 $(COMMDIR)/filefn.$(OBJSUFF) \
3b94ab18 133 $(COMMDIR)/filename.$(OBJSUFF) \
2662e49e 134 $(COMMDIR)/filesys.$(OBJSUFF) \
01dba85a 135 $(COMMDIR)/fontmap.$(OBJSUFF) \
2662e49e 136 $(COMMDIR)/fs_inet.$(OBJSUFF) \
c692969f 137 $(COMMDIR)/fs_mem.$(OBJSUFF) \
2662e49e
RR
138 $(COMMDIR)/fs_zip.$(OBJSUFF) \
139 $(COMMDIR)/ftp.$(OBJSUFF) \
2662e49e 140 $(COMMDIR)/hash.$(OBJSUFF) \
d74b838c 141 $(COMMDIR)/hashmap.$(OBJSUFF) \
2662e49e 142 $(COMMDIR)/http.$(OBJSUFF) \
2662e49e
RR
143 $(COMMDIR)/intl.$(OBJSUFF) \
144 $(COMMDIR)/ipcbase.$(OBJSUFF) \
2662e49e
RR
145 $(COMMDIR)/list.$(OBJSUFF) \
146 $(COMMDIR)/log.$(OBJSUFF) \
bf84b0be 147 $(COMMDIR)/longlong.$(OBJSUFF) \
2662e49e 148 $(COMMDIR)/memory.$(OBJSUFF) \
5d541a03 149 $(COMMDIR)/mimecmn.$(OBJSUFF) \
2662e49e 150 $(COMMDIR)/module.$(OBJSUFF) \
dc0e23b8 151 $(COMMDIR)/msgout.$(OBJSUFF) \
2662e49e
RR
152 $(COMMDIR)/mstream.$(OBJSUFF) \
153 $(COMMDIR)/object.$(OBJSUFF) \
2662e49e
RR
154 $(COMMDIR)/process.$(OBJSUFF) \
155 $(COMMDIR)/protocol.$(OBJSUFF) \
2bda9cc8 156 $(COMMDIR)/regex.$(OBJSUFF) \
2662e49e
RR
157 $(COMMDIR)/sckaddr.$(OBJSUFF) \
158 $(COMMDIR)/sckfile.$(OBJSUFF) \
2662e49e
RR
159 $(COMMDIR)/sckipc.$(OBJSUFF) \
160 $(COMMDIR)/sckstrm.$(OBJSUFF) \
161 $(COMMDIR)/socket.$(OBJSUFF) \
77671fd2 162 $(COMMDIR)/strconv.$(OBJSUFF) \
2662e49e
RR
163 $(COMMDIR)/stream.$(OBJSUFF) \
164 $(COMMDIR)/string.$(OBJSUFF) \
0cbff120 165 $(COMMDIR)/sysopt.$(OBJSUFF) \
a3a584a7 166 $(COMMDIR)/textbuf.$(OBJSUFF) \
2662e49e 167 $(COMMDIR)/textfile.$(OBJSUFF) \
2662e49e
RR
168 $(COMMDIR)/timercmn.$(OBJSUFF) \
169 $(COMMDIR)/tokenzr.$(OBJSUFF) \
170 $(COMMDIR)/txtstrm.$(OBJSUFF) \
171 $(COMMDIR)/unzip.$(OBJSUFF) \
172 $(COMMDIR)/url.$(OBJSUFF) \
173 $(COMMDIR)/utilscmn.$(OBJSUFF) \
2662e49e
RR
174 $(COMMDIR)/variant.$(OBJSUFF) \
175 $(COMMDIR)/wfstream.$(OBJSUFF) \
2662e49e 176 $(COMMDIR)/wxchar.$(OBJSUFF) \
77671fd2 177 $(COMMDIR)/zipstrm.$(OBJSUFF) \
2662e49e 178 $(COMMDIR)/zstream.$(OBJSUFF)
a1b82138 179
c448540d
MB
180COMMONOBJS_BASEONLY = \
181 $(COMMDIR)/init.$(OBJSUFF)
182
183COMMONOBJS = \
184 $(COMMONOBJS_BASE) \
185 $(COMMDIR)/y_tab.$(OBJSUFF) \
6f87d554 186 $(COMMDIR)/accesscmn.$(OBJSUFF) \
f435c1f0
VS
187 $(COMMDIR)/artprov.$(OBJSUFF) \
188 $(COMMDIR)/artstd.$(OBJSUFF) \
c448540d
MB
189 $(COMMDIR)/choiccmn.$(OBJSUFF) \
190 $(COMMDIR)/clipcmn.$(OBJSUFF) \
191 $(COMMDIR)/cmdproc.$(OBJSUFF) \
192 $(COMMDIR)/cmndata.$(OBJSUFF) \
193 $(COMMDIR)/containr.$(OBJSUFF) \
194 $(COMMDIR)/cshelp.$(OBJSUFF) \
195 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
196 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
197 $(COMMDIR)/dbgrid.$(OBJSUFF) \
198 $(COMMDIR)/dcbase.$(OBJSUFF) \
199 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
200 $(COMMDIR)/dndcmn.$(OBJSUFF) \
201 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
202 $(COMMDIR)/docmdi.$(OBJSUFF) \
203 $(COMMDIR)/docview.$(OBJSUFF) \
6f87d554 204 $(COMMDIR)/dpycmn.$(OBJSUFF) \
c448540d
MB
205 $(COMMDIR)/dseldlg.$(OBJSUFF) \
206 $(COMMDIR)/effects.$(OBJSUFF) \
207 $(COMMDIR)/fddlgcmn.$(OBJSUFF) \
208 $(COMMDIR)/fontcmn.$(OBJSUFF) \
209 $(COMMDIR)/framecmn.$(OBJSUFF) \
210 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
211 $(COMMDIR)/gdicmn.$(OBJSUFF) \
212 $(COMMDIR)/geometry.$(OBJSUFF) \
213 $(COMMDIR)/gifdecod.$(OBJSUFF) \
214 $(COMMDIR)/helpbase.$(OBJSUFF) \
f618020a 215 $(COMMDIR)/iconbndl.$(OBJSUFF) \
c448540d
MB
216 $(COMMDIR)/imagall.$(OBJSUFF) \
217 $(COMMDIR)/imagbmp.$(OBJSUFF) \
218 $(COMMDIR)/image.$(OBJSUFF) \
0fa78457 219 $(COMMDIR)/imagfill.$(OBJSUFF) \
c448540d
MB
220 $(COMMDIR)/imaggif.$(OBJSUFF) \
221 $(COMMDIR)/imagiff.$(OBJSUFF) \
222 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
223 $(COMMDIR)/imagpcx.$(OBJSUFF) \
224 $(COMMDIR)/imagpng.$(OBJSUFF) \
225 $(COMMDIR)/imagpnm.$(OBJSUFF) \
226 $(COMMDIR)/imagtiff.$(OBJSUFF) \
227 $(COMMDIR)/imagxpm.$(OBJSUFF) \
228 $(COMMDIR)/layout.$(OBJSUFF) \
229 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
230 $(COMMDIR)/matrix.$(OBJSUFF) \
231 $(COMMDIR)/menucmn.$(OBJSUFF) \
232 $(COMMDIR)/nbkbase.$(OBJSUFF) \
233 $(COMMDIR)/paper.$(OBJSUFF) \
234 $(COMMDIR)/popupcmn.$(OBJSUFF) \
235 $(COMMDIR)/prntbase.$(OBJSUFF) \
236 $(COMMDIR)/quantize.$(OBJSUFF) \
237 $(COMMDIR)/radiocmn.$(OBJSUFF) \
238 $(COMMDIR)/resource.$(OBJSUFF) \
2a736129 239 $(COMMDIR)/rgncmn.$(OBJSUFF) \
c15521c6 240 $(COMMDIR)/settcmn.$(OBJSUFF) \
c448540d
MB
241 $(COMMDIR)/sizer.$(OBJSUFF) \
242 $(COMMDIR)/statbar.$(OBJSUFF) \
243 $(COMMDIR)/tbarbase.$(OBJSUFF) \
244 $(COMMDIR)/textcmn.$(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)/wxexpr.$(OBJSUFF) \
252 $(COMMDIR)/xpmdecod.$(OBJSUFF)
253
a3015c54 254HTMLOBJS = \
8ec2b484
HH
255 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
256 $(HTMLDIR)/helpdata.$(OBJSUFF) \
257 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
258 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
259 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
260 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
261 $(HTMLDIR)/htmltag.$(OBJSUFF) \
262 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 263 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 264 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
265 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
266 $(HTMLDIR)/m_hline.$(OBJSUFF) \
267 $(HTMLDIR)/m_image.$(OBJSUFF) \
268 $(HTMLDIR)/m_layout.$(OBJSUFF) \
269 $(HTMLDIR)/m_links.$(OBJSUFF) \
270 $(HTMLDIR)/m_list.$(OBJSUFF) \
271 $(HTMLDIR)/m_pre.$(OBJSUFF) \
c44fdc94 272 $(HTMLDIR)/m_style.$(OBJSUFF) \
69941f05 273 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 274 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 275
c448540d
MB
276MSWOBJS_BASE = \
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)/regconf.$(OBJSUFF) \
284 $(MSWDIR)/registry.$(OBJSUFF) \
285 $(MSWDIR)/snglinst.$(OBJSUFF) \
286 $(MSWDIR)/thread.$(OBJSUFF) \
287 $(MSWDIR)/utils.$(OBJSUFF) \
a0cb0ba5
VS
288 $(MSWDIR)/utilsexc.$(OBJSUFF) \
289 $(MSWDIR)/volume.$(OBJSUFF)
c448540d 290
c45a644e 291MSWOBJS = \
c448540d 292 $(MSWOBJS_BASE) \
a3015c54
RR
293 $(MSWDIR)/accel.$(OBJSUFF) \
294 $(MSWDIR)/app.$(OBJSUFF) \
295 $(MSWDIR)/bitmap.$(OBJSUFF) \
296 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
297 $(MSWDIR)/brush.$(OBJSUFF) \
298 $(MSWDIR)/button.$(OBJSUFF) \
299 $(MSWDIR)/caret.$(OBJSUFF) \
300 $(MSWDIR)/checkbox.$(OBJSUFF) \
301 $(MSWDIR)/checklst.$(OBJSUFF) \
302 $(MSWDIR)/choice.$(OBJSUFF) \
303 $(MSWDIR)/clipbrd.$(OBJSUFF) \
304 $(MSWDIR)/colordlg.$(OBJSUFF) \
305 $(MSWDIR)/colour.$(OBJSUFF) \
306 $(MSWDIR)/combobox.$(OBJSUFF) \
307 $(MSWDIR)/control.$(OBJSUFF) \
a3015c54
RR
308 $(MSWDIR)/cursor.$(OBJSUFF) \
309 $(MSWDIR)/data.$(OBJSUFF) \
310 $(MSWDIR)/dc.$(OBJSUFF) \
311 $(MSWDIR)/dcclient.$(OBJSUFF) \
312 $(MSWDIR)/dcmemory.$(OBJSUFF) \
313 $(MSWDIR)/dcprint.$(OBJSUFF) \
314 $(MSWDIR)/dcscreen.$(OBJSUFF) \
a3015c54 315 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 316 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54 317 $(MSWDIR)/dib.$(OBJSUFF) \
6f87d554 318 $(MSWDIR)/display.$(OBJSUFF) \
a3015c54 319 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 320 $(MSWDIR)/enhmeta.$(OBJSUFF) \
0cbff120 321 $(MSWDIR)/evtloop.$(OBJSUFF) \
8db37e06 322 $(MSWDIR)/fdrepdlg.$(OBJSUFF) \
a3015c54
RR
323 $(MSWDIR)/filedlg.$(OBJSUFF) \
324 $(MSWDIR)/font.$(OBJSUFF) \
325 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
326 $(MSWDIR)/fontenum.$(OBJSUFF) \
327 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
328 $(MSWDIR)/frame.$(OBJSUFF) \
329 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 330 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 331 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8b089c5e 332 $(MSWDIR)/glcanvas.$(OBJSUFF) \
ce32af5d 333 $(MSWDIR)/helpbest.$(OBJSUFF) \
f6bcfd97 334 $(MSWDIR)/helpchm.$(OBJSUFF) \
a3015c54
RR
335 $(MSWDIR)/helpwin.$(OBJSUFF) \
336 $(MSWDIR)/icon.$(OBJSUFF) \
337 $(MSWDIR)/imaglist.$(OBJSUFF) \
67d947ba 338 $(MSWDIR)/iniconf.$(OBJSUFF) \
a3015c54
RR
339 $(MSWDIR)/joystick.$(OBJSUFF) \
340 $(MSWDIR)/listbox.$(OBJSUFF) \
341 $(MSWDIR)/listctrl.$(OBJSUFF) \
a3015c54
RR
342 $(MSWDIR)/mdi.$(OBJSUFF) \
343 $(MSWDIR)/menu.$(OBJSUFF) \
344 $(MSWDIR)/menuitem.$(OBJSUFF) \
345 $(MSWDIR)/metafile.$(OBJSUFF) \
346 $(MSWDIR)/minifram.$(OBJSUFF) \
347 $(MSWDIR)/msgdlg.$(OBJSUFF) \
3d5231db 348 $(MSWDIR)/mslu.$(OBJSUFF) \
a3015c54
RR
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) \
a3015c54 380 $(MSWDIR)/wave.$(OBJSUFF) \
f50fd919 381 $(MSWDIR)/window.$(OBJSUFF)
2bda0e17 382
c448540d
MB
383ADVANCEDOBJS_BASE = \
384
6c8a980f 385ADVANCEDOBJS = \
c448540d 386 $(ADVANCEDOBJS_BASE) \
6f87d554 387 $(MSWDIR)/ole/access.$(OBJSUFF) \
6c8a980f
VZ
388 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
389 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
390 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
391 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
392 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
393 $(MSWDIR)/ole/uuid.$(OBJSUFF)
394
c45a644e
RR
395ZLIBOBJS = \
396 $(ZLIBDIR)/adler32.$(OBJSUFF) \
397 $(ZLIBDIR)/compress.$(OBJSUFF) \
398 $(ZLIBDIR)/crc32.$(OBJSUFF) \
399 $(ZLIBDIR)/gzio.$(OBJSUFF) \
400 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
401 $(ZLIBDIR)/deflate.$(OBJSUFF) \
402 $(ZLIBDIR)/trees.$(OBJSUFF) \
403 $(ZLIBDIR)/zutil.$(OBJSUFF) \
404 $(ZLIBDIR)/inflate.$(OBJSUFF) \
405 $(ZLIBDIR)/infblock.$(OBJSUFF) \
406 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
407 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
408 $(ZLIBDIR)/infutil.$(OBJSUFF) \
409 $(ZLIBDIR)/inffast.$(OBJSUFF)
410
411PNGOBJS = \
412 $(PNGDIR)/png.$(OBJSUFF) \
413 $(PNGDIR)/pngread.$(OBJSUFF) \
414 $(PNGDIR)/pngrtran.$(OBJSUFF) \
415 $(PNGDIR)/pngrutil.$(OBJSUFF) \
416 $(PNGDIR)/pngpread.$(OBJSUFF) \
417 $(PNGDIR)/pngtrans.$(OBJSUFF) \
418 $(PNGDIR)/pngwrite.$(OBJSUFF) \
419 $(PNGDIR)/pngwtran.$(OBJSUFF) \
420 $(PNGDIR)/pngwutil.$(OBJSUFF) \
421 $(PNGDIR)/pngerror.$(OBJSUFF) \
422 $(PNGDIR)/pngmem.$(OBJSUFF) \
423 $(PNGDIR)/pngwio.$(OBJSUFF) \
424 $(PNGDIR)/pngrio.$(OBJSUFF) \
425 $(PNGDIR)/pngget.$(OBJSUFF) \
426 $(PNGDIR)/pngset.$(OBJSUFF)
427
428
429JPEGOBJS = \
430 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
431 $(JPEGDIR)/jutils.$(OBJSUFF) \
432 $(JPEGDIR)/jerror.$(OBJSUFF) \
433 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
434 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
435 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
436 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
437 $(JPEGDIR)/jctrans.$(OBJSUFF) \
438 $(JPEGDIR)/jcparam.$(OBJSUFF) \
439 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
440 $(JPEGDIR)/jcinit.$(OBJSUFF) \
441 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
442 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
443 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
444 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
445 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
446 $(JPEGDIR)/jccolor.$(OBJSUFF) \
447 $(JPEGDIR)/jcsample.$(OBJSUFF) \
448 $(JPEGDIR)/jchuff.$(OBJSUFF) \
449 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
450 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
451 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
452 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
453 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
454 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
455 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
456 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
457 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
458 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
459 $(JPEGDIR)/jdinput.$(OBJSUFF) \
460 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
461 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
462 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
463 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
464 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
465 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
466 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
467 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
468 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
469 $(JPEGDIR)/jidctint.$(OBJSUFF) \
470 $(JPEGDIR)/jidctred.$(OBJSUFF) \
471 $(JPEGDIR)/jdsample.$(OBJSUFF) \
472 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
473 $(JPEGDIR)/jquant1.$(OBJSUFF) \
474 $(JPEGDIR)/jquant2.$(OBJSUFF) \
475 $(JPEGDIR)/jdmerge.$(OBJSUFF)
476
8535af00
VZ
477TIFFOBJS = $(TIFFDIR)/tif_aux.o \
478 $(TIFFDIR)/tif_close.o \
479 $(TIFFDIR)/tif_codec.o \
480 $(TIFFDIR)/tif_compress.o \
481 $(TIFFDIR)/tif_dir.o \
482 $(TIFFDIR)/tif_dirinfo.o \
483 $(TIFFDIR)/tif_dirread.o \
484 $(TIFFDIR)/tif_dirwrite.o \
485 $(TIFFDIR)/tif_dumpmode.o \
486 $(TIFFDIR)/tif_error.o \
487 $(TIFFDIR)/tif_fax3.o \
488 $(TIFFDIR)/tif_fax3sm.o \
489 $(TIFFDIR)/tif_flush.o \
490 $(TIFFDIR)/tif_getimage.o \
491 $(TIFFDIR)/tif_jpeg.o \
492 $(TIFFDIR)/tif_luv.o \
493 $(TIFFDIR)/tif_lzw.o \
494 $(TIFFDIR)/tif_next.o \
495 $(TIFFDIR)/tif_open.o \
496 $(TIFFDIR)/tif_packbits.o \
497 $(TIFFDIR)/tif_pixarlog.o \
498 $(TIFFDIR)/tif_predict.o \
499 $(TIFFDIR)/tif_print.o \
500 $(TIFFDIR)/tif_read.o \
501 $(TIFFDIR)/tif_strip.o \
502 $(TIFFDIR)/tif_swab.o \
503 $(TIFFDIR)/tif_thunder.o \
504 $(TIFFDIR)/tif_tile.o \
505 $(TIFFDIR)/tif_version.o \
506 $(TIFFDIR)/tif_warning.o \
507 $(TIFFDIR)/tif_win32.o \
508 $(TIFFDIR)/tif_write.o \
509 $(TIFFDIR)/tif_zip.o
510
78e376b5
MB
511ifeq "$(strip $(RECENT_MINGW))" "yes"
512 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
6c8a980f 513else
fd4fe42c 514 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f 515endif
c448540d
MB
516ifeq ($(wxUSE_GUI),0)
517 OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
518endif
2bda0e17 519
6433f6d3
MB
520# how do you do "VAR=\" ? BLEAGH!
521BACKSLASH=$(subst a,\,a)
46c0c2dc 522ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
6433f6d3
MB
523 PATH_SEPARATOR:=$(BACKSLASH)
524 PATH_SUBST=/
525else
6433f6d3
MB
526 PATH_SEPARATOR=/
527 PATH_SUBST:=$(BACKSLASH)
528endif
529
c942560f 530#ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
c448540d 531ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
b3bd664a 532
180db908 533SETUP_H=$(ARCHINCDIR)/wx/setup.h
b3bd664a 534
fa146dd7 535ifndef WXMAKINGDLL
b3bd664a 536all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
fa146dd7 537else
b3bd664a 538all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
fa146dd7 539endif
8535af00 540
180db908 541$(ARCHINCDIR)/wx:
6433f6d3
MB
542 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
543 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
b3bd664a 544
2b5f62a0
VZ
545# Copy ALWAYS uses forward slashes now.
546
78e376b5 547$(SETUP_H): $(ARCHINCDIR)/wx $(WXDIR)/include/wx/msw/setup.h
2b5f62a0 548 $(COPY) $(WXDIR)/include/wx/msw/setup.h $(subst $(BACKSLASH),/,$@)
c942560f 549
2b5f62a0 550# $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
c942560f 551# $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
b3bd664a 552
8535af00 553ifndef WXMAKINGDLL
2bda0e17 554
2bda0e17
KB
555$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
556 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
557 $(RANLIB) $@
558
8535af00
VZ
559else
560
561# The new linker is a few orders of magnitude faster than the old way
562# of creating DLLs.
563ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
564
565$(WXDLL): $(OBJECTS) $(EXTRAOBJS)
78e376b5 566 $(CXX) -shared -o $@ \
8535af00
VZ
567 -Wl,--output-def,$(WXDEF) \
568 -Wl,--out-implib,$(WXLIB) \
569 $(OBJECTS) $(EXTRAOBJS) \
78e376b5
MB
570 $(DLL_LDFLAGS) $(DLL_LDLIBS) \
571 $(ALL_LDFLAGS_DLL)
8535af00
VZ
572else
573
574ifeq ($(MINGW32),1)
575 DLL_ENTRY = _DllMainCRTStartup@12
576else
577 DLL_ENTRY = __cygwin_dll_entry@12
578endif
579LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
580 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
581
582DLL_STUFF = --as=$(AS) --dllname $(notdir $(WXDLL)) \
583 --def $(WXDEF) \
584 --base-file wx.base --output-exp wx.exp
585
586$(WXDEF) $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
587 $(DLLTOOL) --output-def $@ --output-lib $(WXLIB) \
588 --dllname $(notdir $(WXDLL)) \
589 $(OBJECTS) $(EXTRAOBJS) $(DLL_EXTRA_LIBS)
590
591$(WXDLL): $(OBJECTS) $(EXTRAOBJS) $(WXDEF)
78e376b5 592 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 593 $(DLLTOOL) $(DLL_STUFF)
78e376b5 594 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00 595 $(DLLTOOL) $(DLL_STUFF)
78e376b5 596 $(CC) -mdll wx.exp -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
8535af00
VZ
597 -$(RM) wx.base
598 -$(RM) wx.exp
599
600endif
601
602endif
603
604
01dba85a 605$(ZLIBLIB): $(ZLIBOBJS)
fa146dd7 606 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
01dba85a
JS
607 $(RANLIB) $@
608
609$(PNGLIB): $(PNGOBJS)
fa146dd7 610 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
01dba85a
JS
611 $(RANLIB) $@
612
613$(JPEGLIB): $(JPEGOBJS)
fa146dd7 614 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
01dba85a
JS
615 $(RANLIB) $@
616
8535af00 617$(TIFFLIB): $(TIFFOBJS)
fa146dd7 618 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
619 $(RANLIB) $@
620
b3bd664a 621$(REGEXLIB):
b994671d 622 $(MAKE) -C $(REGEXDIR) -f makefile.g95 MINGW32=$(MINGW32) WXDIR=$(WXDIR) WXWIN=$(WXDIR)
8535af00 623
b3bd664a 624$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
2bda0e17
KB
625
626$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
78e376b5 627 $(CCLEX) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
6a570331 628
8e97b17b 629$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
102f951d 630 $(COPY) ../common/dosyacc.c ../common/y_tab.c
8e97b17b 631
6a570331 632$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
102f951d 633 $(COPY) ../common/doslex.c ../common/lex_yy.c
2bda0e17
KB
634
635# Replace lex with flex if you run into compilation
636# problems with lex_yy.c. See also note about LEX_SCANNER
637# above.
6a570331
RR
638# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
639# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
640#
8870c26e
JS
641# Try one of these if the above line doesn't work.
642# Alternative syntax (1)
643# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
644# Alternative syntax (2)
645# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
6a570331 646#
2bda0e17
KB
647# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
648# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
649# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
650# rm -f lex.yy.c
6a570331 651#
2bda0e17
KB
652# Replace yacc with bison if you run into compilation
653# problems with y_tab.c.
6a570331
RR
654#
655# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
656# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
657#
57c208c5
JS
658# If you use e.g. gcc on Unix, uncomment these lines
659# and comment out the above.
6a570331 660#
a1b82138 661# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
57c208c5
JS
662# $(YACC) $(COMMDIR)/parser.y
663# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17 664
2bda0e17 665clean:
6474416b 666 -$(RM) *.o
01dba85a 667 -$(RM) ole/*.o
6474416b
JS
668 -$(RM) *.bak
669 -$(RM) core
01dba85a
JS
670 -$(RM) ../common/y_tab.c
671 -$(RM) ../common/lex_yy.c
672 -$(RM) ../common/*.o
673 -$(RM) ../common/*.bak
674 -$(RM) ../generic/*.o
675 -$(RM) ../generic/*.bak
676 -$(RM) ../html/*.o
01dba85a
JS
677 -$(RM) ../zlib/*.o
678 -$(RM) ../zlib/*.bak
8535af00
VZ
679 -$(RM) ../png/*.o
680 -$(RM) ../png/*.bak
01dba85a 681 -$(RM) ../jpeg/*.o
fd4fe42c 682 -$(RM) ../jpeg/*.bak
8535af00
VZ
683 -$(RM) ../tiff/*.o
684 -$(RM) ../tiff/*.bak
b3bd664a
MB
685 -$(RM) ../regex/*.o
686 -$(RM) ../regex/*.bak
6e6d9f9e
VZ
687
688cleanall: clean
8535af00 689 -$(RM) $(WXLIB)
fa146dd7
VS
690 -$(RM) $(ZLIBLIB)
691 -$(RM) $(PNGLIB)
692 -$(RM) $(JPEGLIB)
fa146dd7 693 -$(RM) $(TIFFLIB)
b3bd664a 694 -$(RM) $(REGEXLIB)
8535af00
VZ
695
696ifdef WXMAKINGDLL
697 -$(RM) $(WXDLL)
698 -$(RM) $(WXDEF)
699ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
700 -$(RM) wx.base
701 -$(RM) wx.exp
702endif
703endif
31929f80 704