You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.6 KiB

24 years ago
  1. # +----------------------------------------------------------------------+
  2. # | PHP Version 5 |
  3. # +----------------------------------------------------------------------+
  4. # | Copyright (c) 1997-2004 The PHP Group |
  5. # +----------------------------------------------------------------------+
  6. # | This source file is subject to version 3.0 of the PHP license, |
  7. # | that is bundled with this package in the file LICENSE, and is |
  8. # | available through the world-wide-web at the following url: |
  9. # | http://www.php.net/license/3_0.txt. |
  10. # | If you did not receive a copy of the PHP license and are unable to |
  11. # | obtain it through the world-wide-web, please send a note to |
  12. # | license@php.net so we can mail you a copy immediately. |
  13. # +----------------------------------------------------------------------+
  14. # | Author: Sascha Schumann <sascha@schumann.cx> |
  15. # +----------------------------------------------------------------------+
  16. #
  17. # $Id$
  18. #
  19. include generated_lists
  20. TOUCH_FILES = mkinstalldirs install-sh missing
  21. LT_TARGETS = ltmain.sh config.guess config.sub
  22. makefile_in_files = $(makefile_am_files:.am=.in)
  23. makefile_files = $(makefile_am_files:e.am=e)
  24. config_h_in = main/php_config.h.in
  25. acconfig_h_SOURCES = acconfig.h.in $(config_h_files)
  26. targets = $(TOUCH_FILES) configure $(config_h_in)
  27. all: $(targets)
  28. acconfig.h: $(acconfig_h_SOURCES)
  29. @echo rebuilding $@
  30. cat $(acconfig_h_SOURCES) > $@
  31. SUPPRESS_WARNINGS = (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)'||true)
  32. $(config_h_in): configure acconfig.h
  33. # explicitly remove target since autoheader does not seem to work
  34. # correctly otherwise (timestamps are not updated)
  35. @echo rebuilding $@
  36. @rm -f $@
  37. @autoheader=`./build/shtool path autoheader-2.13 autoheader`; \
  38. $$autoheader 2>&1 | $(SUPPRESS_WARNINGS)
  39. $(TOUCH_FILES):
  40. touch $(TOUCH_FILES)
  41. aclocal.m4: configure.in acinclude.m4
  42. @echo rebuilding $@
  43. @libtoolize=`./build/shtool path glibtoolize libtoolize`; \
  44. $$libtoolize --copy --automake; \
  45. ltpath=`dirname $$libtoolize`; \
  46. ltfile=`cd $$ltpath/../share/aclocal; pwd`/libtool.m4; \
  47. cat acinclude.m4 $$ltfile > $@
  48. configure: aclocal.m4 configure.in $(config_m4_files)
  49. @echo rebuilding $@
  50. @autoconf=`./build/shtool path autoconf-2.13 autoconf`; \
  51. $$autoconf 2>&1 | $(SUPPRESS_WARNINGS)