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