1 ## Purpose: The automake makefile for wxWindows (src/msw subdirectory)
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}/../generic:${EXTRA_VPATH}
14 EXTRA_DIST = "${srcdir}/../common ${srcdir}/../generic ${srcdir}"
16 lib_LTLIBRARIES = @WX_LIBRARY_NAME@
17 EXTRA_LTLIBRARIES = libwx_gtk.la libwx_motif.la libwx_msw.la
19 # these are the common files which always make part of the library
20 libwx_msw_la_SOURCES = \
175 # these are the sources which we build by our own rules
177 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
178 # don't know where to put lexer.l - if I put it in the sources too,
179 # automake tries to build lexer.lo... and fails, of course. (VZ)
180 BUILT_SOURCES = parser.c lexer.c
181 parser.c: $(srcdir)/../common/parser.y lexer.c
182 $(YACC) $(srcdir)/../common/parser.y
183 @sed -e "s;$(srcdir)/../common/y.tab.c;parser.y;g" < y.tab.c | \
184 sed -e "s/BUFSIZ/5000/g" | \
185 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
186 sed -e "s/yy/PROIO_yy/g" | \
187 sed -e "s/input/PROIO_input/g" | \
188 sed -e "s/unput/PROIO_unput/g" > parser.c
191 lexer.c: $(srcdir)/../common/lexer.l
192 $(LEX) $(srcdir)/../common/lexer.l
193 @sed -e "s;$(srcdir)/../common/lex.yy.c;lexer.l;g" < lex.yy.c | \
194 sed -e "s/yy/PROIO_yy/g" | \
195 sed -e "s/input/PROIO_input/g" | \
196 sed -e "s/unput/PROIO_unput/g" > lexer.c
199 libwx_msw_la_LDFLAGS = -rpath @libdir@ \
200 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
201 -release $(LT_RELEASE)
202 libwx_msw_la_LIBADD = $(LTLIBOBJS)
203 libwx_msw_la_DEPENDENCIES = $(libwx_msw_la_LIBADD) lexer.l parser.y