# # Simple Makefile for building test FD plugins for Bacula # # Version $Id$ # @MCOMMON@ # No optimization for now for easy debugging FDDIR=../../filed SRCDIR=../.. LIBDIR=../../lib .SUFFIXES: .c .o .c.o: $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c $< all: bpipe-fd.so test: main example-plugin-fd.so fd_plugins.o: ${FDDIR}/fd_plugins.h ${FDDIR}/fd_plugins.c $(CXX) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c ${FDDIR}/fd_plugins.c main: fd_plugins.o $(CXX) $(LDFLAGS) -L${LIBDIR} fd_plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl example-plugin-fd.o: example-plugin-fd.c ${FDDIR}/fd_plugins.h $(CXX) -fPIC -I../.. -I${FDDIR} -c example-plugin-fd.c example-plugin-fd.so: example-plugin-fd.o $(CXX) $(LDFLAGS) -shared example-plugin-fd.o -o example-plugin-fd.so bpipe-fd.o: bpipe-fd.c ${FDDIR}/fd_plugins.h $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -fPIC -I../.. -I${FDDIR} -c bpipe-fd.c bpipe-fd.so: bpipe-fd.o $(CXX) $(LDFLAGS) -shared bpipe-fd.o -o bpipe-fd.so clean: rm -f main *.so *.o 1 2 3