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