From: Kern Sibbald Date: Thu, 23 Oct 2008 21:09:09 +0000 (+0000) Subject: Parameterize win32 plugin Makefile a bit X-Git-Tag: Release-3.0.0~718 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a189217408636685c806b0af2c2aa3123559f2f;p=bacula%2Fbacula Parameterize win32 plugin Makefile a bit git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7885 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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 $<"