2 # Simple Makefile for building test FD plugins for Bacula
9 # No optimization for now for easy debugging
18 $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c $<
22 bpipe-fd.lo: bpipe-fd.c ${FDDIR}/fd_plugins.h
23 $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I../.. -I${FDDIR} -c bpipe-fd.c
25 bpipe-fd.la: Makefile bpipe-fd$(DEFAULT_OBJECT_TYPE)
26 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared bpipe-fd.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version
29 $(MKDIR) $(DESTDIR)$(plugindir)
30 $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bpipe-fd.la $(DESTDIR)$(plugindir)
31 $(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.la
34 @find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
36 @$(RMF) -r .libs _libs
39 @rm -f main *.so *.o 1 2 3
45 $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.so
47 uninstall: @LIBTOOL_UNINSTALL_TARGET@