]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/Makefile.inc.in
ebl typo fix
[bacula/bacula] / bacula / src / win32 / Makefile.inc.in
1 #
2 # Makefile for win32 bacula executables
3 # Using MinGW cross-compiler on GNU/Linux
4 #
5 #  Written by Robert Nelson, June 2006
6 #  Absolute paths used in place of relative paths
7 #      Kern Sibbald, October 2008
8 #
9
10 # Global Configuration
11
12 ECHO_CMD = @
13
14 # Main Bacula source dir
15 MAINDIR := @WIN32MAINDIR@
16 #
17 # Build dir -- i.e. normally  src/win32
18 BUILDDIR := @WIN32BUILDDIR@
19 #
20 # Dir above Bacula where we find depkgs
21 TOPDIR := @WIN32TOPDIR@
22 #
23 # where we find depkgs
24 DEPKGS := $(TOPDIR)/depkgs-mingw32
25
26 DOCDIR := $(TOPDIR)/docs
27 BINDIR := $(BUILDDIR)/release
28 LIBDIR := $(BUILDDIR)/release
29 OBJDIR := .
30
31 MINGW_BIN := @WIN32BINDIR@
32 MINGW_INCLUDE := @WIN32INCDIR@
33 MINGW_DLLDIR := @WIN32DLLDIR@
34
35 CC = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
36 CXX = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
37 AR := $(MINGW_BIN)/mingw32-ar
38 RANLIB := $(MINGW_BIN)/mingw32-ranlib
39 WINDRES := $(MINGW_BIN)/mingw32-windres
40 DLLTOOL := $(MINGW_BIN)/../mingw32/bin/dlltool
41 OBJCPY := $(MINGW_BIN)/mingw32-objcopy
42 NSIS_DIR := $(DEPKGS)/nsis
43 STAB2CV := $(DEPKGS)/tools/bin/stab2cv
44
45 CFLAGS := -g -Wall -mno-cygwin -m32 -mwin32 -mthreads -O3 -fno-strict-aliasing
46 LDFLAGS := -g -Wall -mno-cygwin -Wl,--disable-auto-import
47
48 INCLUDE_DDK := -I$(MINGW_INCLUDE)/ddk
49 INCLUDE_BACULA := -I$(MAINDIR)/src -I$(BUILDDIR)/compat
50 INCLUDE_PTHREADS := -I$(DEPKGS)/include/pthreads
51 INCLUDE_ZLIB := -I$(DEPKGS)/include
52 INCLUDE_VSS := -I$(DEPKGS)/vss
53 INCLUDE_ICONS := -I../libwin32
54 INCLUDE_OPENSSL := -I$(DEPKGS)/include
55 INCLUDE_WX := -I$(DEPKGS)/lib/wx_dll/msw -I$(DEPKGS)/include
56 INCLUDE_MYSQL := -I$(DEPKGS)/include/mysql
57
58 LIBS_DB := \
59         $(DEPKGS)/lib/libdb.a
60
61 LIBS_PTHREADS := \
62         $(DEPKGS)/lib/libpthreadGCE.a
63
64 LIBS_ZLIB := \
65         $(DEPKGS)/lib/libz.a
66
67 LIBS_MYSQL := \
68         $(DEPKGS)/lib/libmysql.a
69
70 LIBS_POSTGRESQL := \
71         $(DEPKGS)/lib/libpq.a
72
73 LIBS_SQLITE := \
74         $(DEPKGS)/lib/libsqlite3.a
75
76 LIBS_SSL := \
77         $(DEPKGS)/lib/libssl.dll.a
78
79 LIBS_CRYPTO := \
80         $(DEPKGS)/lib/libcrypto.dll.a
81
82 LIBS_WX := \
83         $(DEPKGS)/lib/wx_dll/libwxmsw28_core.a \
84         $(DEPKGS)/lib/wx_dll/libwxbase28.a
85
86 LIBS_CATS := \
87         $(LIBDIR)/libcats.a
88
89 LIBS_BACULA := \
90         $(LIBDIR)/libbacula.a
91
92 LIBS_NETWORK := -lwsock32
93
94 HAVES := \
95         -DHAVE_WIN32 \
96         -DHAVE_MINGW \
97         -DHAVE_ZLIB_H \
98         -DHAVE_LIBZ \
99         -DHAVE_CRYPTO \
100         -DHAVE_OPENSSL \
101         -DHAVE_TLS