1 ## Purpose: The automake makefile for wxWindows.
2 ## Author: Phil Blecker, Vadim Zeitlin
5 ## Process this file with automake to produce Makefile.in
9 DEFS = $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
12 VPATH = .:${srcdir}:${srcdir}/common:${srcdir}/@TOOLKIT_DIR@:${srcdir}/generic:${EXTRA_VPATH}
14 EXTRA_DIST = "${srcdir}/common ${srcdir}/generic ${srcdir}/@TOOLKIT_DIR@"
16 lib_LTLIBRARIES = @WX_LIBRARY_NAME@
17 EXTRA_LTLIBRARIES = libwx_gtk2.la libwx_motif2.la
19 # these are the common files which always make part of the library
20 libwx_gtk2_la_SOURCES = \
37 # these are the sources which we build by our own rules
39 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
40 # don't know where to put lexer.l - if I put it in the sources too,
41 # automake tries to build lexer.lo... and fails, of course. (VZ)
42 BUILT_SOURCES = parser.c lexer.c
43 parser.c: $(srcdir)/common/parser.y lexer.c
44 $(YACC) $(srcdir)/common/parser.y
45 @sed -e "s;$(srcdir)/common/y.tab.c;parser.y;g" < y.tab.c | \
46 sed -e "s/BUFSIZ/5000/g" | \
47 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
48 sed -e "s/yy/PROIO_yy/g" | \
49 sed -e "s/input/PROIO_input/g" | \
50 sed -e "s/unput/PROIO_unput/g" > parser.c
53 lexer.c: $(srcdir)/common/lexer.l
54 $(LEX) $(srcdir)/common/lexer.l
55 @sed -e "s;$(srcdir)/common/lex.yy.c;lexer.l;g" < lex.yy.c | \
56 sed -e "s/yy/PROIO_yy/g" | \
57 sed -e "s/input/PROIO_input/g" | \
58 sed -e "s/unput/PROIO_unput/g" > lexer.c
61 # these are the files which are only sometimes linked into the library - they
62 # still *must* be all enumerated here to satisfy automake requirments!
64 # NB: the files are listed in directory/alphabetical order: first the files
65 # from common, then from generic, then from unix, then from gtk.
66 EXTRA_libwx_gtk2_la_SOURCES = \
218 libwx_gtk2_la_LDFLAGS = -rpath @libdir@ -release @WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
219 libwx_gtk2_la_LIBADD = $(LTLIBOBJS)
220 libwx_gtk2_la_DEPENDENCIES = $(libwx_gtk2_la_LIBADD) lexer.l
222 libwx_motif2_la_SOURCES = ${libwx_gtk2_la_SOURCES}
223 EXTRA_libwx_motif2_la_SOURCES = ${EXTRA_libwx_gtk2_la_SOURCES}
224 libwx_motif2_la_LDFLAGS = -rpath @libdir@ ${libwx_gtk2_la_LDFLAGS}
225 libwx_motif2_la_LIBADD = ${libwx_gtk2_la_LIBADD}
226 libwx_motif2_la_DEPENDENCIES = ${libwx_gtk2_la_DEPENDENCIES}