2 # Simple Makefile for building test Director plugins for Bacula
5 # No optimization for now for easy debugging
10 $(CC) -I../.. -DTEST_PROGRAM -c $<
12 all: dir-plugins example-plugin-dir.so
14 dir-plugins: dir-plugins.o dir-plugins.h
15 $(CC) -L../../lib dir-plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl
17 example-plugin-dir.o: example-plugin-dir.c dir-plugins.h
18 $(CC) -fPIC -I../.. -c example-plugin-dir.c
20 example-plugin-dir.so: example-plugin-dir.o
21 $(CC) -shared example-plugin-dir.o -o example-plugin-dir.so
25 rm -f main *.so *.o 1 2 3