]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/filed/Makefile
Update Win32 build to include new files, new symbols, and
[bacula/bacula] / bacula / src / win32 / filed / Makefile
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 include ../Makefile.inc
9
10 INCLUDES = \
11         -I. \
12         $(INCLUDE_PTHREADS) \
13         $(INCLUDE_BACULA) \
14         $(INCLUDE_ZLIB) \
15         $(INCLUDE_VSS) \
16         $(INCLUDE_OPENSSL) \
17         $(INCLUDE_ICONS)
18
19 DEFINES = \
20         -DUSING_DLL \
21         -DWIN32_VSS \
22         -DWINVER=0x500 \
23         $(HAVES)
24
25 vpath %.c ../../filed ../libwin32
26 vpath %.cpp ../../filed ../libwin32
27
28 ##########################################################################
29
30 FILED_OBJS = \
31         $(OBJDIR)/authenticate.o \
32         $(OBJDIR)/backup.o \
33         $(OBJDIR)/estimate.o \
34         $(OBJDIR)/filed.o \
35         $(OBJDIR)/filed_conf.o \
36         $(OBJDIR)/heartbeat.o \
37         $(OBJDIR)/job.o \
38         $(OBJDIR)/restore.o \
39         $(OBJDIR)/status.o \
40         $(OBJDIR)/verify.o \
41         $(OBJDIR)/verify_vol.o \
42         $(OBJDIR)/vss.o \
43         $(OBJDIR)/vss_XP.o \
44         $(OBJDIR)/vss_W2K3.o \
45         $(OBJDIR)/winabout.o \
46         $(OBJDIR)/winservice.o \
47         $(OBJDIR)/winstat.o \
48         $(OBJDIR)/wintray.o \
49         $(OBJDIR)/winmain.o \
50         $(OBJDIR)/winres.res
51
52 ALL_OBJS = $(FILED_OBJS)
53
54 FILED_LIBS = \
55         $(LIBS_PTHREADS) \
56         $(LIBS_ZLIB) \
57         -lole32 \
58         -loleaut32 \
59         -lwsock32 \
60         -luuid \
61         -lcomctl32
62
63 ######################################################################
64
65 # Targets
66
67 .PHONY: all clean
68
69 all: $(BINDIR)/bacula-fd.exe
70
71 clean:
72         @echo "Cleaning `pwd`"
73         $(call clean_obj,$(ALL_OBJS))
74         $(call clean_exe,$(BINDIR)/bacula-fd.exe)
75
76 #
77 # Rules
78 #
79
80 $(BINDIR)/bacula-fd.exe: $(FILED_OBJS) $(LIBS_BACULA)
81         $(call link_winapp,$(FILED_LIBS))
82
83 $(OBJDIR)/winres.res: ../libwin32/winres.rc
84         @echo "Compiling $@"
85         $(call checkdir,$@)
86         $(ECHO_CMD)$(WINDRES) $(INCLUDE_ICONS) -O coff $< -o $@
87
88 include ../Makefile.rules