]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/Makefile.in
ad25c46f982b87514f64be8075af6ba0c6958639
[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 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 #
42 # Quickie debug installation
43 #
44 install: bacula
45         cp -f ../../../depkgs-win32/pthreads/pthreadVCE.dll baculafd/Release
46         cp -f bacula-fd.conf baculafd/Release
47         (cd baculafd/Release; ./bacula-fd.exe /kill)
48         sleep 2
49         cp -f baculafd/Release/bacula-fd.exe /bacula/bin 
50         @echo "Please start Bacula from the Service Menu"
51
52 installer: winbacula.exe
53
54 #
55 # Build installer
56 #
57 winbacula.exe: bacula
58         ${MAKENSIS} /V2 winbacula.nsi
59
60
61 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status winbacula.nsi.in
62         cd $(topdir) \
63           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= \
64           $(SHELL) ./config.status
65
66 clean:
67         (cd baculafd; make clean)
68         (cd console; make clean)
69         (cd wx-console; make clean)
70
71 distclean: clean
72         rm -rf baculafd/Release baculafd/Debug
73         rm -f winbacula-*.exe