15 .PHONY: $(DIRS) clean all Makefile.inc
17 all: Makefile.inc $(DIRS)
20 $(ECHO_CMD)-rm -rf release
23 @if test -f Makefile.inc; then \
24 if $(MAKE) -C $@ $(MAKECMDGOALS); then \
25 echo "\n===== Make of $@ succeeded =====\n\n" ; \
27 echo "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
33 $(ECHO_CMD)TOPDIR=`(cd ../../..;pwd)`; \
34 if test -e ../../../cross-tools/mingw32/bin/mingw32-gcc; then \
35 BINDIR=$${TOPDIR}/cross-tools/mingw32/bin; \
36 INCDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/include; \
37 DLLDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/bin; \
38 elif test -e /mingw/bin/mingw32-gcc; then \
40 INCDIR=/mingw/include; \
43 echo "\nThe GCC cross compiler isn't installed."; \
44 echo "You must run build-win32-cross-tools and build-dependencies first.\n"; \
48 MAINDIR=`(cd ../..;pwd)`; \
50 -e "s^@WIN32BUILDDIR@^$${BUILDDIR}^" \
51 -e "s^@WIN32MAINDIR@^$${MAINDIR}^" \
52 -e "s^@WIN32TOPDIR@^$${TOPDIR}^" \
53 -e "s^@WIN32BINDIR@^$${BINDIR}^" \
54 -e "s^@WIN32INCDIR@^$${INCDIR}^" \
55 -e "s^@WIN32DLLDIR@^$${DLLDIR}^" < Makefile.inc.in > $@