10 INSTALLER=win64_installer
25 INSTALLER=win32_installer
30 .PHONY: $(DIRS) clean all Makefile.inc win32_installer newinstaller \
33 all: Makefile.inc $(DIRS) $(SPECIAL) $(INSTALLER)
35 clean: $(DIRS) win32_installer newinstaller win64_installer
36 $(ECHO_CMD)-rm -rf release32 release64
39 @if test -f Makefile.inc; then \
40 if $(MAKE) -C $@ $(MAKECMDGOALS); then \
41 echo "\n===== Make of $@ succeeded =====\n\n" ; \
43 echo "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
48 @if test -f Makefile.inc; then \
49 if $(MAKE) -C $@ $(MAKECMDGOALS); then \
50 echo "\n===== Make of $@ succeeded =====\n\n" ; \
52 echo "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
57 @if test -f Makefile.inc; then \
58 if $(MAKE) -C $@ $(MAKECMDGOALS); then \
59 echo "\n===== Make of $@ succeeded =====\n\n" ; \
61 echo "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
67 @if test -f Makefile.inc; then \
68 if $(MAKE) -C $@ $(MAKECMDGOALS); then \
69 echo "\n===== Make of $@ succeeded =====\n\n" ; \
71 echo "\n!!!!! Make of $@ failed !!!!!\n\n" ; \
76 @if test -f Makefile.inc; then \
77 if $(MAKE) -C tools bsmtp $(MAKECMDGOALS); then \
78 echo "\n===== Make of tools/bsmtp succeeded =====\n\n" ; \
80 echo "\n!!!!! Make of tools/bsmtp failed !!!!!\n\n" ; \
88 $(ECHO_CMD)TOPDIR=`(cd ../../..;pwd)`; \
89 TOPDIR=$${DEPKGS:-$${TOPDIR}}; \
90 if test "$(WIN64)" = yes -a -e $${TOPDIR}/cross-tools/mingw-w64/bin/x86_64-pc-mingw32-gcc; then \
91 BINDIR=$${TOPDIR}/cross-tools/mingw-w64/bin; \
92 INCDIR=$${TOPDIR}/cross-tools/mingw-w64/x86_64-pc-mingw32/include; \
93 DLLDIR=$${TOPDIR}/cross-tools/mingw-w64/x86_64-pc-mingw32/bin; \
94 DEPKGSDIR=depkgs-mingw-w64; \
95 DEPKGSDIR32=depkgs-mingw32; \
96 elif test -e $${TOPDIR}/cross-tools/mingw32/bin/mingw32-gcc; then \
97 BINDIR=$${TOPDIR}/cross-tools/mingw32/bin; \
98 INCDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/include; \
99 DLLDIR=$${TOPDIR}/cross-tools/mingw32/mingw32/bin; \
100 DEPKGSDIR=depkgs-mingw32; \
101 DEPKGSDIR32=depkgs-mingw32; \
103 echo "\nThe GCC cross compiler isn't installed."; \
104 echo "You must run build-win32-cross-tools and build-dependencies first.\n"; \
108 MAINDIR=`(cd ../..;pwd)`; \
110 -e "s^@WIN64@^$${WIN64}^" \
111 -e "s^@WIN32DEPKGS@^$${DEPKGSDIR}^" \
112 -e "s^@WIN32DEPKGS32@^$${DEPKGSDIR32}^" \
113 -e "s^@WIN32BUILDDIR@^$${BUILDDIR}^" \
114 -e "s^@WIN32MAINDIR@^$${MAINDIR}^" \
115 -e "s^@WIN32TOPDIR@^$${TOPDIR}^" \
116 -e "s^@WIN32BINDIR@^$${BINDIR}^" \
117 -e "s^@WIN32INCDIR@^$${INCDIR}^" \
118 -e "s^@WIN32DLLDIR@^$${DLLDIR}^" < Makefile.inc.in > $@