]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/Makefile.inc.in
ebl update win64 doc and add paches
[bacula/bacula] / bacula / src / win32 / Makefile.inc.in
index a174a4a8d6c0395f3c1ef12abd694f976a92d6f4..b335ca7ecd6b28fa148a13139dd413f732402abd 100644 (file)
@@ -21,7 +21,8 @@ BUILDDIR := @WIN32BUILDDIR@
 TOPDIR := @WIN32TOPDIR@
 #
 # where we find depkgs
-DEPKGS := $(TOPDIR)/depkgs-mingw32
+DEPKGS := $(TOPDIR)/@WIN32DEPKGS@
+DEPKGS32 := $(TOPDIR)/@WIN32DEPKGS32@
 
 DOCDIR := $(TOPDIR)/docs
 BINDIR := $(BUILDDIR)/release
@@ -37,12 +38,22 @@ CXX = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
 AR := $(MINGW_BIN)/mingw32-ar
 RANLIB := $(MINGW_BIN)/mingw32-ranlib
 WINDRES := $(MINGW_BIN)/mingw32-windres
-DLLTOOL := $(MINGW_BIN)/../mingw32/bin/dlltool
+DLLTOOL := $(MINGW_BIN)/mingw32-dlltool
 OBJCPY := $(MINGW_BIN)/mingw32-objcopy
-NSIS_DIR := $(DEPKGS)/nsis
-STAB2CV := $(DEPKGS)/tools/bin/stab2cv
+NSIS_DIR := $(DEPKGS32)/nsis
+STAB2CV := $(DEPKGS32)/tools/bin/stab2cv
+WIN64=@WIN64@
+
+ifeq ($(WIN64),yes)
+        CFLAGS := -g -Wall -mno-cygwin -mthreads -O3 -fno-strict-aliasing -DHAVE_VSS64
+       LIBS_NETWORK := -lws2_32
+       WIN_VERSION := 64
+else
+        CFLAGS := -g -Wall -mno-cygwin -m32 -mwin32 -mthreads -O3 -fno-strict-aliasing
+       LIBS_NETWORK := -lwsock32
+       WIN_VERSION := 32
+endif
 
-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
@@ -89,8 +100,6 @@ LIBS_CATS := \
 LIBS_BACULA := \
         $(LIBDIR)/libbacula.a
 
-LIBS_NETWORK := -lwsock32
-
 HAVES := \
         -DHAVE_WIN32 \
         -DHAVE_MINGW \