Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 120 lines (105 sloc) 5.43 kb
d32b9db Felipe Pena - Added lemon source to be build and use it to create the parser
felipensp authored
1 LEMON = $(top_srcdir)/lemon
9d9d39a Please welcome the new build system.
Sascha Schumann authored
2 mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
3 INSTALL = $(top_srcdir)/build/shtool install -c
4 INSTALL_DATA = $(INSTALL) -m 644
5
350de12 Expand the variables in PHP_EXPAND_BUILD_VARS.
Sascha Schumann authored
6 DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
107a9ef Fix the framework support
Marko Karppinen authored
7 COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
8
9 all: $(all_targets)
f00fa47 Wez Furlong MFH 4.3; tell the users that the tmpnam stuff is ok.
wez authored
10 @echo
6c4909a Add friendly notice when build is really completed.
foobar authored
11 @echo "Build complete."
f7e4349 Antony Dovgal MFH: remind about 'make test'
tony2001 authored
12 @echo "Don't forget to run 'make test'."
6c4909a Add friendly notice when build is really completed.
foobar authored
13 @echo
14
2633dca - MFH Allow zend_extensions to be build inside ext and tested with 'make...
Marcus Boerger authored
15 build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
16
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
17 libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
6d80c19 The link lines don't need any of $DEFS, $INCLUDES, $EXTRA_INCLUDES or
Marko Karppinen authored
18 $(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 $@
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
19 -@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
9d9d39a Please welcome the new build system.
Sascha Schumann authored
20
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
21 libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
22 $(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
676afb3 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
Marko Karppinen authored
23
6e9c28e Fixed bug #24363 (plain "./configure && make install" failed)
foobar authored
24 install: $(all_targets) $(install_targets)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
25
1b50ca4 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of cou...
Sascha Schumann authored
26 install-sapi: $(OVERALL_TARGET)
eb8c8f9 *** empty log message ***
foobar authored
27 @echo "Installing PHP SAPI module: $(PHP_SAPI)"
9d9d39a Please welcome the new build system.
Sascha Schumann authored
28 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
29 -@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
30 for i in 0.0.0 0.0 0; do \
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
31 if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
32 $(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
33 break; \
34 fi; \
35 done; \
36 fi
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
37 @$(INSTALL_IT)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
38
2f49273 Fix bug: #18008
foobar authored
39 install-modules: build-modules
9d9d39a Please welcome the new build system.
Sascha Schumann authored
40 @test -d modules && \
e13e315 - Only add 'install-modules' into install targets when there are such
foobar authored
41 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
42 @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/"
43 @rm -f modules/*.la >/dev/null 2>&1
44 @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
45
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
46 install-headers:
3db21d2 Michael Wallner - fix make install
m6w6 authored
47 -@if test "$(INSTALL_HEADERS)"; then \
40e25b5 Antony Dovgal MFH: workaround for problem on Solaris: shell tries to parse "for i in ;...
tony2001 authored
48 for i in `echo $(INSTALL_HEADERS)`; do \
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
49 i=`$(top_srcdir)/build/shtool path -d $$i`; \
50 paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
51 done; \
52 $(mkinstalldirs) $$paths && \
53 echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
40e25b5 Antony Dovgal MFH: workaround for problem on Solaris: shell tries to parse "for i in ;...
tony2001 authored
54 for i in `echo $(INSTALL_HEADERS)`; do \
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
55 if test "$(PHP_PECL_EXTENSION)"; then \
56 src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
57 else \
58 src=$$i; \
59 fi; \
60 if test -f "$(top_srcdir)/$$src"; then \
61 $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
62 elif test -f "$(top_builddir)/$$src"; then \
63 $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
64 else \
65 (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
66 cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
67 fi \
68 done; \
69 fi
9d9d39a Please welcome the new build system.
Sascha Schumann authored
70
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
71 PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
72 PHP_TEST_SHARED_EXTENSIONS = ` \
a847d2c MFH: fix for broken shells
Jani Taskinen authored
73 if test "x$(PHP_MODULES)" != "x"; then \
74 for i in $(PHP_MODULES)""; do \
e5b21a9 MFH
foobar authored
75 . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
9e1c9ca MFH
foobar authored
76 done; \
2633dca - MFH Allow zend_extensions to be build inside ext and tested with 'make...
Marcus Boerger authored
77 fi; \
78 if test "x$(PHP_ZEND_EX)" != "x"; then \
79 for i in $(PHP_ZEND_EX)""; do \
80 . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
81 done; \
9e1c9ca MFH
foobar authored
82 fi`
dd8e59d Kalle Sommer Nielsen Removed safe_mode
KalleZ authored
83 PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
cb0fd15 MFH:- Fix passing of shared extensions to run-tests.php
foobar authored
84
9e1c9ca MFH
foobar authored
85 test: all
d5809b8 MFH
foobar authored
86 -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
9a12e9a - Fixed "make test" in phpize builds when ini file(s) contain extension ...
Jani Taskinen authored
87 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
2fd4e81 Fixed "make test" mistakes
Dmitry Stogov authored
88 if test "$$INI_FILE"; then \
47a9c71 - Fixed bug #49935 (Deprecated warnings make "make test" to fail)
Jani Taskinen authored
89 $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
9e1c9ca MFH
foobar authored
90 else \
91 echo > $(top_builddir)/tmp-php.ini; \
83e33ea Antony Dovgal MFH
tony2001 authored
92 fi; \
9a12e9a - Fixed "make test" in phpize builds when ini file(s) contain extension ...
Jani Taskinen authored
93 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
e5e6f55 MFH
Jani Taskinen authored
94 if test "$$INI_SCANNED_PATH"; then \
95 INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
47a9c71 - Fixed bug #49935 (Deprecated warnings make "make test" to fail)
Jani Taskinen authored
96 $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
e5e6f55 MFH
Jani Taskinen authored
97 fi; \
9a12e9a - Fixed "make test" in phpize builds when ini file(s) contain extension ...
Jani Taskinen authored
98 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
64d6421 When encountering a test that users GET/POST make run-tests.php use CGI
Ilia Alshanetsky authored
99 TEST_PHP_SRCDIR=$(top_srcdir) \
100 CC="$(CC)" \
9a12e9a - Fixed "make test" in phpize builds when ini file(s) contain extension ...
Jani Taskinen authored
101 $(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); \
64d6421 When encountering a test that users GET/POST make run-tests.php use CGI
Ilia Alshanetsky authored
102 else \
103 echo "ERROR: Cannot run tests without CLI sapi."; \
104 fi
9d9d39a Please welcome the new build system.
Sascha Schumann authored
105
106 clean:
cb0fd15 MFH:- Fix passing of shared extensions to run-tests.php
foobar authored
107 find . -name \*.gcno -o -name \*.gcda | xargs rm -f
2405fcf Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names pe...
Sascha Schumann authored
108 find . -name \*.lo -o -name \*.o | xargs rm -f
d378a2c Remove space
Yasuo Ohgaki authored
109 find . -name \*.la -o -name \*.a | xargs rm -f
2405fcf Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names pe...
Sascha Schumann authored
110 find . -name \*.so | xargs rm -f
905f56f This does not work with AIX find..
foobar authored
111 find . -name .libs -a -type d|xargs rm -rf
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
112 rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a Please welcome the new build system.
Sascha Schumann authored
113
114 distclean: clean
c0db570 Felipe Pena - Added lemon to distclean
felipensp authored
115 rm -f Makefile lemon 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
9ef2ea1 - Use $SED and $EGREP where possible
foobar authored
116 $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
9d9d39a Please welcome the new build system.
Sascha Schumann authored
117
118 .PHONY: all clean install distclean test
119 .NOEXPORT:
Something went wrong with that request. Please try again.