2 # Simple Makefile for building test FD plugins for Bacula
4 # Version $Id: Makefile.in 7638 2008-09-25 14:04:17Z kerns $
7 # This file is pulled in by all the Unix Bacula Makefiles
8 # so it has all the "common" definitions
11 DATE="25 September 2008"
14 VERNAME=bacula-$(VERSION)#
16 MAINTEMAIL=<kern@sibbald.com>#
22 #-------------------------------------------------------------------------
26 # Installation target directories & other installation stuff
31 datarootdir = ${prefix}/share
32 sbindir = /home/kern/bacula/bin
33 sysconfdir = /home/kern/bacula/bin
34 scriptdir = /home/kern/bacula/bin
35 mandir = /home/kern/bacula/bin
40 # Tools & program stuff
55 MKDIR = /home/kern/bacula/k/autoconf/mkinstalldirs
56 INSTALL = /usr/bin/install -c
57 # add the -s to the following in PRODUCTION mode
58 INSTALL_PROGRAM = /usr/bin/install -c -m 0754
59 INSTALL_DATA = /usr/bin/install -c -m 644
60 INSTALL_SCRIPT = /usr/bin/install -c -m 0754
61 INSTALL_CONFIG = /usr/bin/install -c -m 640
64 CFLAGS = -g -O2 -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti
66 CPPFLAGS = -fno-strict-aliasing -fno-exceptions -fno-rtti
69 #DEFS = -DHAVE_CONFIG_H
74 DB_LIBS = -L/home/kern/bacula/depkgs/sqlite3 -lsqlite3
75 PYTHON_LIBS = -L/usr/lib/python2.5/config -lpython2.5 -lutil -lrt
76 PYTHON_INC = -I/usr/include/python2.5
77 OPENSSL_LIBS = -lssl -lcrypto
82 # Windows (cygwin) flags
89 # extra libraries needed by X on some systems, X library location
90 #XLIB = @XPM_LIBS@ -lX11
92 # End of common section of the Makefile
93 #-------------------------------------------------------------------------
96 # No optimization for now for easy debugging
104 $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c $<
108 test: main example-plugin-fd.so
110 fd_plugins.o: ${FDDIR}/fd_plugins.h ${FDDIR}/fd_plugins.c
111 $(CXX) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c ${FDDIR}/fd_plugins.c
114 $(CXX) $(LDFLAGS) -L${LIBDIR} fd_plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl
116 example-plugin-fd.o: example-plugin-fd.c ${FDDIR}/fd_plugins.h
117 $(CXX) -fPIC -I../.. -I${FDDIR} -c example-plugin-fd.c
119 example-plugin-fd.so: example-plugin-fd.o
120 $(CXX) $(LDFLAGS) -shared example-plugin-fd.o -o example-plugin-fd.so
122 bpipe-fd.o: bpipe-fd.c ${FDDIR}/fd_plugins.h
123 $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -fPIC -I../.. -I${FDDIR} -c bpipe-fd.c
125 bpipe-fd.so: bpipe-fd.o
126 $(CXX) $(LDFLAGS) -shared bpipe-fd.o -o bpipe-fd.so
129 rm -f main *.so *.o 1 2 3