]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/Makefile
Add bat=no make option on Win32
[bacula/bacula] / bacula / src / win32 / Makefile
index 52b4c91efaf32f93a17fcb67ad737ce15de36b7f..e3ce8d880d2526b7949d946b4dd9d9a414a5ab2a 100644 (file)
@@ -1,10 +1,20 @@
+#
+#  Makefile for Win32/Win64 Bacula File daemon
+#
+#  If called make win64=yes the Win64 version will be built
+#     otherwise the Win32 version will be built.
+#
+#  If called with bat=no, bat will not be built, otherwise it will be
+#     built.
+#
+
 ECHO_CMD=@
 
 WIN32_DIRS=lib filed filed/plugins console scripts
 
 WIN64_DIRS=lib filed filed/plugins console scripts
 
-ifeq ($(WIN64),yes)
+ifeq ($(win64),yes)
         DIRS=$(WIN64_DIRS)
         INSTALLER=win64_installer
         SPECIAL=bsmtp
@@ -14,6 +24,10 @@ else
         SPECIAL=bat bsmtp
 endif
 
+ifeq ($(bat),no)
+        SPECIAL=bsmtp
+endif       
+
 .PHONY: $(DIRS) clean all Makefile.inc win32_installer full_win32_installer \
         win64_installer bsmtp
 
@@ -97,7 +111,8 @@ Makefile.inc:
        BUILDDIR=`(pwd)`; \
        MAINDIR=`(cd ../..;pwd)`; \
        sed \
-               -e "s^@WIN64@^$${WIN64}^" \
+               -e "s^@WIN64@^$${win64}^" \
+               -e "s^@BAT@^$${bat}^" \
                -e "s^@WIN32DEPKGS@^$${DEPKGSDIR}^" \
                -e "s^@WIN32DEPKGS32@^$${DEPKGSDIR32}^" \
                -e "s^@WIN32BUILDDIR@^$${BUILDDIR}^" \