]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix Win32 make clean to clean correctly
authorKern Sibbald <kern@sibbald.com>
Sun, 5 Apr 2009 08:34:49 +0000 (08:34 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 5 Apr 2009 08:34:49 +0000 (08:34 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8689 91ce42f0-d328-0410-95d8-f526ca767f89

14 files changed:
bacula/src/version.h
bacula/src/win32/Makefile
bacula/src/win32/Makefile.inc.in
bacula/src/win32/cats/Makefile
bacula/src/win32/console/Makefile
bacula/src/win32/dird/Makefile
bacula/src/win32/filed/Makefile
bacula/src/win32/filed/plugins/Makefile
bacula/src/win32/lib/Makefile
bacula/src/win32/scripts/Makefile
bacula/src/win32/stored/Makefile
bacula/src/win32/tools/Makefile
bacula/src/win32/wx-console/Makefile
bacula/technotes

index 0bf8211ac9b00b3242eba5f05ef495c1ce48460b..d4c9f4fce67de9d7d828ceddde7f0a5723241aae 100644 (file)
@@ -3,9 +3,9 @@
  */
 
 #undef  VERSION
-#define VERSION "2.5.44"
-#define BDATE   "04 April 2009"
-#define LSMDATE "04Apr09"
+#define VERSION "3.0.0"
+#define BDATE   "05 April 2009"
+#define LSMDATE "05Apr09"
 
 #define PROG_COPYRIGHT "Copyright (C) %d-2009 Free Software Foundation Europe e.V.\n"
 #define BYEAR "2009"       /* year for copyright messages in progs */
index 3552224f4baeef0418e1bdebf3274c31721dc21c..171b5fe15c75f11175ac1a5b6bdd468b2daa3bfd 100644 (file)
@@ -33,7 +33,7 @@ endif
 all: Makefile.inc $(DIRS) $(SPECIAL) $(INSTALLER)
 
 clean: $(DIRS) win32_installer newinstaller win64_installer
-       $(ECHO_CMD)-rm -rf release
+       $(ECHO_CMD)-rm -rf release32 release64
 
 newinstaller:
        @if test -f Makefile.inc; then \
index 3cf3d1f2adf5ad98fe0ec83ac0613ad8f4b94f58..e65b83733b88a5f1d14fd5c926e38aa3ff8f7d4d 100644 (file)
@@ -3,8 +3,13 @@
 # Using MinGW cross-compiler on GNU/Linux
 #
 #  Written by Robert Nelson, June 2006
+#
 #  Absolute paths used in place of relative paths
 #      Kern Sibbald, October 2008
+#   Split Win32 and Win64 objects and binaries. However
+#     the clean is a significant kludge -- hard coded.
+#     The object directories are deleted during make clean,
+#     so don't point them to any source directory.
 #
 
 # Global Configuration
@@ -58,6 +63,8 @@ else
    OBJDIR := obj32
 endif
 
+OBJDIRS := obj32 obj64
+
 LDFLAGS := -g -Wall -mno-cygwin -Wl,--disable-auto-import
 
 INCLUDE_DDK := -I$(MINGW_INCLUDE)/ddk
@@ -71,44 +78,44 @@ INCLUDE_WX := -I$(DEPKGS)/lib/wx_dll/msw -I$(DEPKGS)/include
 INCLUDE_MYSQL := -I$(DEPKGS)/include/mysql
 
 LIBS_DB := \
-        $(DEPKGS)/lib/libdb.a
+       $(DEPKGS)/lib/libdb.a
 
 LIBS_PTHREADS := \
-        $(DEPKGS)/lib/libpthreadGCE.a
+       $(DEPKGS)/lib/libpthreadGCE.a
 
 LIBS_ZLIB := \
-        $(DEPKGS)/lib/libz.a
+       $(DEPKGS)/lib/libz.a
 
 LIBS_MYSQL := \
-        $(DEPKGS)/lib/libmysql.a
+       $(DEPKGS)/lib/libmysql.a
 
 LIBS_POSTGRESQL := \
-        $(DEPKGS)/lib/libpq.a
+       $(DEPKGS)/lib/libpq.a
 
 LIBS_SQLITE := \
-        $(DEPKGS)/lib/libsqlite3.a
+       $(DEPKGS)/lib/libsqlite3.a
 
 LIBS_SSL := \
-        $(DEPKGS)/lib/libssl.dll.a
+       $(DEPKGS)/lib/libssl.dll.a
 
 LIBS_CRYPTO := \
-        $(DEPKGS)/lib/libcrypto.dll.a
+       $(DEPKGS)/lib/libcrypto.dll.a
 
 LIBS_WX := \
-        $(DEPKGS)/lib/wx_dll/libwxmsw28_core.a \
-        $(DEPKGS)/lib/wx_dll/libwxbase28.a
+       $(DEPKGS)/lib/wx_dll/libwxmsw28_core.a \
+       $(DEPKGS)/lib/wx_dll/libwxbase28.a
 
 LIBS_CATS := \
-        $(LIBDIR)/libcats.a
+       $(LIBDIR)/libcats.a
 
 LIBS_BACULA := \
-        $(LIBDIR)/libbacula.a
+       $(LIBDIR)/libbacula.a
 
 HAVES := \
-        -DHAVE_WIN32 \
-        -DHAVE_MINGW \
-        -DHAVE_ZLIB_H \
-        -DHAVE_LIBZ \
-        -DHAVE_CRYPTO \
-        -DHAVE_OPENSSL \
-        -DHAVE_TLS
+       -DHAVE_WIN32 \
+       -DHAVE_MINGW \
+       -DHAVE_ZLIB_H \
+       -DHAVE_LIBZ \
+       -DHAVE_CRYPTO \
+       -DHAVE_OPENSSL \
+       -DHAVE_TLS
index a713de8516c54c81af21a1f4f532e27344fb149b..ee5ef67e8760241bc17f6a4341c8a514ee1409d7 100644 (file)
@@ -54,9 +54,11 @@ clean:
        $(call clean_exe,$(BINDIR)/cats_postgresql.dll)
        $(call clean_exe,$(BINDIR)/cats_sqlite3.dll)
        $(ECHO_CMD)rm -f $(OBJDIR)/libcats.exp $(LIBDIR)/libcats.a
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 $(LIBDIR)/libcats.a $(OBJDIR)/libcats.exp: bacula_cats.def
        $(call checkdir,$@)
+       @mkdir -p $(OBJDIRS)
        $(DLLTOOL) --dllname bacula_cats.dll --no-export-all-symbols --input-def bacula_cats.def --output-exp $(OBJDIR)/libcats.exp --output-lib $(LIBDIR)/libcats.a $^
 
 $(BINDIR)/cats_mysql.dll: $(addprefix $(OBJDIR)/cats_mysql/,mysql.o $(SQL_OBJS)) $(OBJDIR)/libcats.exp
index fac55b5329146940a7c28633cfff26990c40293f..4dc0e2e95a97fd72af2d9947f9d1b39d97a6deeb 100644 (file)
@@ -42,6 +42,7 @@ clean:
        @echo "Cleaning `pwd`"
        $(call clean_obj,$(ALL_OBJS))
        $(call clean_exe,$(BINDIR)/bconsole.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules
index b06b130d56ae9550cc2cc455cf4ed7651e75fea3..de32b1da09c8303487cc58906b1f634f978693fb 100644 (file)
@@ -97,6 +97,7 @@ clean:
        @echo "Cleaning `pwd`"
        $(call clean_obj,$(ALL_OBJS))
        $(call clean_exe,$(BINDIR)/bacula-dir.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules
index e0e621db67e28cd8e6b6c1c17370c65a90d3719b..32cc1c05345cd66f322b1c89a2e2862c6d8d1455 100644 (file)
@@ -60,7 +60,7 @@ ALL_OBJS = $(FILED_OBJS)
 FILED_LIBS = \
        $(LIBS_PTHREADS) \
        $(LIBS_ZLIB) \
-        $(LIBS_NETWORK) \
+       $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
        -luuid \
@@ -78,6 +78,7 @@ clean:
        @echo "Cleaning `pwd`"
        $(call clean_obj,$(ALL_OBJS))
        $(call clean_exe,$(BINDIR)/bacula-fd.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules
index 1f48f65f6136a0f8570e74f6eabb58f2b7718658..a3ab49752ce57e59b63cd24868862436e575e656 100644 (file)
@@ -47,7 +47,7 @@ LIBS_DLL = \
        $(LIBS_CRYPTO) \
        $(LIBS_PTHREADS) \
        $(LIBS_ZLIB) \
-        $(LIBS_NETWORK) \
+       $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
        -luuid
@@ -65,6 +65,7 @@ clean:
        $(call clean_obj,$(EXCHANGE_OBJS))
        $(call clean_exe,$(BINDIR)/exchange-fd.dll)
        $(ECHO_CMD)rm -f $(OBJDIR)/exchange-fd.a $(LIBDIR)/libexchange-fd.a
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules for generating from ../lib
index 15da369e93acec2ce72c7fa0b08b84bc8582f06c..7fb9412d8ab6423bb1604dd43f3b0eec5bd4b44f 100644 (file)
@@ -127,6 +127,7 @@ clean:
        $(call clean_obj,$(ALL_OBJS))
        $(call clean_exe,$(BINDIR)/bacula.dll)
        $(ECHO_CMD)rm -f $(OBJDIR)/bacula.a $(LIBDIR)/libbacula.a
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules for generating from ../lib
index 46935bc24a84b821c594dd65e535d34dfb903b0c..a0f844e9ad94ad839e887a217b1a243359d24ea1 100644 (file)
@@ -27,6 +27,7 @@ clean:
        @echo "Cleaning `pwd`"
        $(call clean_obj,$(ALL_OBJS))
        $(call clean_exe,$(BINDIR)/bsleep.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules
index 9acc4d870e094be26b94ce358cbaa379079682c1..443bf4451fa9a23a8b68f2431e822dbb7f521d90 100644 (file)
@@ -95,7 +95,7 @@ ALL_OBJS = \
 
 LIBS_STORED = \
        $(LIBS_PTHREADS) \
-        $(LIBS_NETWORK) \
+       $(LIBS_NETWORK) \
        -lole32 \
        -loleaut32 \
        -luuid \
@@ -119,6 +119,7 @@ clean:
        $(call clean_exe,$(BINDIR)/bls.exe)
        $(call clean_exe,$(BINDIR)/bscan.exe)
        $(call clean_exe,$(BINDIR)/btape.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 realclean: clean
        rm -f tags bacula-sd.conf
index 84fabca2763c4ef124bf78e1f5a2662987d0ddb7..a5757123ac38b2c5bbc126cebdf736aae676b8b8 100644 (file)
@@ -71,6 +71,7 @@ clean:
        $(call clean_exe,$(BINDIR)/testls.exe)
        $(call clean_exe,$(BINDIR)/bregex.exe)
        $(call clean_exe,$(BINDIR)/bwild.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules
index 14c9535456766ae9b1409835f5aa2df750ab3e92..561d019df41c08198c84a713ba1cb4b2e2a93fba 100755 (executable)
@@ -52,7 +52,7 @@ ALL_OBJS = $(CONSOLE_OBJS)
 
 CONSOLE_LIBS = \
        $(LIBS_WX) \
-        $(LIBS_NETWORK) \
+       $(LIBS_NETWORK) \
        -lcomctl32 \
        -lole32 \
        -loleaut32 \
@@ -70,6 +70,7 @@ clean:
        $(call clean_obj,$(ALL_OBJS))
        $(call clean_exe,$(BINDIR)/bwx-console.exe)
        $(call clean_exe,$(BINDIR)/wx-console.exe)
+       $(ECHO_CMD)rm -rf $(OBJDIRS)
 
 #
 # Rules
index 88e62e029ceb3f6d12c003d6d9688d9fb9095461..9a599d95e8346b366096c03d89bd88b69d043dfb 100644 (file)
@@ -2,8 +2,10 @@
           
 General:
 
-04Apr09
+05Apr09
+kes  Fix Win32 make clean to clean correctly 
 kes  Cleanup Win installer dialog messages a bit ...
+04Apr09
 kes  Separate object/binaries in Win32 and Win64 builds. More to be done.
 kes  Add bconsole to Win64 installer.
 03Apr09