1 ## Purpose: The automake makefile for wxWindows (src/gtk subdirectory)
2 ## Author: Phil Blecker, Vadim Zeitlin, Robert Roebling
5 ## Process this file with automake to produce Makefile.in
7 AUTOMAKE_OPTIONS = 1.3 no-dependencies
11 DEFS = $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
14 VPATH = .:${srcdir}:${srcdir}/../common:${srcdir}/../generic:${EXTRA_VPATH}
16 EXTRA_DIST = "${srcdir}/../common ${srcdir}/../generic ${srcdir}"
18 lib_LTLIBRARIES = @WX_LIBRARY_NAME@
19 EXTRA_LTLIBRARIES = libwx_gtk.la libwx_motif.la libwx_msw.la
22 libwx_motif_la_SOURCES =
24 # empty MSW/WINE library
25 libwx_msw_la_SOURCES =
27 # these are the common files which always make part of the library
28 libwx_gtk_la_SOURCES = \
194 # these are the sources which we build by our own rules
196 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
197 # don't know where to put lexer.l - if I put it in the sources too,
198 # automake tries to build lexer.lo... and fails, of course. (VZ)
199 BUILT_SOURCES = parser.c lexer.c
200 parser.c: $(srcdir)/../common/parser.y lexer.c
201 $(YACC) $(srcdir)/../common/parser.y
202 @sed -e "s;$(srcdir)/../common/y.tab.c;parser.y;g" < y.tab.c | \
203 sed -e "s/BUFSIZ/5000/g" | \
204 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
205 sed -e "s/yy/PROIO_yy/g" | \
206 sed -e "s/input/PROIO_input/g" | \
207 sed -e "s/unput/PROIO_unput/g" > parser.c
210 lexer.c: $(srcdir)/../common/lexer.l
211 $(LEX) $(srcdir)/../common/lexer.l
212 @sed -e "s;$(srcdir)/../common/lex.yy.c;lexer.l;g" < lex.yy.c | \
213 sed -e "s/yy/PROIO_yy/g" | \
214 sed -e "s/input/PROIO_input/g" | \
215 sed -e "s/unput/PROIO_unput/g" > lexer.c
218 libwx_gtk_la_LDFLAGS = -rpath @libdir@ \
219 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
220 -release $(LT_RELEASE)
221 libwx_gtk_la_LIBADD = $(LTLIBOBJS)
222 libwx_gtk_la_DEPENDENCIES = $(libwx_gtk_la_LIBADD) lexer.l parser.y