]> git.sur5r.net Git - bacula/bacula/commitdiff
Parameterize win32 plugin Makefile a bit
authorKern Sibbald <kern@sibbald.com>
Thu, 23 Oct 2008 21:09:09 +0000 (21:09 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 23 Oct 2008 21:09:09 +0000 (21:09 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7885 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/win32/filed/plugins/Makefile

index cdf84c5e8be4b60b2730fe8c1bbc2bb4ac1dd18c..11024003e3ce8755999f2bf41610e3ba7e855d5b 100644 (file)
@@ -6,7 +6,12 @@
 #     Patterned after a Makefile by Robert Nelson, June 2006
 #
 
-include ../../Makefile.inc
+#
+# Change the following depending on where this directory is located
+#  in the Bacula tree. It should point to the src/win32 directory.
+BUILDDIR = ../..
+
+include $(BUILDDIR)/Makefile.inc
 
 INCLUDES = \
        $(INCLUDE_PTHREADS) \
@@ -80,7 +85,7 @@ $(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 $@
 
-include ../../Makefile.rules
+include $(BUILDDIR)/Makefile.rules
 
 $(OBJDIR)/%.o: %.c
        @echo "Compiling $<"