]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/dird/Makefile
Update mingw32 build instructions
[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         $(INCLUDE_PTHREADS) \
12         $(INCLUDE_BACULA) \
13         $(INCLUDE_ZLIB) \
14         $(INCLUDE_OPENSSL) \
15         $(INCLUDE_ICONS)
16
17 DEFINES = \
18         -DUSING_DLL \
19         $(HAVES)
20
21 VPATH = ../../dird
22
23 ##########################################################################
24
25 DIRD_OBJS = \
26         $(OBJDIR)/admin.o \
27         $(OBJDIR)/authenticate.o \
28         $(OBJDIR)/autoprune.o \
29         $(OBJDIR)/backup.o \
30         $(OBJDIR)/bsr.o \
31         $(OBJDIR)/catreq.o \
32         $(OBJDIR)/dird.o \
33         $(OBJDIR)/dird_conf.o \
34         $(OBJDIR)/expand.o \
35         $(OBJDIR)/fd_cmds.o \
36         $(OBJDIR)/getmsg.o \
37         $(OBJDIR)/inc_conf.o \
38         $(OBJDIR)/job.o \
39         $(OBJDIR)/jobq.o \
40         $(OBJDIR)/migrate.o \
41         $(OBJDIR)/mountreq.o \
42         $(OBJDIR)/msgchan.o \
43         $(OBJDIR)/newvol.o \
44         $(OBJDIR)/next_vol.o \
45         $(OBJDIR)/pythondir.o \
46         $(OBJDIR)/recycle.o \
47         $(OBJDIR)/restore.o \
48         $(OBJDIR)/run_conf.o \
49         $(OBJDIR)/scheduler.o \
50         $(OBJDIR)/sql_cmds.o \
51         $(OBJDIR)/ua_acl.o \
52         $(OBJDIR)/ua_cmds.o \
53         $(OBJDIR)/ua_dotcmds.o \
54         $(OBJDIR)/ua_input.o \
55         $(OBJDIR)/ua_label.o \
56         $(OBJDIR)/ua_output.o \
57         $(OBJDIR)/ua_prune.o \
58         $(OBJDIR)/ua_purge.o \
59         $(OBJDIR)/ua_query.o \
60         $(OBJDIR)/ua_restore.o \
61         $(OBJDIR)/ua_run.o \
62         $(OBJDIR)/ua_select.o \
63         $(OBJDIR)/ua_server.o \
64         $(OBJDIR)/ua_status.o \
65         $(OBJDIR)/ua_tree.o \
66         $(OBJDIR)/ua_update.o \
67         $(OBJDIR)/verify.o \
68         $(OBJDIR)/winservice.o \
69         $(OBJDIR)/winmain.o \
70         $(OBJDIR)/winres.res
71
72 ALL_OBJS = $(DIRD_OBJS)
73
74
75 DIRD_LIBS = \
76         $(LIBS_PTHREADS) \
77         -lwsock32
78
79 ######################################################################
80
81 # Targets
82
83 .PHONY: all clean
84
85 all: $(BINDIR)/bacula-dir.exe
86
87 clean:
88         @echo "Cleaning `pwd`"
89         $(call clean_obj,$(ALL_OBJS))
90         $(call clean_exe,$(BINDIR)/bacula-dir.exe)
91
92 #
93 # Rules
94 #
95
96 $(BINDIR)/bacula-dir.exe: $(DIRD_OBJS) $(LIBS_BACULA)
97         $(call link_winapp,$(DIRD_LIBS))
98
99 $(OBJDIR)/winres.res: ../libwin32/winres.rc
100         $(WINDRES) $(INCLUDE_ICONS) -O coff $< -o $@
101
102 include ../Makefile.rules