2 # Simple Makefile for building test FD plugins for Bacula
7 # No optimization for now for easy debugging
16 $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${DIRDIR} -DTEST_PROGRAM -c $<
18 all: example-plugin-dir.la
20 example-plugin-dir.lo: example-plugin-dir.c ${DIRDIR}/dir_plugins.h
21 $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CFLAGS) -I../.. -I${DIRDIR} -c example-plugin-dir.c
23 example-plugin-dir.la: Makefile example-plugin-dir.lo
24 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared example-plugin-dir.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version
27 $(MKDIR) $(DESTDIR)$(plugindir)
28 $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) example-plugin-dir.la $(DESTDIR)$(plugindir)
29 $(RMF) $(DESTDIR)$(plugindir)/example-plugin-dir.la
32 find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
36 clean: @LIBTOOL_CLEAN_TARGET@
37 rm -f main *.so *.o 1 2 3
40 rm -f Makefile *.la *.lo
44 $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(plugindir)/example-plugin-dir.la
46 uninstall: @LIBTOOL_UNINSTALL_TARGET@