]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/dird/Makefile
Tweak fix MySQL quoting again :-(
[bacula/bacula] / bacula / src / win32 / dird / 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_OPENSSL) \
16         $(INCLUDE_ICONS)
17
18 DEFINES = \
19         -DUSING_DLL \
20         -DUSING_CATS \
21         -DWINVER=0x500 \
22         $(HAVES)
23
24 vpath %.c $(MAINDIR)/src/dird $(BUILDDIR)/libwin32
25 vpath %.cpp $(MAINDIR)/src/dird $(BUILDDIR)/libwin32
26
27 ##########################################################################
28
29 DIRD_OBJS = \
30         $(OBJDIR)/admin.o \
31         $(OBJDIR)/authenticate.o \
32         $(OBJDIR)/autoprune.o \
33         $(OBJDIR)/backup.o \
34         $(OBJDIR)/bsr.o \
35         $(OBJDIR)/catreq.o \
36         $(OBJDIR)/dir_plugins.o \
37         $(OBJDIR)/dird.o \
38         $(OBJDIR)/dird_conf.o \
39         $(OBJDIR)/expand.o \
40         $(OBJDIR)/fd_cmds.o \
41         $(OBJDIR)/getmsg.o \
42         $(OBJDIR)/inc_conf.o \
43         $(OBJDIR)/job.o \
44         $(OBJDIR)/jobq.o \
45         $(OBJDIR)/migrate.o \
46         $(OBJDIR)/mountreq.o \
47         $(OBJDIR)/msgchan.o \
48         $(OBJDIR)/newvol.o \
49         $(OBJDIR)/next_vol.o \
50         $(OBJDIR)/pythondir.o \
51         $(OBJDIR)/recycle.o \
52         $(OBJDIR)/restore.o \
53         $(OBJDIR)/run_conf.o \
54         $(OBJDIR)/scheduler.o \
55         $(OBJDIR)/ua_acl.o \
56         $(OBJDIR)/ua_cmds.o \
57         $(OBJDIR)/ua_dotcmds.o \
58         $(OBJDIR)/ua_input.o \
59         $(OBJDIR)/ua_label.o \
60         $(OBJDIR)/ua_output.o \
61         $(OBJDIR)/ua_prune.o \
62         $(OBJDIR)/ua_purge.o \
63         $(OBJDIR)/ua_query.o \
64         $(OBJDIR)/ua_restore.o \
65         $(OBJDIR)/ua_run.o \
66         $(OBJDIR)/ua_select.o \
67         $(OBJDIR)/ua_server.o \
68         $(OBJDIR)/ua_status.o \
69         $(OBJDIR)/ua_tree.o \
70         $(OBJDIR)/ua_update.o \
71         $(OBJDIR)/vbackup.o \
72         $(OBJDIR)/verify.o \
73         $(OBJDIR)/service.o \
74         $(OBJDIR)/main.o \
75         $(OBJDIR)/bacula.res
76
77 ALL_OBJS = $(DIRD_OBJS)
78
79
80 DIRD_LIBS = \
81         $(LIBS_PTHREADS) \
82         $(LIBS_NETWORK) \
83         -lole32 \
84         -loleaut32 \
85         -luuid \
86         -lcomctl32
87
88 ######################################################################
89
90 # Targets
91
92 .PHONY: all clean
93
94 all: $(BINDIR)/bacula-dir.exe
95
96 clean:
97         @echo "Cleaning `pwd`"
98         $(call clean_obj,$(ALL_OBJS))
99         $(call clean_exe,$(BINDIR)/bacula-dir.exe)
100         $(ECHO_CMD)rm -rf $(OBJDIRS)
101
102 #
103 # Rules
104 #
105
106 $(BINDIR)/bacula-dir.exe: $(DIRD_OBJS) $(LIBS_CATS) $(LIBS_BACULA)
107         $(call link_winapp,$(DIRD_LIBS))
108
109 $(OBJDIR)/winres.res: winres.rc
110         $(WINDRES) $(INCLUDE_ICONS) -O coff $< -o $@
111
112 include ../Makefile.rules