Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 101 lines (86 sloc) 4.308 kb
9d9d39a Please welcome the new build system.
Sascha Schumann authored
1 mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
2 INSTALL = $(top_srcdir)/build/shtool install -c
3 INSTALL_DATA = $(INSTALL) -m 644
4
350de12 Expand the variables in PHP_EXPAND_BUILD_VARS.
Sascha Schumann authored
5 DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
107a9ef Fix the framework support
Marko Karppinen authored
6 COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
7
8 all: $(all_targets)
f00fa47 @wez MFH 4.3; tell the users that the tmpnam stuff is ok.
wez authored
9 @echo
6c4909a Add friendly notice when build is really completed.
foobar authored
10 @echo "Build complete."
f00fa47 @wez MFH 4.3; tell the users that the tmpnam stuff is ok.
wez authored
11 @echo "(It is safe to ignore warnings about tempnam and tmpnam)."
6c4909a Add friendly notice when build is really completed.
foobar authored
12 @echo
13
9d9d39a Please welcome the new build system.
Sascha Schumann authored
14 build-modules: $(PHP_MODULES)
15
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
16 libphp5.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
6d80c19 The link lines don't need any of $DEFS, $INCLUDES, $EXTRA_INCLUDES or
Marko Karppinen authored
17 $(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 $@
1b50ca4 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of cou...
Sascha Schumann authored
18 -@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
9d9d39a Please welcome the new build system.
Sascha Schumann authored
19
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
20 libs/libphp5.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
21 $(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/libphp5.so
676afb3 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
Marko Karppinen authored
22
6e9c28e Fixed bug #24363 (plain "./configure && make install" failed)
foobar authored
23 install: $(all_targets) $(install_targets)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
24
1b50ca4 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of cou...
Sascha Schumann authored
25 install-sapi: $(OVERALL_TARGET)
eb8c8f9 *** empty log message ***
foobar authored
26 @echo "Installing PHP SAPI module: $(PHP_SAPI)"
9d9d39a Please welcome the new build system.
Sascha Schumann authored
27 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
9e56553 MFH
Andrei Zmievski authored
28 -@if test ! -r $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME); then \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
29 for i in 0.0.0 0.0 0; do \
9e56553 MFH
Andrei Zmievski authored
30 if test -r $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME).$$i; then \
31 $(LN_S) $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME); \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
32 break; \
33 fi; \
34 done; \
35 fi
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
36 @$(INSTALL_IT)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
37
2f49273 Fix bug: #18008
foobar authored
38 install-modules: build-modules
9d9d39a Please welcome the new build system.
Sascha Schumann authored
39 @test -d modules && \
e13e315 - Only add 'install-modules' into install targets when there are such
foobar authored
40 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
41 @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/"
42 @rm -f modules/*.la >/dev/null 2>&1
43 @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
44
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
45 install-headers:
3db21d2 @m6w6 - fix make install
m6w6 authored
46 -@if test "$(INSTALL_HEADERS)"; then \
40e25b5 @tony2001 MFH: workaround for problem on Solaris: shell tries to parse "for i in ;...
tony2001 authored
47 for i in `echo $(INSTALL_HEADERS)`; do \
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
48 i=`$(top_srcdir)/build/shtool path -d $$i`; \
49 paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
50 done; \
51 $(mkinstalldirs) $$paths && \
52 echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
40e25b5 @tony2001 MFH: workaround for problem on Solaris: shell tries to parse "for i in ;...
tony2001 authored
53 for i in `echo $(INSTALL_HEADERS)`; do \
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
54 if test "$(PHP_PECL_EXTENSION)"; then \
55 src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
56 else \
57 src=$$i; \
58 fi; \
59 if test -f "$(top_srcdir)/$$src"; then \
60 $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
61 elif test -f "$(top_builddir)/$$src"; then \
62 $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
63 else \
64 (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
65 cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
66 fi \
67 done; \
68 fi
69
ee5fd96 - Made it possible to do "make test" for phpized extensions
foobar authored
70 install-su: install-pear
9d9d39a Please welcome the new build system.
Sascha Schumann authored
71
d4fd9a5 put the -d extension loading options in the right place,
Hartmut Holzgraefe authored
72 test: all
d5809b8 MFH
foobar authored
73 -@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
ee5fd96 - Made it possible to do "make test" for phpized extensions
foobar authored
74 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
75 TEST_PHP_SRCDIR=$(top_srcdir) \
76 CC="$(CC)" \
d4fd9a5 put the -d extension loading options in the right place,
Hartmut Holzgraefe authored
77 $(PHP_EXECUTABLE) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php -d 'extension_dir=modules/' -d `( . $(PHP_MODULES) ; echo extension=$$dlname)` tests/; \
d5809b8 MFH
foobar authored
78 elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
64d6421 When encountering a test that users GET/POST make run-tests.php use CGI
Ilia Alshanetsky authored
79 TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
80 TEST_PHP_SRCDIR=$(top_srcdir) \
81 CC="$(CC)" \
e5df7fa - No more memory_limit for running tests
Marcus Boerger authored
82 $(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS); \
64d6421 When encountering a test that users GET/POST make run-tests.php use CGI
Ilia Alshanetsky authored
83 else \
84 echo "ERROR: Cannot run tests without CLI sapi."; \
85 fi
9d9d39a Please welcome the new build system.
Sascha Schumann authored
86
87 clean:
2405fcf Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names pe...
Sascha Schumann authored
88 find . -name \*.lo -o -name \*.o | xargs rm -f
d378a2c Remove space
Yasuo Ohgaki authored
89 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
90 find . -name \*.so | xargs rm -f
905f56f This does not work with AIX find..
foobar authored
91 find . -name .libs -a -type d|xargs rm -rf
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
92 rm -f libphp5.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a Please welcome the new build system.
Sascha Schumann authored
93
94 distclean: clean
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
95 rm -f config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h php5.spec sapi/apache/libphp5.module buildmk.stamp
9ef2ea1 - Use $SED and $EGREP where possible
foobar authored
96 $(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
9d9d39a Please welcome the new build system.
Sascha Schumann authored
97 find . -name Makefile | xargs rm -f
98
99 .PHONY: all clean install distclean test
100 .NOEXPORT:
Something went wrong with that request. Please try again.