]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/plugins/sd/Makefile.in
Tweak Makefile.in
[bacula/bacula] / bacula / src / plugins / sd / Makefile.in
1 #
2 # Simple Makefile for building test FD plugins for Bacula
3 #
4 # Version $Id: Makefile.in 7841 2008-10-19 10:34:03Z kerns $
5 #
6 @MCOMMON@
7
8
9 # No optimization for now for easy debugging
10
11 SDDIR=../../stored
12 SRCDIR=../..
13 LIBDIR=../../lib
14
15 .SUFFIXES:    .c .o .lo
16
17 .c.lo:
18         $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${SDDIR} -DTEST_PROGRAM -c $<
19
20 all: example-plugin-sd.la
21
22 example-plugin-sd.lo: example-plugin-sd.c ${SDDIR}/sd_plugins.h
23         $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CFLAGS) -I../.. -I${SDDIR} -c example-plugin-sd.c
24
25 example-plugin-sd.la: Makefile example-plugin-sd$(DEFAULT_OBJECT_TYPE)
26         $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared example-plugin-sd.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version
27
28 install: all
29         $(MKDIR) $(DESTDIR)$(plugindir)
30         $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) example-plugin-sd$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
31         $(RMF) $(DESTDIR)$(plugindir)/example-plugin-sd.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_TARGET@
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)/example-plugin-sd.so
46
47 uninstall: @LIBTOOL_UNINSTALL_TARGET@
48
49 depend: