diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-04-17 00:09:36 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-04-17 21:52:58 +0200 |
commit | 02c1f3293ea2f5ef2d712c93cad3964e382e4fb0 (patch) | |
tree | c80c19a713c0032859c25287586746eb6b75e317 /buildconf | |
parent | 663056aa5f161854d4255bfb66526e71bbf4f639 (diff) | |
download | php-git-02c1f3293ea2f5ef2d712c93cad3964e382e4fb0.tar.gz |
Join build makefiles together
Changes:
- Joins build/build.mk and build/build2.mk files together since there
isn't any practical reason for having two different files with the
current build system.
- Makefile is now more portable. All special syntaxes are omitted, for
example, a conditional assignment operators `?=`. This makes buildconf
more useful on Solaris make derivative, so there is no longer need to
override make with gmake: `MAKE=gmake ./buildconf`.
- Suppressing autoconf and autoheader warnings is not needed anymore
with current build system. Instead, the option `-Wall` has been used
when running `./buildconf --debug` to get more useful debug info
about current M4.
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -3,6 +3,8 @@ # A wrapper around Autoconf that generates files to build PHP on *nix systems. MAKE=${MAKE:-make} +PHP_AUTOCONF=${PHP_AUTOCONF:-autoconf} +PHP_AUTOHEADER=${PHP_AUTOHEADER:-autoheader} force=0 debug=0 @@ -91,11 +93,14 @@ fi echo "buildconf: Building configure files" -# List of *.m4 prerequisites files for the make configure target. -M4_FILES=$(echo TSRM/*.m4 Zend/*.m4 ext/*/config*.m4 sapi/*/config*.m4) - if test "$debug" = "1"; then - $MAKE -s -f build/build.mk M4_FILES="$M4_FILES" SUPPRESS_WARNINGS="" + autoconf_flags="-f -Wall" else - $MAKE -s -f build/build.mk M4_FILES="$M4_FILES" + autoconf_flags="-f" fi + +$MAKE -s -f build/build.mk \ + PHP_AUTOCONF="$PHP_AUTOCONF" \ + PHP_AUTOHEADER="$PHP_AUTOHEADER" \ + PHP_AUTOCONF_FLAGS="$autoconf_flags" \ + PHP_M4_FILES="$(echo TSRM/*.m4 Zend/*.m4 ext/*/config*.m4 sapi/*/config*.m4)" |