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