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