]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/Makefile.in
Add BartPE Windows plugin
[bacula/bacula] / bacula / src / win32 / Makefile.in
1 #
2 # Makefile to build the native Win32 File daemon
3 # VC++ and tools must be on your path
4 #
5 #     Kern Sibbald, February 2004
6 #
7
8 srcdir =        .
9 VPATH =         .
10 .PATH:          .
11
12 # one up
13 basedir = ..
14 # top dir
15 topdir = ../..
16 # this dir relative to top dir
17 thisdir = src/win32
18
19 DEBUG=@DEBUG@
20
21
22 NMAKE=nmake
23 MAKENSIS="c:/Program Files/NSIS/makensis"
24
25 first_rule: all
26
27 dummy:
28
29 all:  bacula bconsole wx-console pebuilder installer
30
31
32 bacula: dummy
33         (cd baculafd; env MAKEFLAGS= ${NMAKE} CFG="baculafd - Win32 Release" /f baculafd.mak)
34
35 bconsole: dummy
36         (cd console; env MAKEFLAGS= ${NMAKE} CFG="console - Win32 Release" /f console.mak)
37         
38 wx-console: dummy
39         (cd wx-console; env MAKEFLAGS= ${NMAKE} CFG="wx-console - Win32 Release" /f wx-console.mak)
40
41 pebuilder: bacula bconsole wx-console
42         (cd pebuilder; make)
43
44 #
45 # Quickie debug installation
46 #
47 install: bacula
48         cp -f ../../../depkgs-win32/pthreads/pthreadVCE.dll baculafd/Release
49         cp -f bacula-fd.conf baculafd/Release
50         (cd baculafd/Release; ./bacula-fd.exe /kill)
51         sleep 2
52         cp -f baculafd/Release/bacula-fd.exe /bacula/bin 
53         @echo "Please start Bacula from the Service Menu"
54
55 installer: winbacula.exe
56
57 #
58 # Build installer
59 #
60 winbacula.exe: bacula
61         ${MAKENSIS} /V2 winbacula.nsi
62
63
64 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status winbacula.nsi.in
65         cd $(topdir) \
66           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= \
67           $(SHELL) ./config.status
68
69 clean:
70         (cd baculafd; make clean)
71         (cd console; make clean)
72         (cd wx-console; make clean)
73         (cd pebuilder; make clean)
74
75 distclean: clean
76         rm -rf baculafd/Release baculafd/Debug
77         rm -f winbacula-*.exe
78         rm -f winbacula-bartpe-*.zip