From 97c698a1787c353de48466d045792db0e00a0ca7 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 20 Aug 2000 05:36:07 +0000 Subject: [PATCH] Relicense build-related files under the PHP License Move common make rules to rules_common.mk. This gets rid of the duplicated stuff in rules.mk/rules_pear.mk. --- build/build.mk | 38 ++++++++--------- build/build2.mk | 38 ++++++++--------- build/dynlib.mk | 19 +++++++++ build/library.mk | 37 +++++++---------- build/ltlib.mk | 37 +++++++---------- build/program.mk | 37 +++++++---------- build/rules.mk | 95 ++++++++----------------------------------- build/rules_common.mk | 76 ++++++++++++++++++++++++++++++++++ build/rules_pear.mk | 78 ++++++++--------------------------- dynlib.m4 | 18 ++++++++ pear/Makefile.in | 1 + pear/phpize.in | 2 +- 12 files changed, 224 insertions(+), 252 deletions(-) create mode 100644 build/rules_common.mk diff --git a/build/build.mk b/build/build.mk index 6d9998758e..b91918bb91 100644 --- a/build/build.mk +++ b/build/build.mk @@ -1,28 +1,22 @@ -# Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -############################################################################## # $Id$ # +# # Makefile to generate build tools # diff --git a/build/build2.mk b/build/build2.mk index 047a7f2108..39bb9b50e3 100644 --- a/build/build2.mk +++ b/build/build2.mk @@ -1,27 +1,21 @@ -# Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# $Id$ # -############################################################################## -# $Id$ include generated_lists diff --git a/build/dynlib.mk b/build/dynlib.mk index d7e695cf18..8df92ac6cf 100644 --- a/build/dynlib.mk +++ b/build/dynlib.mk @@ -1,3 +1,22 @@ +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ +# +# $Id$ +# + all: all-recursive include $(builddir)/libs.mk diff --git a/build/library.mk b/build/library.mk index 3726c538cf..8cb86760e4 100644 --- a/build/library.mk +++ b/build/library.mk @@ -1,26 +1,19 @@ -# Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -############################################################################## # $Id$ # diff --git a/build/ltlib.mk b/build/ltlib.mk index 9538be9c5a..ca68d5d15e 100644 --- a/build/ltlib.mk +++ b/build/ltlib.mk @@ -1,26 +1,19 @@ -# Copyright (c) 1999 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -############################################################################## # $Id$ # diff --git a/build/program.mk b/build/program.mk index f0377af880..f79feecb19 100644 --- a/build/program.mk +++ b/build/program.mk @@ -1,26 +1,19 @@ -# Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -############################################################################## # $Id$ # diff --git a/build/rules.mk b/build/rules.mk index e1e63a10d7..4bcfe3eb39 100644 --- a/build/rules.mk +++ b/build/rules.mk @@ -1,86 +1,23 @@ -# Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -############################################################################## # $Id$ # -include $(top_builddir)/config_vars.mk - -COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) -COMPILE = $(CC) $(COMMON_FLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -CXX_COMPILE = $(CXX) $(COMMON_FLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) - -SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@ -CXX_SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@ - -LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LDFLAGS) -o $@ - -mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p -INSTALL = $(top_srcdir)/build/shtool install -c -INSTALL_DATA = $(INSTALL) -m 644 - -DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/main - -moduledir = $(EXTENSION_DIR) - -CXX_SUFFIX = .cpp - -.SUFFIXES: -.SUFFIXES: .slo .c $(CXX_SUFFIX) .lo .o .s .y .l - -.c.o: - $(COMPILE) -c $< - -$(CXX_SUFFIX).o: - $(CXX_COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.c.lo: - $(PHP_COMPILE) - -$(CXX_SUFFIX).lo: - $(CXX_PHP_COMPILE) - -.s.lo: - $(PHP_COMPILE) - -.c.slo: - $(SHARED_COMPILE) - -$(CXX_SUFFIX).slo: - $(CXX_SHARED_COMPILE) - -.y.c: - $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c - if test -f y.tab.h; then \ - if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ - else :; fi - -.l.c: - $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@ - +include $(top_srcdir)/build/rules_common.mk all: all-recursive install: install-recursive diff --git a/build/rules_common.mk b/build/rules_common.mk new file mode 100644 index 0000000000..9580f9f32f --- /dev/null +++ b/build/rules_common.mk @@ -0,0 +1,76 @@ +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ +# +# $Id$ +# + +include $(top_builddir)/config_vars.mk + +COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) +COMPILE = $(CC) $(COMMON_FLAGS) $(CFLAGS) $(EXTRA_CFLAGS) +CXX_COMPILE = $(CXX) $(COMMON_FLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) + +SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@ +CXX_SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@ + +LINK = $(LIBTOOL) --mode=link $(COMPILE) $(LDFLAGS) -o $@ + +mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p +INSTALL = $(top_srcdir)/build/shtool install -c +INSTALL_DATA = $(INSTALL) -m 644 + +DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/main + +moduledir = $(EXTENSION_DIR) + +CXX_SUFFIX = .cpp + +.SUFFIXES: +.SUFFIXES: .slo .c $(CXX_SUFFIX) .lo .o .s .y .l + +.c.o: + $(COMPILE) -c $< + +$(CXX_SUFFIX).o: + $(CXX_COMPILE) -c $< + +.s.o: + $(COMPILE) -c $< + +.c.lo: + $(PHP_COMPILE) + +$(CXX_SUFFIX).lo: + $(CXX_PHP_COMPILE) + +.s.lo: + $(PHP_COMPILE) + +.c.slo: + $(SHARED_COMPILE) + +$(CXX_SUFFIX).slo: + $(CXX_SHARED_COMPILE) + +.y.c: + $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c + if test -f y.tab.h; then \ + if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ + else :; fi + +.l.c: + $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@ + diff --git a/build/rules_pear.mk b/build/rules_pear.mk index 11c749c1c7..cd1a676490 100644 --- a/build/rules_pear.mk +++ b/build/rules_pear.mk @@ -1,69 +1,23 @@ -# Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved. +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, -# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -############################################################################## # $Id$ # -include $(top_builddir)/config_vars.mk - -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -mkinstalldirs = $(top_srcdir)/build/shtool mkdir -f -p -INSTALL = $(top_srcdir)/build/shtool install -c -INSTALL_DATA = $(INSTALL) -m 644 -SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< && touch $@ -DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I$(top_builddir) -I$(top_builddir)/main - -moduledir = $(EXTENSION_DIR) - -.SUFFIXES: -.SUFFIXES: .slo .c .lo .o .s .y .l - -.c.o: - $(COMPILE) -c $< - -.s.o: - $(COMPILE) -c $< - -.c.lo: - $(PHP_COMPILE) - -.s.lo: - $(PHP_COMPILE) - -.c.slo: - $(SHARED_COMPILE) - -.y.c: - $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c - if test -f y.tab.h; then \ - if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ - else :; fi - -.l.c: - $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@ +include $(top_srcdir)/build/rules_common.mk install_targets = install-modules diff --git a/dynlib.m4 b/dynlib.m4 index 5917b187f0..19c9e84f5d 100644 --- a/dynlib.m4 +++ b/dynlib.m4 @@ -1,3 +1,21 @@ +# +----------------------------------------------------------------------+ +# | 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 | +# +----------------------------------------------------------------------+ +# +# $Id$ +# diff --git a/pear/Makefile.in b/pear/Makefile.in index 80ac974c05..9a015d014a 100644 --- a/pear/Makefile.in +++ b/pear/Makefile.in @@ -54,6 +54,7 @@ BUILD_FILES = \ build/ltlib.mk \ build/program.mk \ build/rules.mk \ + build/rules_common.mk \ build/rules_pear.mk \ build/dynlib.mk \ build/shtool \ diff --git a/pear/phpize.in b/pear/phpize.in index a7195b6a09..29531d13b1 100644 --- a/pear/phpize.in +++ b/pear/phpize.in @@ -3,7 +3,7 @@ prefix='@prefix@' phpdir="$prefix/lib/php/build" builddir="`pwd`" -FILES_BUILD="dynlib.mk fastgen.sh library.mk ltlib.mk program.mk rules.mk rules_pear.mk shtool" +FILES_BUILD="dynlib.mk fastgen.sh library.mk ltlib.mk program.mk rules.mk rules_common.mk rules_pear.mk shtool" FILES="acinclude.m4 dynlib.m4" if test ! -r config.m4; then -- 2.40.0