]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/Makefile
Update README.mingw32 to include gdb info
[bacula/bacula] / bacula / src / win32 / Makefile
index 03745bcc2b570cf5da608e08301d8ca9e2c8463b..335114c8022aca4772bc6bbe9b480d7737103e0f 100644 (file)
@@ -8,6 +8,7 @@ DIRS=   dll \
        console \
        wx-console \
        tools \
+       scripts \
        installer
 
 .PHONY: $(DIRS) clean all
@@ -20,9 +21,9 @@ clean: $(DIRS)
 $(DIRS):
        @if test -f Makefile.inc; then \
           if $(MAKE) -C $@ $(MAKECMDGOALS); then \
-               echo -e "\n===== Make of $@ succeeded =====\n\n" ; \
+               echo "\n===== Make of $@ succeeded =====\n\n" ; \
           else  \
-               echo -e "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
+               echo "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
           fi ; \
        fi
 
@@ -32,14 +33,20 @@ Makefile.inc: Makefile.inc.in
        if test -e ../../../cross-tools/mingw32/bin/mingw32-gcc; then \
                BINDIR=$${TOPDIR}/cross-tools/mingw32/bin; \
                INCDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/include; \
+               DLLDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/bin; \
        elif test -e /mingw/bin/mingw32-gcc; then \
                BINDIR=/mingw/bin; \
                INCDIR=/mingw/include; \
+               DLLDIR=/mingw/bin; \
        else \
-               echo -e "\nThe GCC cross compiler isn't installed."; \
-               echo -e "You must run build-win32-cross-tools and build-dependencies first.\n"; \
+               echo "\nThe GCC cross compiler isn't installed."; \
+               echo "You must run build-win32-cross-tools and build-dependencies first.\n"; \
                exit 1; \
        fi ; \
-       sed -e "s^@TOPDIR@^$${TOPDIR}^" \
+       $(ECHO_CMD)BUILDDIR=`(pwd)`; \
+       sed \
+               -e "s^@BUILDDIR@^$${BUILDDIR}^" \
+               -e "s^@TOPDIR@^$${TOPDIR}^" \
                -e "s^@BINDIR@^$${BINDIR}^" \
-               -e "s^@INCDIR@^$${INCDIR}^" < Makefile.inc.in > $@
+               -e "s^@INCDIR@^$${INCDIR}^" \
+               -e "s^@DLLDIR@^$${DLLDIR}^" < Makefile.inc.in > $@