# # Copyright (C) 2003 - 2005 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 noinst_LTLIBRARIES=librxv_spin.la mod_spin.la include/rxv_spin.h: rxv_spin.h eatdoxygen $(mkinstalldirs) include ./eatdoxygen < $< | ./eatdoxygen > $@ if NOBISON parser.c parser.h: else parser.c parser.h: parser.y $(YACC) -d -o $@ $< endif if NOFLEX scanner.c scanner.h: else scanner.c scanner.h: scanner.l parser.h $(LEX) -o $@ $< endif librxv_spin_la_SOURCES=data.c context.c store.c db.c conn.c dso.c private.h librxv_spin_la_LDFLAGS=-rpath $(libdir) -export-dynamic -version-info 1 mod_spin_la_SOURCES=mod_spin.c parser.c scanner.c processor.c private.h mod_spin_la_LIBADD=$(SPINLIBS) librxv_spin.la if STATICBUILD mod_spin_la_LDFLAGS=-rpath $(libexecdir) -module -avoid-version \ -export-dynamic -static install-exec-local: install-exec-hook: mod_spin.la config.m4 $(mkinstalldirs) $(DESTDIR)$(libdir) $(LIBTOOL) --mode=install $(INSTALL) librxv_spin.la $(DESTDIR)$(libdir) $(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 install-exec-local: if PACKAGERBUILD install-exec-hook: mod_spin.la eval "`eval \"echo $(LINK) $(mod_spin_la_LDFLAGS) $(mod_spin_la_OBJECTS) $(mod_spin_la_LIBADD) $(LIBS) | sed -e s/'libtool'/'libtool -n'/ -e s/'install-exec-hook'/'mod_spin.la'/g\" | sed -e s@'-Wl,[-]\+rpath -Wl,[^ ]\+ '@''@g -e s@'-L\(/usr\)*/lib\(64\)*\($$\| \)'@''@g`" $(mkinstalldirs) $(DESTDIR)$(libdir) $(LIBTOOL) --mode=install $(INSTALL) librxv_spin.la $(DESTDIR)$(libdir) $(mkinstalldirs) $(DESTDIR)$(libexecdir) $(LIBTOOL) --mode=install $(INSTALL) mod_spin.la $(DESTDIR)$(libexecdir) uninstall-local: $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libexecdir)/mod_spin.la $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/librxv_spin.la else install-exec-hook: mod_spin.la eval "`eval \"echo $(LINK) $(mod_spin_la_LDFLAGS) $(mod_spin_la_OBJECTS) $(mod_spin_la_LIBADD) $(LIBS) | sed -e s/'libtool'/'libtool -n'/ -e s/'install-exec-hook'/'mod_spin.la'/g\" | sed -e s@'-Wl,[^ ]\+\.libs '@'$(DESTDIR)$(libdir)'@g -e s@'-L\(/usr\)*/lib\(64\)*\($$\| \)'@''@g`" $(mkinstalldirs) $(DESTDIR)$(libdir) $(LIBTOOL) --mode=install $(INSTALL) librxv_spin.la $(DESTDIR)$(libdir) $(mkinstalldirs) $(DESTDIR)$(libexecdir) $(apxs) -i -a -n spin mod_spin.la uninstall-local: rm -f $(DESTDIR)$(libexecdir)/mod_spin.so* $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/librxv_spin.la endif endif # Handy little programs noinst_PROGRAMS=eatdoxygen # For cleaning up doxygen comments if NOFLEX eatdoxygen_SOURCES=eatdoxygen.c else eatdoxygen_SOURCES=eatdoxygen.l endif