2 # Makefile to build the native Win32 File daemon
3 # VC++ and tools must be on your path
5 # Kern Sibbald, February 2004
9 MAKENSIS="c:/Program Files/NSIS/makensis"
15 all: zlib pthreads bacula installer
18 (cd zlib; env MAKEFLAGS= ${NMAKE} /f win32/Makefile.msc)
21 (cd pthreads; env MAKEFLAGS= ${NMAKE} VCE)
24 (cd baculafd; env MAKEFLAGS= ${NMAKE} CFG="baculafd - Win32 Release" /f baculafd.mak)
27 # Quickie debug installation
30 cp -f pthreads/pthreadVCE.dll baculafd/Release
31 cp -f bacula-fd.conf baculafd/Release
32 (cd baculafd/Release; ./bacula-fd.exe /kill)
34 cp -f baculafd/Release/bacula-fd.exe /bacula/bin
35 @echo "Please start Bacula from the Service Menu"
37 installer: winbacula.exe
43 ${MAKENSIS} winbacula.nsi
46 (cd zlib; env MAKEFLAGS= ${NMAKE} /f win32/Makefile.msc clean)
47 (cd pthreads; env MAKEFLAGS= ${NMAKE} clean)
48 (cd baculafd; make clean)
51 rm -rf baculafd/Release baculafd/Debug
52 rm -f pthreads/*.lib pthreads/*.dll pthreads/*.exe pthreads/*.exp