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
#
2000-08-20 13:36:07 +08:00
# $Id$
1999-12-30 10:59:53 +08:00
#
i n c l u d e g e n e r a t e d _ l i s t s
TOUCH_FILES = mkinstalldirs install-sh missing
LT_TARGETS = ltconfig ltmain.sh config.guess config.sub
makefile_in_files = $( makefile_am_files:.am= .in)
makefile_files = $( makefile_am_files:e.am= e)
2000-11-27 21:27:51 +08:00
config_h_in = main/php_config.h.in
1999-12-30 10:59:53 +08:00
2000-01-13 03:09:59 +08:00
acconfig_h_SOURCES = acconfig.h.in $( config_h_files)
1999-12-30 12:07:46 +08:00
targets = $( TOUCH_FILES) $( makefile_in_files) configure $( config_h_in)
1999-12-30 10:59:53 +08:00
2000-05-01 10:42:55 +08:00
all : Zend /Makefile .am TSRM /Makefile .am $( targets )
2000-02-24 03:26:31 +08:00
1999-12-30 10:59:53 +08:00
Zend/Makefile.am :
test -d Zend || ( test -d ../Zend && ln -s ../Zend Zend)
TSRM/Makefile.am :
test -d TSRM || ( test -d ../TSRM && ln -s ../TSRM TSRM)
2000-01-13 03:09:59 +08:00
acconfig.h : $( acconfig_h_SOURCES )
@echo rebuilding $@
cat $( acconfig_h_SOURCES) > $@
1999-12-30 10:59:53 +08:00
$(makefile_in_files) : $( makefile_am_files ) aclocal .m 4 configure .in $( config_m 4_files )
2000-05-18 19:41:41 +08:00
@echo rebuilding Makefile templates
1999-12-30 10:59:53 +08:00
@for i in $( LT_TARGETS) ; do \
if test -f " $$ i " ; then \
mv $$ i $$ i.bak; \
cp $$ i.bak $$ i; \
fi ; \
done
@test -f want_dependencies || flag = -i; \
automake -a $$ flag $( AMFLAGS) $( makefile_files) \
|| true >& 2
@for i in $( LT_TARGETS) ; do mv $$ i.bak $$ i; done
2000-05-01 10:42:55 +08:00
aclocal.m4 : configure .in acinclude .m 4 dynlib .m 4
1999-12-30 10:59:53 +08:00
aclocal
2001-02-08 08:49:24 +08:00
SUPPRESS_WARNINGS = ( egrep -v '(warning: AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX)' || true )
1999-12-30 14:07:56 +08:00
$(config_h_in) : configure acconfig .h
1999-12-30 10:59:53 +08:00
# explicitly remove target since autoheader does not seem to work
# correctly otherwise (timestamps are not updated)
@echo rebuilding $@
@rm -f $@
2001-02-08 08:49:24 +08:00
@autoheader 2>& 1 | $( SUPPRESS_WARNINGS)
1999-12-30 10:59:53 +08:00
$(TOUCH_FILES) :
touch $( TOUCH_FILES)
2000-02-24 03:26:31 +08:00
1999-12-30 10:59:53 +08:00
configure : aclocal .m 4 configure .in $( config_m 4_files )
@echo rebuilding $@
2001-02-08 08:49:24 +08:00
@autoconf 2>& 1 | $( SUPPRESS_WARNINGS)