Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 123 lines (107 sloc) 5.525 kb
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
1 mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
2 INSTALL = $(top_srcdir)/build/shtool install -c
3 INSTALL_DATA = $(INSTALL) -m 644
4
350de12b » Sascha Schumann
2002-03-20 Expand the variables in PHP_EXPAND_BUILD_VARS.
5 DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
107a9efb » Marko Karppinen
2002-08-06 Fix the framework support
6 COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
7
8 all: $(all_targets)
f00fa47c » wez
2003-05-18 MFH 4.3; tell the users that the tmpnam stuff is ok.
9 @echo
6c4909aa » foobar
2003-05-14 Add friendly notice when build is really completed.
10 @echo "Build complete."
f7e43496 » tony2001
2007-02-26 MFH: remind about 'make test'
11 @echo "Don't forget to run 'make test'."
6c4909aa » foobar
2003-05-14 Add friendly notice when build is really completed.
12 @echo
13
2633dcab » Marcus Boerger
2008-02-17 - MFH Allow zend_extensions to be build inside ext and tested with 'm…
14 build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
15
25aee9ca » Jani Taskinen
2010-11-13 - Implemented FR #53271, FR #52410 (Building multiple PHP binary SAPI…
16 build-binaries: $(PHP_BINARIES)
17
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
18 libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
6d80c191 » Marko Karppinen
2002-08-06 The link lines don't need any of $DEFS, $INCLUDES, $EXTRA_INCLUDES or
19 $(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 $@
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
20 -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
21
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
22 libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
23 $(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
676afb33 » Marko Karppinen
2002-03-30 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
24
6e9c28e1 » foobar
2003-06-29 Fixed bug #24363 (plain "./configure && make install" failed)
25 install: $(all_targets) $(install_targets)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
26
1b50ca4d » Sascha Schumann
2003-07-02 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of …
27 install-sapi: $(OVERALL_TARGET)
eb8c8f94 » foobar
2003-07-02 *** empty log message ***
28 @echo "Installing PHP SAPI module: $(PHP_SAPI)"
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
29 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
30 -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
31 for i in 0.0.0 0.0 0; do \
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
32 if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
33 $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
34 break; \
35 fi; \
36 done; \
37 fi
bb0d7d6e » foobar
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
38 @$(INSTALL_IT)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
39
25aee9ca » Jani Taskinen
2010-11-13 - Implemented FR #53271, FR #52410 (Building multiple PHP binary SAPI…
40 install-binaries: build-binaries $(install_binary_targets)
41
2f492735 » foobar
2002-06-27 Fix bug: #18008
42 install-modules: build-modules
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
43 @test -d modules && \
e13e315a » foobar
2003-12-04 - Only add 'install-modules' into install targets when there are such
44 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
45 @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/"
46 @rm -f modules/*.la >/dev/null 2>&1
47 @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
48
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
49 install-headers:
3db21d2f » m6w6
2005-11-22 - fix make install
50 -@if test "$(INSTALL_HEADERS)"; then \
40e25b5a » tony2001
2006-04-05 MFH: workaround for problem on Solaris: shell tries to parse "for i i…
51 for i in `echo $(INSTALL_HEADERS)`; do \
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
52 i=`$(top_srcdir)/build/shtool path -d $$i`; \
53 paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
54 done; \
55 $(mkinstalldirs) $$paths && \
56 echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
40e25b5a » tony2001
2006-04-05 MFH: workaround for problem on Solaris: shell tries to parse "for i i…
57 for i in `echo $(INSTALL_HEADERS)`; do \
7243d31a » foobar
2005-11-21 MFH: - Fixed header installing under phpize builds
58 if test "$(PHP_PECL_EXTENSION)"; then \
59 src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
60 else \
61 src=$$i; \
62 fi; \
63 if test -f "$(top_srcdir)/$$src"; then \
64 $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
65 elif test -f "$(top_builddir)/$$src"; then \
66 $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
67 else \
68 (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
69 cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
70 fi \
71 done; \
72 fi
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
73
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
74 PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
75 PHP_TEST_SHARED_EXTENSIONS = ` \
a847d2c6 » Jani Taskinen
2007-08-03 MFH: fix for broken shells
76 if test "x$(PHP_MODULES)" != "x"; then \
77 for i in $(PHP_MODULES)""; do \
e5b21a95 » foobar
2007-06-29 MFH
78 . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
9e1c9cad » foobar
2007-06-29 MFH
79 done; \
2633dcab » Marcus Boerger
2008-02-17 - MFH Allow zend_extensions to be build inside ext and tested with 'm…
80 fi; \
81 if test "x$(PHP_ZEND_EX)" != "x"; then \
82 for i in $(PHP_ZEND_EX)""; do \
83 . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
84 done; \
9e1c9cad » foobar
2007-06-29 MFH
85 fi`
dd8e59da » KalleZ
2010-04-26 Removed safe_mode
86 PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
cb0fd156 » foobar
2007-06-06 MFH:- Fix passing of shared extensions to run-tests.php
87
9e1c9cad » foobar
2007-06-29 MFH
88 test: all
d5809b85 » foobar
2005-09-14 MFH
89 -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
9a12e9a1 » Jani Taskinen
2009-11-18 - Fixed "make test" in phpize builds when ini file(s) contain extensi…
90 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
2fd4e814 » Dmitry Stogov
2007-07-03 Fixed "make test" mistakes
91 if test "$$INI_FILE"; then \
47a9c71d » Jani Taskinen
2009-11-27 - Fixed bug #49935 (Deprecated warnings make "make test" to fail)
92 $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
9e1c9cad » foobar
2007-06-29 MFH
93 else \
94 echo > $(top_builddir)/tmp-php.ini; \
83e33eac » tony2001
2007-06-26 MFH
95 fi; \
9a12e9a1 » Jani Taskinen
2009-11-18 - Fixed "make test" in phpize builds when ini file(s) contain extensi…
96 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
e5e6f553 » Jani Taskinen
2008-08-13 MFH
97 if test "$$INI_SCANNED_PATH"; then \
98 INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
47a9c71d » Jani Taskinen
2009-11-27 - Fixed bug #49935 (Deprecated warnings make "make test" to fail)
99 $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
e5e6f553 » Jani Taskinen
2008-08-13 MFH
100 fi; \
9a12e9a1 » Jani Taskinen
2009-11-18 - Fixed "make test" in phpize builds when ini file(s) contain extensi…
101 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
64d64218 » Ilia Alshanetsky
2003-07-24 When encountering a test that users GET/POST make run-tests.php use CGI
102 TEST_PHP_SRCDIR=$(top_srcdir) \
103 CC="$(CC)" \
9a12e9a1 » Jani Taskinen
2009-11-18 - Fixed "make test" in phpize builds when ini file(s) contain extensi…
104 $(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); \
0c19577c » Derick Rethans
2010-09-05 - Clean up the generated tmp-php.ini after make test has run.
105 rm $(top_builddir)/tmp-php.ini; \
64d64218 » Ilia Alshanetsky
2003-07-24 When encountering a test that users GET/POST make run-tests.php use CGI
106 else \
107 echo "ERROR: Cannot run tests without CLI sapi."; \
108 fi
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
109
110 clean:
cb0fd156 » foobar
2007-06-06 MFH:- Fix passing of shared extensions to run-tests.php
111 find . -name \*.gcno -o -name \*.gcda | xargs rm -f
2405fcf3 » Sascha Schumann
2002-09-30 Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names…
112 find . -name \*.lo -o -name \*.o | xargs rm -f
d378a2c9 » Yasuo Ohgaki
2002-09-30 Remove space
113 find . -name \*.la -o -name \*.a | xargs rm -f
2405fcf3 » Sascha Schumann
2002-09-30 Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names…
114 find . -name \*.so | xargs rm -f
905f56fd » foobar
2002-06-30 This does not work with AIX find..
115 find . -name .libs -a -type d|xargs rm -rf
8684e749 » Jani Taskinen
2007-07-26 MFH: - Made build system less major version dependant to ease MFB/MFH
116 rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
117
118 distclean: clean
2d549b7b » Jani Taskinen
2009-07-24 - Fixed bug #48835 (Deprecated php.ini options in old php.inis makes …
119 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
9ef2ea19 » foobar
2005-05-27 - Use $SED and $EGREP where possible
120 $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
121
122 .PHONY: all clean install distclean test
123 .NOEXPORT:
Something went wrong with that request. Please try again.