2 # Simple Makefile for building test FD plugins for Bacula
4 # Version $Id: Makefile.in 7841 2008-10-19 10:34:03Z kerns $
9 # No optimization for now for easy debugging
18 $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${SDDIR} -DTEST_PROGRAM -c $<
20 all: example-plugin-sd.la
22 example-plugin-sd.lo: example-plugin-sd.c ${SDDIR}/dir_plugins.h
23 $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CFLAGS) -I../.. -I${SDDIR} -c example-plugin-sd.c
25 example-plugin-sd.la: Makefile example-plugin-sd$(DEFAULT_OBJECT_TYPE)
26 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared example-plugin-sd.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version
29 $(MKDIR) $(DESTDIR)$(plugindir)
30 $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) example-plugin-sd$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
31 $(RMF) $(DESTDIR)$(plugindir)/example-plugin-sd.la
34 find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
38 clean: @LIBTOOL_CLEAN_TARGET@
39 rm -f main *.so *.o 1 2 3
45 $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(plugindir)/example-plugin-sd.so
47 uninstall: @LIBTOOL_UNINSTALL_TARGET@