]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/plugins/dir/Makefile
Alpha integration of Dir plugin
[bacula/bacula] / bacula / src / plugins / dir / Makefile
1 #
2 # Simple Makefile for building test Director plugins for Bacula
3 #
4
5 # No optimization for now for easy debugging
6 CC = g++ -g -O0 -Wall
7
8 .SUFFIXES:    .c .o
9 .c.o:
10         $(CC) -I../.. -DTEST_PROGRAM -c $<
11
12 all: dir-plugins example-plugin-dir.so 
13
14 dir-plugins: dir-plugins.o dir-plugins.h 
15         $(CC) -L../../lib dir-plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl
16
17 example-plugin-dir.o: example-plugin-dir.c dir-plugins.h
18         $(CC) -fPIC -I../.. -c example-plugin-dir.c
19
20 example-plugin-dir.so: example-plugin-dir.o 
21         $(CC) -shared example-plugin-dir.o -o example-plugin-dir.so
22
23
24 clean:
25         rm -f main *.so *.o 1 2 3