2000-08-20 05:36:07 +00:00
# +----------------------------------------------------------------------+
2004-01-08 17:33:29 +00:00
# | PHP Version 5 |
2000-08-20 05:36:07 +00:00
# +----------------------------------------------------------------------+
2007-01-01 19:32:10 +00:00
# | Copyright (c) 1997-2007 The PHP Group |
2000-08-20 05:36:07 +00:00
# +----------------------------------------------------------------------+
2006-01-01 12:51:34 +00:00
# | This source file is subject to version 3.01 of the PHP license, |
2000-08-20 05:36:07 +00:00
# | that is bundled with this package in the file LICENSE, and is |
2003-06-10 20:04:29 +00:00
# | available through the world-wide-web at the following url: |
2006-01-01 12:51:34 +00:00
# | http://www.php.net/license/3_01.txt |
2000-08-20 05:36:07 +00:00
# | 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. |
# +----------------------------------------------------------------------+
2002-02-28 08:29:35 +00:00
# | Author: Sascha Schumann <sascha@schumann.cx> |
2000-08-20 05:36:07 +00:00
# +----------------------------------------------------------------------+
1999-12-30 02:59:53 +00:00
#
2000-08-20 05:36:07 +00:00
# $Id$
1999-12-30 02:59:53 +00: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
2001-05-12 11:19:46 +00:00
LT_TARGETS = ltmain.sh config.guess config.sub
1999-12-30 02:59:53 +00:00
2000-11-27 13:27:51 +00:00
config_h_in = main/php_config.h.in
1999-12-30 02:59:53 +00:00
2000-01-12 19:09:59 +00:00
acconfig_h_SOURCES = acconfig.h.in $( config_h_files)
2002-03-07 14:20:02 +00:00
targets = $( TOUCH_FILES) configure $( config_h_in)
1999-12-30 02:59:53 +00:00
2005-04-04 07:16:01 +00:00
PHP_AUTOCONF ?= 'autoconf'
PHP_AUTOHEADER ?= 'autoheader'
2005-02-03 17:42:42 +00:00
SUPPRESS_WARNINGS ?= 2>& 1 | ( egrep -v '(AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|defined in acinclude.m4 but never used|AC_PROG_LEX invoked multiple times|AC_DECL_YYTEXT is expanded from...|the top level)' || true )
2005-01-19 23:03:29 +00:00
2005-02-03 17:42:42 +00:00
all : $( targets )
1999-12-30 02:59:53 +00:00
2000-01-12 19:09:59 +00:00
acconfig.h : $( acconfig_h_SOURCES )
@echo rebuilding $@
cat $( acconfig_h_SOURCES) > $@
1999-12-30 06:07:56 +00:00
$(config_h_in) : configure acconfig .h
1999-12-30 02:59:53 +00:00
# explicitly remove target since autoheader does not seem to work
# correctly otherwise (timestamps are not updated)
@echo rebuilding $@
@rm -f $@
2005-04-04 07:16:01 +00:00
$( PHP_AUTOHEADER) $( SUPPRESS_WARNINGS)
1999-12-30 02:59:53 +00:00
$(TOUCH_FILES) :
touch $( TOUCH_FILES)
2000-02-23 19:26:31 +00:00
2002-03-07 14:20:02 +00:00
aclocal.m4 : configure .in acinclude .m 4
2003-06-27 00:19:43 +00:00
@echo rebuilding $@
2005-01-20 01:41:20 +00:00
cat acinclude.m4 ./build/libtool.m4 > $@
2003-06-27 00:19:43 +00:00
1999-12-30 02:59:53 +00:00
configure : aclocal .m 4 configure .in $( config_m 4_files )
@echo rebuilding $@
2005-04-04 07:16:01 +00:00
$( PHP_AUTOCONF) $( SUPPRESS_WARNINGS)
2005-01-20 01:41:20 +00:00