]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/plugins/fd/Makefile.in
Implement .bvfs_versions command to display all file versions for a client
[bacula/bacula] / bacula / src / plugins / fd / Makefile.in
1 #
2 # Simple Makefile for building test FD plugins for Bacula
3 #
4 #
5 @MCOMMON@
6
7
8 # No optimization for now for easy debugging
9
10 FDDIR=../../filed
11 SRCDIR=../..
12 LIBDIR=../../lib
13
14 .SUFFIXES:    .c .lo
15
16 .c.lo:
17         $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c $<
18
19 all: bpipe-fd.la test-plugin-fd.la
20
21 bpipe-fd.lo: bpipe-fd.c ${FDDIR}/fd_plugins.h
22         $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I../.. -I${FDDIR} -c bpipe-fd.c
23
24 bpipe-fd.la: Makefile bpipe-fd$(DEFAULT_OBJECT_TYPE)
25         $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared bpipe-fd.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version 
26
27 test-plugin-fd.lo: test-plugin-fd.c ${FDDIR}/fd_plugins.h
28         $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I../.. -I${FDDIR} -c test-plugin-fd.c
29
30 test-plugin-fd.la: Makefile test-plugin-fd$(DEFAULT_OBJECT_TYPE)
31         $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared test-plugin-fd.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version 
32
33 install: all
34         $(MKDIR) $(DESTDIR)$(plugindir)
35         $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bpipe-fd.la $(DESTDIR)$(plugindir)
36         $(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.la
37
38 install-test-plugin: all
39         $(MKDIR) $(DESTDIR)$(plugindir)
40         $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) test-plugin-fd.la $(DESTDIR)$(plugindir)
41         $(RMF) $(DESTDIR)$(plugindir)/test-plugin-fd.la
42
43 libtool-clean:
44         @find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
45         @$(RMF) *.la
46         @$(RMF) -r .libs _libs
47
48 clean:  libtool-clean
49         @rm -f main *.so *.o 1 2 3
50
51 distclean: clean
52         @rm -f Makefile
53
54 libtool-uninstall:
55         $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.so
56
57 uninstall: @LIBTOOL_UNINSTALL_TARGET@
58
59 depend: