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