]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/Makefile
kes Reapply my bat.conf install script in qt-console. I think I
[bacula/bacula] / bacula / src / win32 / Makefile
1 ECHO_CMD=@
2
3 DIRS=   dll \
4         cats \
5         filed \
6         dird \
7         stored \
8         console \
9         wx-console \
10         tools \
11         scripts \
12         installer
13
14 .PHONY: $(DIRS) clean all
15
16 all: Makefile.inc $(DIRS)
17
18 clean: $(DIRS)
19         $(ECHO_CMD)-rm -rf release
20
21 $(DIRS):
22         @if test -f Makefile.inc; then \
23            if $(MAKE) -C $@ $(MAKECMDGOALS); then \
24                 echo -e "\n===== Make of $@ succeeded =====\n\n" ; \
25            else  \
26                 echo -e "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
27            fi ; \
28         fi
29
30 Makefile.inc: Makefile.inc.in
31         @echo Creating $@
32         $(ECHO_CMD)TOPDIR=`(cd ../../..;pwd)`; \
33         if test -e ../../../cross-tools/mingw32/bin/mingw32-gcc; then \
34                 BINDIR=$${TOPDIR}/cross-tools/mingw32/bin; \
35                 INCDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/include; \
36                 DLLDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/bin; \
37         elif test -e /mingw/bin/mingw32-gcc; then \
38                 BINDIR=/mingw/bin; \
39                 INCDIR=/mingw/include; \
40                 DLLDIR=/mingw/bin; \
41         else \
42                 echo -e "\nThe GCC cross compiler isn't installed."; \
43                 echo -e "You must run build-win32-cross-tools and build-dependencies first.\n"; \
44                 exit 1; \
45         fi ; \
46         sed -e "s^@TOPDIR@^$${TOPDIR}^" \
47                 -e "s^@BINDIR@^$${BINDIR}^" \
48                 -e "s^@INCDIR@^$${INCDIR}^" \
49                 -e "s^@DLLDIR@^$${DLLDIR}^" < Makefile.inc.in > $@