2 # Makefile to build the native Win32 File daemon
3 # VC++ and tools must be on your path
5 # Kern Sibbald, February 2004
16 # this dir relative to top dir
23 MAKENSIS="c:/Program Files/NSIS/makensis"
29 all: bacula bconsole wx-console pebuilder installer
33 (cd baculafd; env MAKEFLAGS= ${NMAKE} CFG="baculafd - Win32 Release" /f baculafd.mak)
36 (cd console; env MAKEFLAGS= ${NMAKE} CFG="console - Win32 Release" /f console.mak)
39 (cd wx-console; env MAKEFLAGS= ${NMAKE} CFG="wx-console - Win32 Release" /f wx-console.mak)
41 pebuilder: bacula bconsole wx-console
45 # Quickie debug installation
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)
52 cp -f baculafd/Release/bacula-fd.exe /bacula/bin
53 @echo "Please start Bacula from the Service Menu"
55 installer: winbacula.exe
61 ${MAKENSIS} /V2 winbacula.nsi
64 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status winbacula.nsi.in
66 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= \
67 $(SHELL) ./config.status
70 (cd baculafd; make clean)
71 (cd console; make clean)
72 (cd wx-console; make clean)
73 (cd pebuilder; make clean)
76 rm -rf baculafd/Release baculafd/Debug
78 rm -f winbacula-bartpe-*.zip