]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/Makefile.inc.in
Replace explicit checks for "/" with calls to IsPathSeparator, strchr with first_path...
[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 #
7
8 # Global Configuration
9
10 ECHO_CMD = @
11
12 TOPDIR := @TOPDIR@
13 DEPKGS := $(TOPDIR)/depkgs-mingw32
14
15 DOCDIR := $(TOPDIR)/docs
16 BINDIR := ../release
17 LIBDIR := ../release
18 OBJDIR := .
19
20 MINGW_BIN := @BINDIR@
21 MINGW_INCLUDE := @INCDIR@
22
23 CC = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
24 CXX = $(MINGW_BIN)/mingw32-g++ $(DEFINES) $(INCLUDES)
25 AR := $(MINGW_BIN)/mingw32-ar
26 RANLIB := $(MINGW_BIN)/mingw32-ranlib
27 WINDRES := $(MINGW_BIN)/mingw32-windres
28 DLLTOOL := $(MINGW_BIN)/../mingw32/bin/dlltool
29 OBJCPY := $(MINGW_BIN)/mingw32-objcopy
30 NSIS_DIR := $(DEPKGS)/nsis
31 STAB2CV := $(DEPKGS)/tools/bin/stab2cv
32
33 CFLAGS := -Wall -mno-cygwin -m32 -mwin32 -mthreads -O3 -fno-strict-aliasing
34 LDFLAGS := -Wall -mno-cygwin -Wl,--disable-auto-import
35
36 INCLUDE_DDK := -I$(MINGW_INCLUDE)/ddk
37 INCLUDE_BACULA := -I../.. -I../compat
38 INCLUDE_PTHREADS := -I$(DEPKGS)/include/pthreads
39 INCLUDE_ZLIB := -I$(DEPKGS)/include
40 INCLUDE_VSS := -I$(DEPKGS)/vss
41 INCLUDE_ICONS := -I../libwin32
42 INCLUDE_OPENSSL := -I$(DEPKGS)/include
43 INCLUDE_WX := -I$(DEPKGS)/lib/wx_dll/msw -I$(DEPKGS)/include
44 INCLUDE_MYSQL := -I$(DEPKGS)/include/mysql
45
46 LIBS_PTHREADS := \
47         $(DEPKGS)/lib/libpthreadGCE.a
48
49 LIBS_ZLIB := \
50         $(DEPKGS)/lib/libz.a
51
52 LIBS_MYSQL := \
53         $(DEPKGS)/lib/libmysql.a
54
55 LIBS_POSTGRESQL := \
56         $(DEPKGS)/lib/libpq.a
57
58 LIBS_SSL := \
59         $(DEPKGS)/lib/libssl.dll.a
60
61 LIBS_CRYPTO := \
62         $(DEPKGS)/lib/libcrypto.dll.a
63
64 LIBS_WX := \
65         $(DEPKGS)/lib/wx_dll/libwxmsw26_core.a \
66         $(DEPKGS)/lib/wx_dll/libwxbase26.a
67
68 LIBS_CATS := \
69         $(LIBDIR)/libcats.a
70
71 LIBS_BACULA := \
72         $(LIBDIR)/libbacula.a
73
74 HAVES := \
75         -DHAVE_WIN32 \
76         -DHAVE_MINGW \
77         -DHAVE_ZLIB_H \
78         -DHAVE_LIBZ \
79         -DHAVE_CRYPTO \
80         -DHAVE_OPENSSL \
81         -DHAVE_TLS