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