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
12 DEFS = $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
15 VPATH = .:${srcdir}:${srcdir}/../common:${srcdir}/../generic:${srcdir}/../html:${EXTRA_VPATH}
17 lib_LTLIBRARIES = @WX_LIBRARY_NAME@
18 EXTRA_LTLIBRARIES = libwx_gtk.la libwx_motif.la libwx_msw.la
21 libwx_motif_la_SOURCES =
23 # empty MSW/WINE library
24 libwx_msw_la_SOURCES =
26 # these are the common files which always make part of the library
27 libwx_gtk_la_SOURCES = \
224 # these are the sources which we build by our own rules
226 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
227 # don't know where to put lexer.l - if I put it in the sources too,
228 # automake tries to build lexer.lo... and fails, of course. (VZ)
229 BUILT_SOURCES = parser.c lexer.c
230 parser.c: $(srcdir)/../common/parser.y lexer.c
231 $(YACC) $(srcdir)/../common/parser.y
232 @sed -e "s;$(srcdir)/../common/y.tab.c;parser.y;g" < y.tab.c | \
233 sed -e "s/BUFSIZ/5000/g" | \
234 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
235 sed -e "s/yy/PROIO_yy/g" | \
236 sed -e "s/input/PROIO_input/g" | \
237 sed -e "s/unput/PROIO_unput/g" > parser.c
240 lexer.c: $(srcdir)/../common/lexer.l
241 $(LEX) $(srcdir)/../common/lexer.l
242 @sed -e "s;$(srcdir)/../common/lex.yy.c;lexer.l;g" < lex.yy.c | \
243 sed -e "s/yy/PROIO_yy/g" | \
244 sed -e "s/input/PROIO_input/g" | \
245 sed -e "s/unput/PROIO_unput/g" > lexer.c
248 libwx_gtk_la_LDFLAGS = -rpath @libdir@ \
249 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
250 -release $(LT_RELEASE)
251 libwx_gtk_la_LIBADD = $(LTLIBOBJS)
252 libwx_gtk_la_DEPENDENCIES = $(libwx_gtk_la_LIBADD) lexer.l parser.y