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)/common:$(srcdir)/@TOOLKIT_DIR@:$(srcdir)/generic:$(EXTRA_VPATH)
14 lib_LTLIBRARIES = libwx_@WX_LIBRARY@.la
16 # these are the common files which always make part of the library
17 libwx__WX_LIBRARY__la_SOURCES = \
34 # these are the sources which we build by our own rules
36 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
37 # don't know where to put lexer.l - if I put it in the sources too,
38 # automake tries to build lexer.lo... and fails, of course. (VZ)
39 BUILT_SOURCES = parser.c lexer.c
40 parser.c: $(srcdir)/common/parser.y lexer.c
41 $(YACC) $(srcdir)/common/parser.y
42 @sed -e "s;$(srcdir)/common/y.tab.c;parser.y;g" < y.tab.c | \
43 sed -e "s/BUFSIZ/5000/g" | \
44 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
45 sed -e "s/yy/PROIO_yy/g" | \
46 sed -e "s/input/PROIO_input/g" | \
47 sed -e "s/unput/PROIO_unput/g" > parser.c
50 lexer.c: $(srcdir)/common/lexer.l
51 $(LEX) $(srcdir)/common/lexer.l
52 @sed -e "s;$(srcdir)/common/lex.yy.c;lexer.l;g" < lex.yy.c | \
53 sed -e "s/yy/PROIO_yy/g" | \
54 sed -e "s/input/PROIO_input/g" | \
55 sed -e "s/unput/PROIO_unput/g" > lexer.c
58 # these are the files which are only sometimes linked into the library - they
59 # still *must* be all enumerated here to satisfy automake requirments!
61 # NB: the files are listed in directory/alphabetical order: first the files
62 # from common, then from generic, then from unix, then from gtk.
63 EXTRA_libwx__WX_LIBRARY__la_SOURCES = \
215 libwx__WX_LIBRARY__la_LDFLAGS = -release @WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
216 libwx__WX_LIBRARY__la_LIBADD = $(LTLIBOBJS)
217 libwx__WX_LIBRARY__la_DEPENDENCIES = $(libwx__WX_LIBRARY__la_LIBADD) lexer.l