3 DEFS = $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
6 VPATH = .:$(srcdir)/common:$(srcdir)/@TOOLKIT_DIR@:$(srcdir)/generic:$(EXTRA_VPATH)
8 lib_LTLIBRARIES = libwx_@WX_LIBRARY@.la
10 # these are the common files which always make part of the library
11 libwx__WX_LIBRARY__la_SOURCES = \
28 # these are the sources which we build by our own rules
30 # TODO: parser.y can be included into SOURCES, but for the sake of my life I
31 # don't know where to put lexer.l - if I put it in the sources too,
32 # automake tries to build lexer.lo... and fails, of course. (VZ)
33 BUILT_SOURCES = parser.c lexer.c
34 parser.c: $(srcdir)/common/parser.y lexer.c
35 $(YACC) $(srcdir)/common/parser.y
36 @sed -e "s;$(srcdir)/common/y.tab.c;parser.y;g" < y.tab.c | \
37 sed -e "s/BUFSIZ/5000/g" | \
38 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
39 sed -e "s/yy/PROIO_yy/g" | \
40 sed -e "s/input/PROIO_input/g" | \
41 sed -e "s/unput/PROIO_unput/g" > parser.c
44 lexer.c: $(srcdir)/common/lexer.l
45 $(LEX) $(srcdir)/common/lexer.l
46 @sed -e "s;$(srcdir)/common/lex.yy.c;lexer.l;g" < lex.yy.c | \
47 sed -e "s/yy/PROIO_yy/g" | \
48 sed -e "s/input/PROIO_input/g" | \
49 sed -e "s/unput/PROIO_unput/g" > lexer.c
52 # these are the files which are only sometimes linked into the library - they
53 # still *must* be all enumerated here to satisfy automake requirments!
55 # NB: the files are listed in directory/alphabetical order: first the files
56 # from common, then from generic, then from unix, then from gtk.
57 EXTRA_libwx__WX_LIBRARY__la_SOURCES = \
209 libwx__WX_LIBRARY__la_LDFLAGS = -release @WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
210 libwx__WX_LIBRARY__la_LIBADD = $(LTLIBOBJS)
211 libwx__WX_LIBRARY__la_DEPENDENCIES = $(libwx__WX_LIBRARY__la_LIBADD) lexer.l
213 libwx_@WX_LIBRARY@.la: $(libwx__WX_LIBRARY__la_OBJECTS) $(libwx__WX_LIBRARY__la_DEPENDENCIES)
214 $(CXXLINK) -rpath $(libdir) $(libwx__WX_LIBRARY__la_LDFLAGS) $(libwx__WX_LIBRARY__la_OBJECTS) $(libwx__WX_LIBRARY__la_LIBADD) $(LIBS)
216 # the files which we install manually (the rest is done by automake)
219 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx
220 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx/generic
221 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@
222 $(mkinstalldirs) $(DESTDIR)$(includedir)/wx/protocol
223 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/include/wx
224 @for p in $(top_srcdir)/include/wx/*.h $(top_srcdir)/include/wx/*.cpp; do \
225 h=`basename $$p`; (set -x; \
226 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/$$h ); \
228 @for p in $(top_srcdir)/include/wx/generic/*.h ; do \
229 h=`basename $$p`; (set -x; \
230 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/generic/$$h ); \
232 @for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.h ; do \
233 h=`basename $$p`; (set -x; \
234 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/$$h ); \
236 @if [ @TOOLKIT_DIR@ = msw ]; then \
237 for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.cur \
238 $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.ico \
239 $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.bmp \
240 $(top_srcdir)/include/wx/@TOOLKIT_DIR@/*.rc ; do \
241 h=`basename $$p`; (set -x; \
242 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/$$h ); \
244 for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/ctl3d/*.h ; do \
245 h=`basename $$p`; (set -x; \
246 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/ctl3d/$$h ); \
248 for p in $(top_srcdir)/include/wx/@TOOLKIT_DIR@/gnuwin32/*.h ; do \
249 h=`basename $$p`; (set -x; \
250 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/@TOOLKIT_DIR@/gnuwin32/$$h ); \
253 @for p in $(top_srcdir)/include/wx/protocol/*.h ; do \
254 h=`basename $$p`; (set -x; \
255 $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/wx/protocol/$$h ); \
257 $(INSTALL_DATA) ../include/wx/@TOOLKIT_DIR@/setup.h $(DESTDIR)$(pkgdatadir)/include/wx/setup.h