# # Copyright (C) 2003, 2004 Bojan Smojver, Rexursive # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free # Software Foundation; either version 2 of the Licence, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for # more details. # # You should have received a copy of the GNU General Public Licence along # with this program; if not, write to the Free Software Foundation, Inc., 59 # Temple Place, Suite 330, Boston, MA 02111-1307 USA # nodist_include_HEADERS=include/rxv_spin.h lib_LTLIBRARIES=librxv_spin.la noinst_LTLIBRARIES=mod_spin.la include/rxv_spin.h: rxv_spin.h eatdoxygen $(mkinstalldirs) include ./eatdoxygen < $< | ./eatdoxygen > $@ parser.c parser.h: parser.y $(YACC) -d -o $@ $< scanner.c scanner.h: scanner.l parser.h $(LEX) -o $@ $< librxv_spin_la_SOURCES=data.c context.c store.c db.c cpool.c private.h librxv_spin_la_LDFLAGS=-rpath $(libdir) -export-dynamic mod_spin_la_SOURCES=mod_spin.c parser.c scanner.c processor.c util.c private.h if STATICBUILD mod_spin_la_LDFLAGS=-rpath $(libexecdir) -module -avoid-version \ -export-dynamic -static -lrxv_spin install-exec-local: install-exec-hook: mod_spin.la config.m4 $(mkinstalldirs) $(DESTDIR)$(libexecdir) $(LIBTOOL) --mode=install $(INSTALL) mod_spin.la $(DESTDIR)$(libexecdir) $(INSTALL_DATA) config.m4 $(DESTDIR)$(libexecdir) uninstall-local: rm -rf $(DESTDIR)$(libexecdir) else mod_spin_la_LDFLAGS=-rpath $(libexecdir) -module -avoid-version \ -export-dynamic -lrxv_spin install-exec-local: if PACKAGERBUILD install-exec-hook: mod_spin.la $(mkinstalldirs) $(DESTDIR)$(libexecdir) $(LIBTOOL) --mode=install $(INSTALL) mod_spin.la $(DESTDIR)$(libexecdir) else install-exec-hook: mod_spin.la $(mkinstalldirs) $(DESTDIR)$(libexecdir) $(apxs) -i -a -n spin mod_spin.la endif uninstall-local: rm -f $(DESTDIR)$(libexecdir)/mod_spin.so* endif # Handy little programs noinst_PROGRAMS=spin eatdoxygen # A simple test program that simulates template processing spin_SOURCES=spin.c spin_LDADD=parser.lo scanner.lo processor.lo util.lo librxv_spin.la spin_LDFLAGS=-export-dynamic -R $(libdir) # For cleaning up doxygen comments eatdoxygen_SOURCES=eatdoxygen.l eatdoxygen.c: eatdoxygen.l $(LEX) -o$@ $<