]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.g95
More make install tweaks.
[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
34 DLL_LDLIBS = -mwindows -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
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
65ifeq ($(MINGW32),1)
8535af00 66 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
154f22b3
JS
67 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
68 else
69 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
70 endif
71else
72 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
73endif
c448540d
MB
74ifeq ($(wxUSE_GUI),0)
75 DIRDLGOBJ =
76endif
77
78GENERICOBJS_BASE = \
154f22b3 79
c45a644e 80GENERICOBJS = \
c448540d 81 $(GENERICOBJS_BASE) \
c45a644e 82 $(GENDIR)/busyinfo.$(OBJSUFF) \
9d9b7755 83 $(GENDIR)/calctrl.$(OBJSUFF) \
2662e49e 84 $(GENDIR)/choicdgg.$(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
RR
150 $(COMMDIR)/module.$(OBJSUFF) \
151 $(COMMDIR)/mstream.$(OBJSUFF) \
152 $(COMMDIR)/object.$(OBJSUFF) \
2662e49e
RR
153 $(COMMDIR)/process.$(OBJSUFF) \
154 $(COMMDIR)/protocol.$(OBJSUFF) \
2bda9cc8 155 $(COMMDIR)/regex.$(OBJSUFF) \
2662e49e
RR
156 $(COMMDIR)/sckaddr.$(OBJSUFF) \
157 $(COMMDIR)/sckfile.$(OBJSUFF) \
2662e49e
RR
158 $(COMMDIR)/sckipc.$(OBJSUFF) \
159 $(COMMDIR)/sckstrm.$(OBJSUFF) \
160 $(COMMDIR)/socket.$(OBJSUFF) \
77671fd2 161 $(COMMDIR)/strconv.$(OBJSUFF) \
2662e49e
RR
162 $(COMMDIR)/stream.$(OBJSUFF) \
163 $(COMMDIR)/string.$(OBJSUFF) \
0cbff120 164 $(COMMDIR)/sysopt.$(OBJSUFF) \
a3a584a7 165 $(COMMDIR)/textbuf.$(OBJSUFF) \
2662e49e 166 $(COMMDIR)/textfile.$(OBJSUFF) \
2662e49e
RR
167 $(COMMDIR)/timercmn.$(OBJSUFF) \
168 $(COMMDIR)/tokenzr.$(OBJSUFF) \
169 $(COMMDIR)/txtstrm.$(OBJSUFF) \
170 $(COMMDIR)/unzip.$(OBJSUFF) \
171 $(COMMDIR)/url.$(OBJSUFF) \
172 $(COMMDIR)/utilscmn.$(OBJSUFF) \
2662e49e
RR
173 $(COMMDIR)/variant.$(OBJSUFF) \
174 $(COMMDIR)/wfstream.$(OBJSUFF) \
2662e49e 175 $(COMMDIR)/wxchar.$(OBJSUFF) \
77671fd2 176 $(COMMDIR)/zipstrm.$(OBJSUFF) \
2662e49e 177 $(COMMDIR)/zstream.$(OBJSUFF)
a1b82138 178
c448540d
MB
179COMMONOBJS_BASEONLY = \
180 $(COMMDIR)/init.$(OBJSUFF)
181
182COMMONOBJS = \
183 $(COMMONOBJS_BASE) \
184 $(COMMDIR)/y_tab.$(OBJSUFF) \
185 $(COMMDIR)/choiccmn.$(OBJSUFF) \
186 $(COMMDIR)/clipcmn.$(OBJSUFF) \
187 $(COMMDIR)/cmdproc.$(OBJSUFF) \
188 $(COMMDIR)/cmndata.$(OBJSUFF) \
189 $(COMMDIR)/containr.$(OBJSUFF) \
190 $(COMMDIR)/cshelp.$(OBJSUFF) \
191 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
192 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
193 $(COMMDIR)/dbgrid.$(OBJSUFF) \
194 $(COMMDIR)/dcbase.$(OBJSUFF) \
195 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
196 $(COMMDIR)/dndcmn.$(OBJSUFF) \
197 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
198 $(COMMDIR)/docmdi.$(OBJSUFF) \
199 $(COMMDIR)/docview.$(OBJSUFF) \
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) \
210 $(COMMDIR)/imagall.$(OBJSUFF) \
211 $(COMMDIR)/imagbmp.$(OBJSUFF) \
212 $(COMMDIR)/image.$(OBJSUFF) \
213 $(COMMDIR)/imaggif.$(OBJSUFF) \
214 $(COMMDIR)/imagiff.$(OBJSUFF) \
215 $(COMMDIR)/imagjpeg.$(OBJSUFF) \
216 $(COMMDIR)/imagpcx.$(OBJSUFF) \
217 $(COMMDIR)/imagpng.$(OBJSUFF) \
218 $(COMMDIR)/imagpnm.$(OBJSUFF) \
219 $(COMMDIR)/imagtiff.$(OBJSUFF) \
220 $(COMMDIR)/imagxpm.$(OBJSUFF) \
221 $(COMMDIR)/layout.$(OBJSUFF) \
222 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
223 $(COMMDIR)/matrix.$(OBJSUFF) \
224 $(COMMDIR)/menucmn.$(OBJSUFF) \
225 $(COMMDIR)/nbkbase.$(OBJSUFF) \
226 $(COMMDIR)/paper.$(OBJSUFF) \
227 $(COMMDIR)/popupcmn.$(OBJSUFF) \
228 $(COMMDIR)/prntbase.$(OBJSUFF) \
229 $(COMMDIR)/quantize.$(OBJSUFF) \
230 $(COMMDIR)/radiocmn.$(OBJSUFF) \
231 $(COMMDIR)/resource.$(OBJSUFF) \
232 $(COMMDIR)/sizer.$(OBJSUFF) \
233 $(COMMDIR)/statbar.$(OBJSUFF) \
234 $(COMMDIR)/tbarbase.$(OBJSUFF) \
235 $(COMMDIR)/textcmn.$(OBJSUFF) \
236 $(COMMDIR)/toplvcmn.$(OBJSUFF) \
237 $(COMMDIR)/treebase.$(OBJSUFF) \
238 $(COMMDIR)/valgen.$(OBJSUFF) \
239 $(COMMDIR)/validate.$(OBJSUFF) \
240 $(COMMDIR)/valtext.$(OBJSUFF) \
241 $(COMMDIR)/wincmn.$(OBJSUFF) \
242 $(COMMDIR)/wxexpr.$(OBJSUFF) \
243 $(COMMDIR)/xpmdecod.$(OBJSUFF)
244
a3015c54 245HTMLOBJS = \
8ec2b484
HH
246 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
247 $(HTMLDIR)/helpdata.$(OBJSUFF) \
248 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
249 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
69941f05
VS
250 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
251 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
8a4df159
RR
252 $(HTMLDIR)/htmltag.$(OBJSUFF) \
253 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
3ce369e6 254 $(HTMLDIR)/htmprint.$(OBJSUFF) \
336e2d44 255 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
69941f05
VS
256 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
257 $(HTMLDIR)/m_hline.$(OBJSUFF) \
258 $(HTMLDIR)/m_image.$(OBJSUFF) \
259 $(HTMLDIR)/m_layout.$(OBJSUFF) \
260 $(HTMLDIR)/m_links.$(OBJSUFF) \
261 $(HTMLDIR)/m_list.$(OBJSUFF) \
fa146dd7 262 $(HTMLDIR)/m_meta.$(OBJSUFF) \
69941f05 263 $(HTMLDIR)/m_pre.$(OBJSUFF) \
c44fdc94 264 $(HTMLDIR)/m_style.$(OBJSUFF) \
69941f05 265 $(HTMLDIR)/m_tables.$(OBJSUFF) \
69941f05 266 $(HTMLDIR)/winpars.$(OBJSUFF)
a3015c54 267
c448540d
MB
268MSWOBJS_BASE = \
269 $(MSWDIR)/dde.$(OBJSUFF) \
270 $(MSWDIR)/dir.$(OBJSUFF) \
271 $(MSWDIR)/gsocket.$(OBJSUFF) \
272 $(MSWDIR)/gsockmsw.$(OBJSUFF) \
273 $(MSWDIR)/main.$(OBJSUFF) \
274 $(MSWDIR)/mimetype.$(OBJSUFF) \
275 $(MSWDIR)/regconf.$(OBJSUFF) \
276 $(MSWDIR)/registry.$(OBJSUFF) \
277 $(MSWDIR)/snglinst.$(OBJSUFF) \
278 $(MSWDIR)/thread.$(OBJSUFF) \
279 $(MSWDIR)/utils.$(OBJSUFF) \
280 $(MSWDIR)/utilsexc.$(OBJSUFF)
281
c45a644e 282MSWOBJS = \
c448540d 283 $(MSWOBJS_BASE) \
a3015c54
RR
284 $(MSWDIR)/accel.$(OBJSUFF) \
285 $(MSWDIR)/app.$(OBJSUFF) \
286 $(MSWDIR)/bitmap.$(OBJSUFF) \
287 $(MSWDIR)/bmpbuttn.$(OBJSUFF) \
288 $(MSWDIR)/brush.$(OBJSUFF) \
289 $(MSWDIR)/button.$(OBJSUFF) \
290 $(MSWDIR)/caret.$(OBJSUFF) \
291 $(MSWDIR)/checkbox.$(OBJSUFF) \
292 $(MSWDIR)/checklst.$(OBJSUFF) \
293 $(MSWDIR)/choice.$(OBJSUFF) \
294 $(MSWDIR)/clipbrd.$(OBJSUFF) \
295 $(MSWDIR)/colordlg.$(OBJSUFF) \
296 $(MSWDIR)/colour.$(OBJSUFF) \
297 $(MSWDIR)/combobox.$(OBJSUFF) \
298 $(MSWDIR)/control.$(OBJSUFF) \
299 $(MSWDIR)/curico.$(OBJSUFF) \
300 $(MSWDIR)/cursor.$(OBJSUFF) \
301 $(MSWDIR)/data.$(OBJSUFF) \
302 $(MSWDIR)/dc.$(OBJSUFF) \
303 $(MSWDIR)/dcclient.$(OBJSUFF) \
304 $(MSWDIR)/dcmemory.$(OBJSUFF) \
305 $(MSWDIR)/dcprint.$(OBJSUFF) \
306 $(MSWDIR)/dcscreen.$(OBJSUFF) \
a3015c54 307 $(MSWDIR)/dialog.$(OBJSUFF) \
e694c22c 308 $(MSWDIR)/dialup.$(OBJSUFF) \
a3015c54
RR
309 $(MSWDIR)/dib.$(OBJSUFF) \
310 $(MSWDIR)/dibutils.$(OBJSUFF) \
311 $(MSWDIR)/dragimag.$(OBJSUFF) \
d9317fd4 312 $(MSWDIR)/enhmeta.$(OBJSUFF) \
0cbff120 313 $(MSWDIR)/evtloop.$(OBJSUFF) \
8db37e06 314 $(MSWDIR)/fdrepdlg.$(OBJSUFF) \
a3015c54
RR
315 $(MSWDIR)/filedlg.$(OBJSUFF) \
316 $(MSWDIR)/font.$(OBJSUFF) \
317 $(MSWDIR)/fontdlg.$(OBJSUFF) \
01dba85a
JS
318 $(MSWDIR)/fontenum.$(OBJSUFF) \
319 $(MSWDIR)/fontutil.$(OBJSUFF) \
a3015c54
RR
320 $(MSWDIR)/frame.$(OBJSUFF) \
321 $(MSWDIR)/gauge95.$(OBJSUFF) \
0d0512bd 322 $(MSWDIR)/gdiimage.$(OBJSUFF) \
a3015c54 323 $(MSWDIR)/gdiobj.$(OBJSUFF) \
8b089c5e 324 $(MSWDIR)/glcanvas.$(OBJSUFF) \
ce32af5d 325 $(MSWDIR)/helpbest.$(OBJSUFF) \
f6bcfd97 326 $(MSWDIR)/helpchm.$(OBJSUFF) \
a3015c54
RR
327 $(MSWDIR)/helpwin.$(OBJSUFF) \
328 $(MSWDIR)/icon.$(OBJSUFF) \
329 $(MSWDIR)/imaglist.$(OBJSUFF) \
330 $(MSWDIR)/joystick.$(OBJSUFF) \
331 $(MSWDIR)/listbox.$(OBJSUFF) \
332 $(MSWDIR)/listctrl.$(OBJSUFF) \
a3015c54
RR
333 $(MSWDIR)/mdi.$(OBJSUFF) \
334 $(MSWDIR)/menu.$(OBJSUFF) \
335 $(MSWDIR)/menuitem.$(OBJSUFF) \
336 $(MSWDIR)/metafile.$(OBJSUFF) \
337 $(MSWDIR)/minifram.$(OBJSUFF) \
338 $(MSWDIR)/msgdlg.$(OBJSUFF) \
339 $(MSWDIR)/nativdlg.$(OBJSUFF) \
340 $(MSWDIR)/notebook.$(OBJSUFF) \
341 $(MSWDIR)/ownerdrw.$(OBJSUFF) \
342 $(MSWDIR)/palette.$(OBJSUFF) \
343 $(MSWDIR)/pen.$(OBJSUFF) \
344 $(MSWDIR)/penwin.$(OBJSUFF) \
a3015c54
RR
345 $(MSWDIR)/printdlg.$(OBJSUFF) \
346 $(MSWDIR)/printwin.$(OBJSUFF) \
347 $(MSWDIR)/radiobox.$(OBJSUFF) \
348 $(MSWDIR)/radiobut.$(OBJSUFF) \
a3015c54 349 $(MSWDIR)/region.$(OBJSUFF) \
a3015c54
RR
350 $(MSWDIR)/scrolbar.$(OBJSUFF) \
351 $(MSWDIR)/settings.$(OBJSUFF) \
352 $(MSWDIR)/slider95.$(OBJSUFF) \
353 $(MSWDIR)/spinbutt.$(OBJSUFF) \
791a2102 354 $(MSWDIR)/spinctrl.$(OBJSUFF) \
a3015c54
RR
355 $(MSWDIR)/statbmp.$(OBJSUFF) \
356 $(MSWDIR)/statbox.$(OBJSUFF) \
357 $(MSWDIR)/statbr95.$(OBJSUFF) \
358 $(MSWDIR)/statline.$(OBJSUFF) \
359 $(MSWDIR)/stattext.$(OBJSUFF) \
360 $(MSWDIR)/tabctrl.$(OBJSUFF) \
361 $(MSWDIR)/taskbar.$(OBJSUFF) \
362 $(MSWDIR)/tbar95.$(OBJSUFF) \
363 $(MSWDIR)/textctrl.$(OBJSUFF) \
1db8dc4a 364 $(MSWDIR)/tglbtn.$(OBJSUFF) \
a3015c54
RR
365 $(MSWDIR)/timer.$(OBJSUFF) \
366 $(MSWDIR)/tooltip.$(OBJSUFF) \
34a1d732 367 $(MSWDIR)/toplevel.$(OBJSUFF) \
a3015c54 368 $(MSWDIR)/treectrl.$(OBJSUFF) \
a3015c54 369 $(MSWDIR)/wave.$(OBJSUFF) \
f50fd919 370 $(MSWDIR)/window.$(OBJSUFF)
2bda0e17 371
c448540d
MB
372ADVANCEDOBJS_BASE = \
373
6c8a980f 374ADVANCEDOBJS = \
c448540d 375 $(ADVANCEDOBJS_BASE) \
6c8a980f
VZ
376 $(COMMDIR)/odbc.$(OBJSUFF) \
377 $(MSWDIR)/ole/automtn.$(OBJSUFF) \
378 $(MSWDIR)/ole/dataobj.$(OBJSUFF) \
379 $(MSWDIR)/ole/dropsrc.$(OBJSUFF) \
380 $(MSWDIR)/ole/droptgt.$(OBJSUFF) \
381 $(MSWDIR)/ole/oleutils.$(OBJSUFF) \
382 $(MSWDIR)/ole/uuid.$(OBJSUFF)
383
c45a644e
RR
384ZLIBOBJS = \
385 $(ZLIBDIR)/adler32.$(OBJSUFF) \
386 $(ZLIBDIR)/compress.$(OBJSUFF) \
387 $(ZLIBDIR)/crc32.$(OBJSUFF) \
388 $(ZLIBDIR)/gzio.$(OBJSUFF) \
389 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
390 $(ZLIBDIR)/deflate.$(OBJSUFF) \
391 $(ZLIBDIR)/trees.$(OBJSUFF) \
392 $(ZLIBDIR)/zutil.$(OBJSUFF) \
393 $(ZLIBDIR)/inflate.$(OBJSUFF) \
394 $(ZLIBDIR)/infblock.$(OBJSUFF) \
395 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
396 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
397 $(ZLIBDIR)/infutil.$(OBJSUFF) \
398 $(ZLIBDIR)/inffast.$(OBJSUFF)
399
400PNGOBJS = \
401 $(PNGDIR)/png.$(OBJSUFF) \
402 $(PNGDIR)/pngread.$(OBJSUFF) \
403 $(PNGDIR)/pngrtran.$(OBJSUFF) \
404 $(PNGDIR)/pngrutil.$(OBJSUFF) \
405 $(PNGDIR)/pngpread.$(OBJSUFF) \
406 $(PNGDIR)/pngtrans.$(OBJSUFF) \
407 $(PNGDIR)/pngwrite.$(OBJSUFF) \
408 $(PNGDIR)/pngwtran.$(OBJSUFF) \
409 $(PNGDIR)/pngwutil.$(OBJSUFF) \
410 $(PNGDIR)/pngerror.$(OBJSUFF) \
411 $(PNGDIR)/pngmem.$(OBJSUFF) \
412 $(PNGDIR)/pngwio.$(OBJSUFF) \
413 $(PNGDIR)/pngrio.$(OBJSUFF) \
414 $(PNGDIR)/pngget.$(OBJSUFF) \
415 $(PNGDIR)/pngset.$(OBJSUFF)
416
417
418JPEGOBJS = \
419 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
420 $(JPEGDIR)/jutils.$(OBJSUFF) \
421 $(JPEGDIR)/jerror.$(OBJSUFF) \
422 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
423 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
424 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
425 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
426 $(JPEGDIR)/jctrans.$(OBJSUFF) \
427 $(JPEGDIR)/jcparam.$(OBJSUFF) \
428 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
429 $(JPEGDIR)/jcinit.$(OBJSUFF) \
430 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
431 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
432 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
433 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
434 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
435 $(JPEGDIR)/jccolor.$(OBJSUFF) \
436 $(JPEGDIR)/jcsample.$(OBJSUFF) \
437 $(JPEGDIR)/jchuff.$(OBJSUFF) \
438 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
439 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
440 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
441 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
442 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
443 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
444 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
445 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
446 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
447 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
448 $(JPEGDIR)/jdinput.$(OBJSUFF) \
449 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
450 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
451 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
452 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
453 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
454 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
455 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
456 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
457 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
458 $(JPEGDIR)/jidctint.$(OBJSUFF) \
459 $(JPEGDIR)/jidctred.$(OBJSUFF) \
460 $(JPEGDIR)/jdsample.$(OBJSUFF) \
461 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
462 $(JPEGDIR)/jquant1.$(OBJSUFF) \
463 $(JPEGDIR)/jquant2.$(OBJSUFF) \
464 $(JPEGDIR)/jdmerge.$(OBJSUFF)
465
8535af00
VZ
466TIFFOBJS = $(TIFFDIR)/tif_aux.o \
467 $(TIFFDIR)/tif_close.o \
468 $(TIFFDIR)/tif_codec.o \
469 $(TIFFDIR)/tif_compress.o \
470 $(TIFFDIR)/tif_dir.o \
471 $(TIFFDIR)/tif_dirinfo.o \
472 $(TIFFDIR)/tif_dirread.o \
473 $(TIFFDIR)/tif_dirwrite.o \
474 $(TIFFDIR)/tif_dumpmode.o \
475 $(TIFFDIR)/tif_error.o \
476 $(TIFFDIR)/tif_fax3.o \
477 $(TIFFDIR)/tif_fax3sm.o \
478 $(TIFFDIR)/tif_flush.o \
479 $(TIFFDIR)/tif_getimage.o \
480 $(TIFFDIR)/tif_jpeg.o \
481 $(TIFFDIR)/tif_luv.o \
482 $(TIFFDIR)/tif_lzw.o \
483 $(TIFFDIR)/tif_next.o \
484 $(TIFFDIR)/tif_open.o \
485 $(TIFFDIR)/tif_packbits.o \
486 $(TIFFDIR)/tif_pixarlog.o \
487 $(TIFFDIR)/tif_predict.o \
488 $(TIFFDIR)/tif_print.o \
489 $(TIFFDIR)/tif_read.o \
490 $(TIFFDIR)/tif_strip.o \
491 $(TIFFDIR)/tif_swab.o \
492 $(TIFFDIR)/tif_thunder.o \
493 $(TIFFDIR)/tif_tile.o \
494 $(TIFFDIR)/tif_version.o \
495 $(TIFFDIR)/tif_warning.o \
496 $(TIFFDIR)/tif_win32.o \
497 $(TIFFDIR)/tif_write.o \
498 $(TIFFDIR)/tif_zip.o
499
6c8a980f 500ifeq ($(MINGW32),1)
8535af00 501 ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
fd4fe42c 502 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
6c8a980f 503 else
fd4fe42c 504 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
6c8a980f
VZ
505 endif
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# MBN: if anyone has a better solution for this kludge, step
514# forward, *please*
515# this tests is we are on cygwin or not ( will _not_ work if you are using
516# ZSH on plain Win32, tought ); it uses the presence of "/"
517# in the PATH variable
518
519# how do you do "VAR=\" ? BLEAGH!
520BACKSLASH=$(subst a,\,a)
521ifeq (,$(findstring /,$(PATH)))
522 IS_CYGWIN=0
523 PATH_SEPARATOR:=$(BACKSLASH)
524 PATH_SUBST=/
525else
526 IS_CYGWIN=1
527 PATH_SEPARATOR=/
528 PATH_SUBST:=$(BACKSLASH)
529endif
530
c942560f 531#ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
c448540d 532ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
b3bd664a 533
180db908 534SETUP_H=$(ARCHINCDIR)/wx/setup.h
b3bd664a 535
fa146dd7 536ifndef WXMAKINGDLL
b3bd664a 537all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
fa146dd7 538else
b3bd664a 539all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
fa146dd7 540endif
8535af00 541
180db908 542$(ARCHINCDIR)/wx:
6433f6d3
MB
543 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
544 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
b3bd664a 545
180db908 546$(SETUP_H): $(ARCHINCDIR)/wx
c942560f
JS
547 $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
548
549# $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
b3bd664a 550
8535af00 551ifndef WXMAKINGDLL
2bda0e17 552
2bda0e17
KB
553$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
554 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
555 $(RANLIB) $@
556
8535af00
VZ
557else
558
559# The new linker is a few orders of magnitude faster than the old way
560# of creating DLLs.
561ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
562
563$(WXDLL): $(OBJECTS) $(EXTRAOBJS)
564 $(CC) -shared -o $@ \
565 -Wl,--output-def,$(WXDEF) \
566 -Wl,--out-implib,$(WXLIB) \
567 $(OBJECTS) $(EXTRAOBJS) \
568 $(DLL_LDFLAGS) $(DLL_LDLIBS)
569else
570
571ifeq ($(MINGW32),1)
572 DLL_ENTRY = _DllMainCRTStartup@12
573else
574 DLL_ENTRY = __cygwin_dll_entry@12
575endif
576LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
577 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
578
579DLL_STUFF = --as=$(AS) --dllname $(notdir $(WXDLL)) \
580 --def $(WXDEF) \
581 --base-file wx.base --output-exp wx.exp
582
583$(WXDEF) $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
584 $(DLLTOOL) --output-def $@ --output-lib $(WXLIB) \
585 --dllname $(notdir $(WXDLL)) \
586 $(OBJECTS) $(EXTRAOBJS) $(DLL_EXTRA_LIBS)
587
588$(WXDLL): $(OBJECTS) $(EXTRAOBJS) $(WXDEF)
589 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF)
590 $(DLLTOOL) $(DLL_STUFF)
591 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF)
592 $(DLLTOOL) $(DLL_STUFF)
593 $(CC) -mdll wx.exp -o $@ $(LD_STUFF)
594 -$(RM) wx.base
595 -$(RM) wx.exp
596
597endif
598
599endif
600
601
01dba85a 602$(ZLIBLIB): $(ZLIBOBJS)
fa146dd7 603 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
01dba85a
JS
604 $(RANLIB) $@
605
606$(PNGLIB): $(PNGOBJS)
fa146dd7 607 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
01dba85a
JS
608 $(RANLIB) $@
609
610$(JPEGLIB): $(JPEGOBJS)
fa146dd7 611 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
01dba85a
JS
612 $(RANLIB) $@
613
8535af00 614$(TIFFLIB): $(TIFFOBJS)
fa146dd7 615 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
8535af00
VZ
616 $(RANLIB) $@
617
b3bd664a
MB
618$(REGEXLIB):
619 $(MAKE) -C $(REGEXDIR) -f makefile.g95 WXDIR=$(WXDIR)
8535af00 620
b3bd664a 621$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
2bda0e17
KB
622
623$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
6a570331
RR
624 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
625
8e97b17b 626$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
102f951d 627 $(COPY) ../common/dosyacc.c ../common/y_tab.c
8e97b17b 628
6a570331 629$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
102f951d 630 $(COPY) ../common/doslex.c ../common/lex_yy.c
2bda0e17
KB
631
632# Replace lex with flex if you run into compilation
633# problems with lex_yy.c. See also note about LEX_SCANNER
634# above.
6a570331
RR
635# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
636# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
637#
8870c26e
JS
638# Try one of these if the above line doesn't work.
639# Alternative syntax (1)
640# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
641# Alternative syntax (2)
642# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
6a570331 643#
2bda0e17
KB
644# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
645# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
646# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
647# rm -f lex.yy.c
6a570331 648#
2bda0e17
KB
649# Replace yacc with bison if you run into compilation
650# problems with y_tab.c.
6a570331
RR
651#
652# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
653# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
654#
57c208c5
JS
655# If you use e.g. gcc on Unix, uncomment these lines
656# and comment out the above.
6a570331 657#
a1b82138 658# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
57c208c5
JS
659# $(YACC) $(COMMDIR)/parser.y
660# mv y.tab.c $(COMMDIR)/y_tab.c
2bda0e17 661
2bda0e17 662clean:
6474416b 663 -$(RM) *.o
01dba85a 664 -$(RM) ole/*.o
6474416b
JS
665 -$(RM) *.bak
666 -$(RM) core
01dba85a
JS
667 -$(RM) ../common/y_tab.c
668 -$(RM) ../common/lex_yy.c
669 -$(RM) ../common/*.o
670 -$(RM) ../common/*.bak
671 -$(RM) ../generic/*.o
672 -$(RM) ../generic/*.bak
673 -$(RM) ../html/*.o
01dba85a
JS
674 -$(RM) ../zlib/*.o
675 -$(RM) ../zlib/*.bak
8535af00
VZ
676 -$(RM) ../png/*.o
677 -$(RM) ../png/*.bak
01dba85a 678 -$(RM) ../jpeg/*.o
fd4fe42c 679 -$(RM) ../jpeg/*.bak
8535af00
VZ
680 -$(RM) ../tiff/*.o
681 -$(RM) ../tiff/*.bak
b3bd664a
MB
682 -$(RM) ../regex/*.o
683 -$(RM) ../regex/*.bak
6e6d9f9e
VZ
684
685cleanall: clean
8535af00 686 -$(RM) $(WXLIB)
fa146dd7
VS
687 -$(RM) $(ZLIBLIB)
688 -$(RM) $(PNGLIB)
689 -$(RM) $(JPEGLIB)
fa146dd7 690 -$(RM) $(TIFFLIB)
b3bd664a 691 -$(RM) $(REGEXLIB)
8535af00
VZ
692
693ifdef WXMAKINGDLL
694 -$(RM) $(WXDLL)
695 -$(RM) $(WXDEF)
696ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
697 -$(RM) wx.base
698 -$(RM) wx.exp
699endif
700endif
31929f80 701