SHARE
TWEET

Makefile generated from pecl configure of expect extension

ketema Apr 5th, 2012 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. srcdir = /private/tmp/pear/temp/expect
  2. builddir = /private/tmp/pear/temp/expect
  3. top_srcdir = /private/tmp/pear/temp/expect
  4. top_builddir = /private/tmp/pear/temp/expect
  5. EGREP = /usr/bin/grep -E
  6. SED = /opt/local/bin/gsed
  7. CONFIGURE_COMMAND = './configure'
  8. CONFIGURE_OPTIONS =
  9. SHLIB_SUFFIX_NAME = dylib
  10. SHLIB_DL_SUFFIX_NAME = so
  11. ZEND_EXT_TYPE = zend_extension
  12. RE2C = exit 0;
  13. AWK = gawk
  14. shared_objects_expect = expect.lo expect_fopen_wrapper.lo
  15. PHP_PECL_EXTENSION = expect
  16. EXPECT_SHARED_LIBADD = -lexpect -ltcl8.5
  17. PHP_MODULES = $(phplibdir)/expect.la
  18. PHP_ZEND_EX =
  19. all_targets = $(PHP_MODULES) $(PHP_ZEND_EX)
  20. install_targets = install-modules install-headers
  21. prefix = /opt/local
  22. exec_prefix = $(prefix)
  23. libdir = ${exec_prefix}/lib
  24. prefix = /opt/local
  25. phplibdir = /private/tmp/pear/temp/expect/modules
  26. phpincludedir = /opt/local/include/php
  27. CC = cc
  28. CFLAGS = -g -O2
  29. CFLAGS_CLEAN = $(CFLAGS)
  30. CPP = cc -E
  31. CPPFLAGS = -DHAVE_CONFIG_H
  32. CXX =
  33. CXXFLAGS =
  34. CXXFLAGS_CLEAN = $(CXXFLAGS)
  35. EXTENSION_DIR = /opt/local/lib/php/extensions/no-debug-non-zts-20090626
  36. PHP_EXECUTABLE = /opt/local/bin/php
  37. EXTRA_LDFLAGS =
  38. EXTRA_LIBS =
  39. INCLUDES = -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include
  40. LFLAGS =
  41. LDFLAGS =
  42. SHARED_LIBTOOL =
  43. LIBTOOL = $(SHELL) $(top_builddir)/libtool
  44. SHELL = /bin/sh
  45. INSTALL_HEADERS =
  46. mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
  47. INSTALL = $(top_srcdir)/build/shtool install -c
  48. INSTALL_DATA = $(INSTALL) -m 644
  49.  
  50. DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
  51. COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
  52.  
  53. all: $(all_targets)
  54.         @echo
  55.         @echo "Build complete."
  56.         @echo "Don't forget to run 'make test'."
  57.         @echo
  58.        
  59. build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
  60.  
  61. libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
  62.         $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
  63.         -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
  64.  
  65. libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
  66.         $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
  67.  
  68. install: $(all_targets) $(install_targets)
  69.  
  70. install-sapi: $(OVERALL_TARGET)
  71.         @echo "Installing PHP SAPI module:       $(PHP_SAPI)"
  72.         -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
  73.         -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
  74.                 for i in 0.0.0 0.0 0; do \
  75.                         if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
  76.                                 $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
  77.                                 break; \
  78.                         fi; \
  79.                 done; \
  80.         fi
  81.         @$(INSTALL_IT)
  82.  
  83. install-modules: build-modules
  84.         @test -d modules && \
  85.         $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
  86.         @echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/"
  87.         @rm -f modules/*.la >/dev/null 2>&1
  88.         @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
  89.  
  90. install-headers:
  91.         -@if test "$(INSTALL_HEADERS)"; then \
  92.                 for i in `echo $(INSTALL_HEADERS)`; do \
  93.                         i=`$(top_srcdir)/build/shtool path -d $$i`; \
  94.                         paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
  95.                 done; \
  96.                 $(mkinstalldirs) $$paths && \
  97.                 echo "Installing header files:          $(INSTALL_ROOT)$(phpincludedir)/" && \
  98.                 for i in `echo $(INSTALL_HEADERS)`; do \
  99.                         if test "$(PHP_PECL_EXTENSION)"; then \
  100.                                 src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
  101.                         else \
  102.                                 src=$$i; \
  103.                         fi; \
  104.                         if test -f "$(top_srcdir)/$$src"; then \
  105.                                 $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
  106.                         elif test -f "$(top_builddir)/$$src"; then \
  107.                                 $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
  108.                         else \
  109.                                 (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
  110.                                 cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
  111.                         fi \
  112.                 done; \
  113.         fi
  114.  
  115. PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
  116. PHP_TEST_SHARED_EXTENSIONS =  ` \
  117.         if test "x$(PHP_MODULES)" != "x"; then \
  118.                 for i in $(PHP_MODULES)""; do \
  119.                         . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
  120.                 done; \
  121.         fi; \
  122.         if test "x$(PHP_ZEND_EX)" != "x"; then \
  123.                 for i in $(PHP_ZEND_EX)""; do \
  124.                         . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
  125.                 done; \
  126.         fi`
  127. PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
  128.  
  129. test: all
  130.         -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
  131.                 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
  132.                 if test "$$INI_FILE"; then \
  133.                         $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
  134.                 else \
  135.                         echo > $(top_builddir)/tmp-php.ini; \
  136.                 fi; \
  137.                 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
  138.                 if test "$$INI_SCANNED_PATH"; then \
  139.                         INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
  140.                         $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
  141.                 fi; \
  142.                 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
  143.                 TEST_PHP_SRCDIR=$(top_srcdir) \
  144.                 CC="$(CC)" \
  145.                         $(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
  146.                 rm $(top_builddir)/tmp-php.ini; \
  147.         else \
  148.                 echo "ERROR: Cannot run tests without CLI sapi."; \
  149.         fi
  150.  
  151. clean:
  152.         find . -name \*.gcno -o -name \*.gcda | xargs rm -f
  153.         find . -name \*.lo -o -name \*.o | xargs rm -f
  154.         find . -name \*.la -o -name \*.a | xargs rm -f
  155.         find . -name \*.so | xargs rm -f
  156.         find . -name .libs -a -type d|xargs rm -rf
  157.         rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
  158.  
  159. distclean: clean
  160.         rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
  161.         $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
  162.  
  163. .PHONY: all clean install distclean test
  164. .NOEXPORT:
  165. expect.lo: /private/tmp/pear/temp/expect/expect.c
  166.         $(LIBTOOL) --mode=compile $(CC)  -I. -I/private/tmp/pear/temp/expect $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c /private/tmp/pear/temp/expect/expect.c -o expect.lo
  167. expect_fopen_wrapper.lo: /private/tmp/pear/temp/expect/expect_fopen_wrapper.c
  168.         $(LIBTOOL) --mode=compile $(CC)  -I. -I/private/tmp/pear/temp/expect $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)  -c /private/tmp/pear/temp/expect/expect_fopen_wrapper.c -o expect_fopen_wrapper.lo
  169. $(phplibdir)/expect.la: ./expect.la
  170.         $(LIBTOOL) --mode=install cp ./expect.la $(phplibdir)
  171.  
  172. ./expect.la: $(shared_objects_expect) $(EXPECT_SHARED_DEPENDENCIES)
  173.         $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_expect) $(EXPECT_SHARED_LIBADD)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top