2000-08-20 13:36:07 +08:00
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
# | PHP version 4.0 |
|
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
# | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
|
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
# | This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
# | that is bundled with this package in the file LICENSE, and is |
|
|
|
|
# | available at through the world-wide-web at |
|
|
|
|
# | http://www.php.net/license/2_02.txt. |
|
|
|
|
# | If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
# | obtain it through the world-wide-web, please send a note to |
|
|
|
|
# | license@php.net so we can mail you a copy immediately. |
|
|
|
|
# +----------------------------------------------------------------------+
|
|
|
|
# | Authors: Sascha Schumann <sascha@schumann.cx> |
|
|
|
|
# +----------------------------------------------------------------------+
|
1999-12-30 10:59:53 +08:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2000-08-20 13:36:07 +08:00
|
|
|
include $(top_srcdir)/build/rules_common.mk
|
1999-12-30 10:59:53 +08:00
|
|
|
|
1999-12-30 15:15:43 +08:00
|
|
|
all: all-recursive
|
|
|
|
install: install-recursive
|
1999-12-30 10:59:53 +08:00
|
|
|
|
1999-12-30 13:53:27 +08:00
|
|
|
distclean-recursive depend-recursive clean-recursive all-recursive install-recursive:
|
1999-12-30 15:15:43 +08:00
|
|
|
@otarget=`echo $@|sed s/-recursive//`; \
|
2000-05-01 10:42:55 +08:00
|
|
|
list='$(SUBDIRS)'; for i in $$list; do \
|
|
|
|
target="$$otarget"; \
|
|
|
|
echo "Making $$target in $$i"; \
|
|
|
|
if test "$$i" = "."; then \
|
|
|
|
ok=yes; \
|
|
|
|
target="$$target-p"; \
|
|
|
|
fi; \
|
|
|
|
(cd $$i && $(MAKE) $$target) || exit 1; \
|
|
|
|
done; \
|
|
|
|
if test "$$otarget" = "all" && test -z '$(targets)'; then ok=yes; fi; \
|
|
|
|
if test "$$ok" != "yes"; then $(MAKE) "$$otarget-p" || exit 1; fi
|
1999-12-30 10:59:53 +08:00
|
|
|
|
1999-12-30 15:15:43 +08:00
|
|
|
all-p: $(targets)
|
|
|
|
install-p: $(targets) $(install_targets)
|
|
|
|
distclean-p depend-p clean-p:
|
|
|
|
|
1999-12-30 10:59:53 +08:00
|
|
|
depend: depend-recursive
|
2000-08-25 16:15:10 +08:00
|
|
|
@echo $(top_srcdir) $(top_builddir) $(srcdir) $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) $(DEFS) $(CPPFLAGS) $(srcdir)/*.c *.c | $(AWK) -f $(top_srcdir)/build/mkdep.awk > $(builddir)/.deps || true
|
1999-12-30 10:59:53 +08:00
|
|
|
|
1999-12-30 13:53:27 +08:00
|
|
|
clean: clean-recursive clean-x
|
|
|
|
|
|
|
|
clean-x:
|
2000-05-01 10:42:55 +08:00
|
|
|
rm -f $(targets) *.lo *.slo *.la *.o $(CLEANFILES)
|
1999-12-30 10:59:53 +08:00
|
|
|
rm -rf .libs
|
|
|
|
|
1999-12-30 13:53:27 +08:00
|
|
|
distclean: distclean-recursive clean-x
|
|
|
|
rm -f config.cache config.log config.status config_vars.mk libtool \
|
|
|
|
php_config.h stamp-h Makefile build-defs.h php4.spec libphp4.module
|
1999-12-30 10:59:53 +08:00
|
|
|
|
2000-08-29 17:12:44 +08:00
|
|
|
test: $(top_builddir)/php
|
2000-12-07 16:06:41 +08:00
|
|
|
@if test "$(TESTS)" = ""; then \
|
2001-04-17 07:28:58 +08:00
|
|
|
TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -C -q $(top_srcdir)/run-tests.php $(srcdir); \
|
2000-12-07 16:06:41 +08:00
|
|
|
else \
|
2001-04-17 07:28:58 +08:00
|
|
|
TOP_BUILDDIR=$(top_builddir) TOP_SRCDIR=$(top_srcdir) $(top_builddir)/php -C -q $(top_srcdir)/run-tests.php $(TESTS); \
|
2000-12-07 16:06:41 +08:00
|
|
|
fi
|
2000-08-29 17:12:44 +08:00
|
|
|
|
2000-05-01 10:42:55 +08:00
|
|
|
include $(builddir)/.deps
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
.PHONY: all-recursive clean-recursive install-recursive \
|
1999-12-30 13:53:27 +08:00
|
|
|
$(install_targets) install all clean depend depend-recursive shared \
|
1999-12-30 15:15:43 +08:00
|
|
|
distclean-recursive distclean clean-x all-p install-p distclean-p \
|
|
|
|
depend-p clean-p
|