From 4a189217408636685c806b0af2c2aa3123559f2f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 23 Oct 2008 21:09:09 +0000 Subject: [PATCH] Parameterize win32 plugin Makefile a bit git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7885 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/win32/filed/plugins/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bacula/src/win32/filed/plugins/Makefile b/bacula/src/win32/filed/plugins/Makefile index cdf84c5e8b..11024003e3 100644 --- a/bacula/src/win32/filed/plugins/Makefile +++ b/bacula/src/win32/filed/plugins/Makefile @@ -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 $<" -- 2.39.5