]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/Makefile.inc.in
Detect the case where logfiles but no databases are being restored.
[bacula/bacula] / bacula / src / win32 / Makefile.inc.in
index c5b651b0c0b2694558ba7d40c5e059630bdc87be..a174a4a8d6c0395f3c1ef12abd694f976a92d6f4 100644 (file)
@@ -3,24 +3,34 @@
 # Using MinGW cross-compiler on GNU/Linux
 #
 #  Written by Robert Nelson, June 2006
+#  Absolute paths used in place of relative paths
+#      Kern Sibbald, October 2008
 #
 
 # Global Configuration
 
 ECHO_CMD = @
 
-BUILDDIR := @BUILDDIR@
-TOPDIR := @TOPDIR@
+# Main Bacula source dir
+MAINDIR := @WIN32MAINDIR@
+#
+# Build dir -- i.e. normally  src/win32
+BUILDDIR := @WIN32BUILDDIR@
+#
+# Dir above Bacula where we find depkgs
+TOPDIR := @WIN32TOPDIR@
+#
+# where we find depkgs
 DEPKGS := $(TOPDIR)/depkgs-mingw32
 
 DOCDIR := $(TOPDIR)/docs
-BINDIR := ../release
-LIBDIR := ../release
+BINDIR := $(BUILDDIR)/release
+LIBDIR := $(BUILDDIR)/release
 OBJDIR := .
 
-MINGW_BIN := @BINDIR@
-MINGW_INCLUDE := @INCDIR@
-MINGW_DLLDIR := @DLLDIR@
+MINGW_BIN := @WIN32BINDIR@
+MINGW_INCLUDE := @WIN32INCDIR@
+MINGW_DLLDIR := @WIN32DLLDIR@
 
 CC = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
 CXX = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
@@ -36,7 +46,7 @@ CFLAGS := -g -Wall -mno-cygwin -m32 -mwin32 -mthreads -O3 -fno-strict-aliasing
 LDFLAGS := -g -Wall -mno-cygwin -Wl,--disable-auto-import
 
 INCLUDE_DDK := -I$(MINGW_INCLUDE)/ddk
-INCLUDE_BACULA := -I../.. -I../compat
+INCLUDE_BACULA := -I$(MAINDIR)/src -I$(BUILDDIR)/compat
 INCLUDE_PTHREADS := -I$(DEPKGS)/include/pthreads
 INCLUDE_ZLIB := -I$(DEPKGS)/include
 INCLUDE_VSS := -I$(DEPKGS)/vss
@@ -45,6 +55,9 @@ INCLUDE_OPENSSL := -I$(DEPKGS)/include
 INCLUDE_WX := -I$(DEPKGS)/lib/wx_dll/msw -I$(DEPKGS)/include
 INCLUDE_MYSQL := -I$(DEPKGS)/include/mysql
 
+LIBS_DB := \
+        $(DEPKGS)/lib/libdb.a
+
 LIBS_PTHREADS := \
         $(DEPKGS)/lib/libpthreadGCE.a
 
@@ -67,8 +80,8 @@ LIBS_CRYPTO := \
         $(DEPKGS)/lib/libcrypto.dll.a
 
 LIBS_WX := \
-        $(DEPKGS)/lib/wx_dll/libwxmsw27_core.a \
-        $(DEPKGS)/lib/wx_dll/libwxbase27.a
+        $(DEPKGS)/lib/wx_dll/libwxmsw28_core.a \
+        $(DEPKGS)/lib/wx_dll/libwxbase28.a
 
 LIBS_CATS := \
         $(LIBDIR)/libcats.a
@@ -76,6 +89,8 @@ LIBS_CATS := \
 LIBS_BACULA := \
         $(LIBDIR)/libbacula.a
 
+LIBS_NETWORK := -lwsock32
+
 HAVES := \
         -DHAVE_WIN32 \
         -DHAVE_MINGW \