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 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)
42 # Quickie debug installation
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)
49 cp -f baculafd/Release/bacula-fd.exe /bacula/bin
50 @echo "Please start Bacula from the Service Menu"
52 installer: winbacula.exe
58 ${MAKENSIS} /V2 winbacula.nsi
61 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status winbacula.nsi.in
63 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= \
64 $(SHELL) ./config.status
67 (cd baculafd; make clean)
68 (cd console; make clean)
69 (cd wx-console; make clean)
72 rm -rf baculafd/Release baculafd/Debug