ECHO_CMD = @
+BUILDDIR := @BUILDDIR@
TOPDIR := @TOPDIR@
DEPKGS := $(TOPDIR)/depkgs-mingw32
MINGW_BIN := @BINDIR@
MINGW_INCLUDE := @INCDIR@
+MINGW_DLLDIR := @DLLDIR@
CC = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
CXX = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
DLLTOOL := $(MINGW_BIN)/../mingw32/bin/dlltool
OBJCPY := $(MINGW_BIN)/mingw32-objcopy
NSIS_DIR := $(DEPKGS)/nsis
+STAB2CV := $(DEPKGS)/tools/bin/stab2cv
-CFLAGS := -Wall -mno-cygwin -m32 -mwin32 -mthreads -O3 -fno-strict-aliasing
-LDFLAGS := -Wall -mno-cygwin -Wl,--disable-auto-import
+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_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
+ $(DEPKGS)/lib/libpthreadGCE.a
LIBS_ZLIB := \
- $(DEPKGS)/lib/libz.a
+ $(DEPKGS)/lib/libz.a
LIBS_MYSQL := \
- $(DEPKGS)/lib/libmysql.a
+ $(DEPKGS)/lib/libmysql.a
LIBS_POSTGRESQL := \
- $(DEPKGS)/lib/libpq.a
+ $(DEPKGS)/lib/libpq.a
+
+LIBS_SQLITE := \
+ $(DEPKGS)/lib/libsqlite3.a
LIBS_SSL := \
- $(DEPKGS)/lib/libssl.dll.a
+ $(DEPKGS)/lib/libssl.dll.a
LIBS_CRYPTO := \
- $(DEPKGS)/lib/libcrypto.dll.a
+ $(DEPKGS)/lib/libcrypto.dll.a
LIBS_WX := \
- $(DEPKGS)/lib/wx_dll/libwxmsw26_core.a \
- $(DEPKGS)/lib/wx_dll/libwxbase26.a
+ $(DEPKGS)/lib/wx_dll/libwxmsw28_core.a \
+ $(DEPKGS)/lib/wx_dll/libwxbase28.a
LIBS_CATS := \
- $(LIBDIR)/libcats.a
+ $(LIBDIR)/libcats.a
LIBS_BACULA := \
- $(LIBDIR)/libbacula.a
+ $(LIBDIR)/libbacula.a
HAVES := \
- -DHAVE_WIN32 \
- -DHAVE_MINGW \
- -DHAVE_ZLIB_H \
- -DHAVE_LIBZ \
- -DHAVE_CRYPTO \
- -DHAVE_OPENSSL \
- -DHAVE_TLS
+ -DHAVE_WIN32 \
+ -DHAVE_MINGW \
+ -DHAVE_ZLIB_H \
+ -DHAVE_LIBZ \
+ -DHAVE_CRYPTO \
+ -DHAVE_OPENSSL \
+ -DHAVE_TLS