]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/plugins/dir/Makefile.in
Backport from BEE
[bacula/bacula] / bacula / src / plugins / dir / Makefile.in
index 6c4582108a528e70a4a0a5a26966ec378a764ebd..f49565c2c105e7a7270e97b1f588eeb72512e72e 100644 (file)
@@ -1,8 +1,6 @@
 #
 # Simple Makefile for building test FD plugins for Bacula
 #
-# Version $Id: Makefile.in 7841 2008-10-19 10:34:03Z kerns $
-#
 @MCOMMON@
 
 
@@ -14,37 +12,20 @@ LIBDIR=../../lib
 
 .SUFFIXES:    .c .o .lo
 
-.c.o:
-       $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${DIRDIR} -DTEST_PROGRAM -c $<
-
 .c.lo:
        $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -I${SRCDIR} -I${DIRDIR} -DTEST_PROGRAM -c $<
 
-all: example-plugin-dir$(DEFAULT_SHARED_OBJECT_TYPE)
-
-test: main example-plugin-dir.so
-
-dir_plugins.o: ${DIRDIR}/dir_plugins.h ${DIRDIR}/dir_plugins.c
-       $(CXX) -I${SRCDIR} -I${DIRDIR} -DTEST_PROGRAM -c ${DIRDIR}/dir_plugins.c 
-
-main: dir_plugins.o
-       $(CXX) $(LDFLAGS) -L${LIBDIR} dir_plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl
-
-example-plugin-dir.o: example-plugin-dir.c ${DIRDIR}/dir_plugins.h
-       $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) -fPIC -I../.. -I${DIRDIR} -c example-plugin-dir.c
-
-example-plugin-dir.so: example-plugin-dir.o 
-       $(CXX) $(LDFLAGS) -shared example-plugin-dir.o -o example-plugin-dir.so
+all: example-plugin-dir.la
 
 example-plugin-dir.lo: example-plugin-dir.c ${DIRDIR}/dir_plugins.h
        $(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CFLAGS) -I../.. -I${DIRDIR} -c example-plugin-dir.c
 
-example-plugin-dir.la: Makefile example-plugin-dir$(DEFAULT_OBJECT_TYPE)
+example-plugin-dir.la: Makefile example-plugin-dir.lo
        $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared example-plugin-dir.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version
 
 install: all
        $(MKDIR) $(DESTDIR)$(plugindir)
-       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) example-plugin-dir$(DEFAULT_SHARED_OBJECT_TYPE) $(DESTDIR)$(plugindir)
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) example-plugin-dir.la $(DESTDIR)$(plugindir)
        $(RMF) $(DESTDIR)$(plugindir)/example-plugin-dir.la
 
 libtool-clean:
@@ -56,9 +37,12 @@ clean: @LIBTOOL_CLEAN_TARGET@
        rm -f main *.so *.o 1 2 3
 
 distclean: clean
-       rm -f Makefile
+       rm -f Makefile *.la *.lo
+       rm -rf .libs
+
+libtool-uninstall:
+       $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(plugindir)/example-plugin-dir.la
 
-uninstall:
-       $(RMF) $(DESTDIR)$(plugindir)/example-plugin-dir.so
+uninstall: @LIBTOOL_UNINSTALL_TARGET@
 
 depend: