]> git.sur5r.net Git - bacula/bacula/commitdiff
Add skeleton of system state plugin
authorKern Sibbald <kern@sibbald.com>
Tue, 23 Feb 2010 13:48:33 +0000 (14:48 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:34 +0000 (16:49 +0200)
bacula/src/win32/filed/plugins/Makefile

index a3ab49752ce57e59b63cd24868862436e575e656..1abe2a06b459ef459d0a56bdf7ebcedc0e4e396d 100644 (file)
@@ -42,6 +42,9 @@ EXCHANGE_OBJS = \
        $(OBJDIR)/dbi_node.o \
        $(OBJDIR)/file_node.o
 
+SYSTEMSTATE_OBJS = \
+       $(OBJDIR)/systemstate-fd.o
+
 LIBS_DLL = \
        $(LIBS_SSL) \
        $(LIBS_CRYPTO) \
@@ -58,13 +61,16 @@ LIBS_DLL = \
 
 .PHONY: all clean
 
-all: $(BINDIR)/exchange-fd.dll
+all: $(BINDIR)/exchange-fd.dll $(BINDIR)/systemstate-fd.dll
 
 clean:
        @echo "Cleaning `pwd`"
        $(call clean_obj,$(EXCHANGE_OBJS))
        $(call clean_exe,$(BINDIR)/exchange-fd.dll)
        $(ECHO_CMD)rm -f $(OBJDIR)/exchange-fd.a $(LIBDIR)/libexchange-fd.a
+       $(call clean_obj,$(SYSTEMSTATE_OBJS))
+       $(call clean_exe,$(BINDIR)/systemstate-fd.dll)
+       $(ECHO_CMD)rm -f $(OBJDIR)/systemstate-fd.a $(LIBDIR)/libsystemstate-fd.a
        $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
@@ -86,6 +92,14 @@ $(BINDIR)/exchange-fd.dll: $(EXCHANGE_OBJS) exchange-fd.def
        $(call checkdir,$@)
        $(ECHO_CMD)$(CXX) $(LDFLAGS) -mdll -mwindows -Wl,--out-implib,$(OBJDIR)/exchange-fd.a $^ $(LIBS_DLL) -o $@
 
+$(BINDIR)/systemstate-fd.dll: DLL_DEFINE=BUILDING_DLL
+
+$(BINDIR)/systemstate-fd.dll: $(SYSTEMSTATE_OBJS) systemstate-fd.def
+       @echo "Linking $@"
+       $(call checkdir,$@)
+       $(ECHO_CMD)$(CXX) $(LDFLAGS) -mdll -mwindows -Wl,--out-implib,$(OBJDIR)/systemstate-fd.a $^ $(LIBS_DLL) -o $@
+
+
 include $(BUILDDIR)/Makefile.rules
 
 $(OBJDIR)/%.o: %.c