]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/Makefile.inc.cross
Make disk-changer sed command compatible with FreeBSD
[bacula/bacula] / bacula / src / win32 / Makefile.inc.cross
1 #
2 # Makefile for win32 bacula executables
3 # Using MinGW cross-compiler on GNU/Linux
4 #
5 #  Written by Robert Nelson, June 2006
6 #
7
8 # Global Configuration
9
10 ECHO_CMD = @
11
12 TOPDIR = @TOPDIR@
13 DEPKGS = $(TOPDIR)/depkgs-mingw32
14
15 MINGW_BIN = $(TOPDIR)/cross-tools/mingw32/bin
16 MINGW_INCLUDE = $(TOPDIR)/cross-tools/mingw32/mingw32/include
17
18 CC = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
19 CXX = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
20 AR = $(MINGW_BIN)/mingw32-ar
21 RANLIB = $(MINGW_BIN)/mingw32-ranlib
22 WINDRES = $(MINGW_BIN)/mingw32-windres
23 OBJCPY = $(MINGW_BIN)/mingw32-objcopy
24
25 CFLAGS = -Wall -mno-cygwin -m32 -mwin32 -mthreads -O3 -fno-strict-aliasing
26 LDFLAGS = -Wall -mno-cygwin -Wl,--disable-auto-import
27
28 INCLUDE_DDK = -I$(MINGW_INCLUDE)/ddk
29 INCLUDE_BACULA = -I../.. -I../compat
30 INCLUDE_PTHREADS = -I$(DEPKGS)/include/pthreads
31 INCLUDE_ZLIB = -I$(DEPKGS)/include
32 INCLUDE_VSS = -I$(DEPKGS)/vss
33 INCLUDE_ICONS = -I../libwin32
34 INCLUDE_OPENSSL = -I$(DEPKGS)/include
35 INCLUDE_WX = -I$(DEPKGS)/lib/wx_dll/msw -I$(DEPKGS)/include
36 INCLUDE_MYSQL = -I$(DEPKGS)/include/mysql
37
38 LIBS_PTHREADS = \
39         $(DEPKGS)/lib/libpthreadGCE.a
40
41 LIBS_ZLIB = \
42         $(DEPKGS)/lib/libz.a
43
44 LIBS_SQL = \
45         $(DEPKGS)/lib/libmysql.a
46
47 LIBS_SSL = \
48         $(DEPKGS)/lib/libssl.dll.a
49
50 LIBS_CRYPTO = \
51         $(DEPKGS)/lib/libcrypto.dll.a
52
53 LIBS_WX = \
54         $(DEPKGS)/lib/wx_dll/libwxmsw26_core.a \
55         $(DEPKGS)/lib/wx_dll/libwxbase26.a
56
57 LIBS_BACULA = \
58         $(LIBDIR)/libbacula.a
59
60 HAVES = \
61         -DHAVE_WIN32 \
62         -DHAVE_MINGW \
63         -DHAVE_ZLIB_H \
64         -DHAVE_LIBZ \
65         -DHAVE_MYSQL \
66         -DHAVE_CRYPTO \
67         -DHAVE_OPENSSL \
68         -DHAVE_TLS
69
70 BINDIR = ../release
71 LIBDIR = ../release
72 OBJDIR = .