Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (55 sloc) 2.883 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
9 all: $(all_targets)
6c4909a Add friendly notice when build is really completed.
foobar authored
10 @echo "Build complete."
11 @echo
12
9d9d39a Please welcome the new build system.
Sascha Schumann authored
13 build-modules: $(PHP_MODULES)
14
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
15 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
16 $(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 $@
9d9d39a Please welcome the new build system.
Sascha Schumann authored
17
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
18 libs/libphp5.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
19 $(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
20
e6e5460 Follow Yasuo's suggestion and build sapi program's under the sapi-specif...
Sascha Schumann authored
21 install: $(install_targets)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
22
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
23 install-sapi: libphp5.la
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
24 @echo "Installing PHP SAPI module"
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
25 -@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
9d9d39a Please welcome the new build system.
Sascha Schumann authored
26 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
27 -@if test ! -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); then \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
28 for i in 0.0.0 0.0 0; do \
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
29 if test -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME).$$i; then \
30 $(LN_S) $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
31 break; \
32 fi; \
33 done; \
34 fi
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
35 @$(INSTALL_IT)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
36
2f49273 Fix bug: #18008
foobar authored
37 install-modules: build-modules
9d9d39a Please welcome the new build system.
Sascha Schumann authored
38 @test -d modules && \
39 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
40 echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
41 rm -f modules/*.la && \
7b2fd2c Use $(INSTALL) rather than cp to install modules.
Sascha Schumann authored
42 $(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
9d9d39a Please welcome the new build system.
Sascha Schumann authored
43
44 install-tester:
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
45 @echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
0f2ae50 Add missing $(INSTALL_ROOT)
Sascha Schumann authored
46 @$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
47 @$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
48
49 install-su: install-pear install-tester
50
5c35fad Fix some typos
Sascha Schumann authored
51 test: $(SAPI_CLI_PATH)
52 @TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
e83ca7d fix make test for an external build dir setup
Stefan Esser authored
53 TEST_PHP_SRCDIR=$(top_srcdir) \
19ae16a - Fix "make test" when CC was set to something with a parameter
Derick Rethans authored
54 CC="$(CC)" \
63aa8ac MFB: disable output buffering
Melvyn Sopacua authored
55 $(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' $(top_srcdir)/run-tests.php $(TESTS)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
56
57 clean:
2405fcf Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names pe...
Sascha Schumann authored
58 find . -name \*.lo -o -name \*.o | xargs rm -f
d378a2c Remove space
Yasuo Ohgaki authored
59 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
60 find . -name \*.so | xargs rm -f
905f56f This does not work with AIX find..
foobar authored
61 find . -name .libs -a -type d|xargs rm -rf
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
62 rm -f libphp5.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a Please welcome the new build system.
Sascha Schumann authored
63
64 distclean: clean
3f700e5 update php module name to php5, not php4.
Sterling Hughes authored
65 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
2eaa0f6 @fujimoto cleaning up include files created by PHP_DEFINE when 'make distclean'ed
fujimoto authored
66 egrep define'.*include/php' configure|sed 's/.*>//'|xargs rm -f
9d9d39a Please welcome the new build system.
Sascha Schumann authored
67 find . -name Makefile | xargs rm -f
68
69 .PHONY: all clean install distclean test
70 .NOEXPORT:
Something went wrong with that request. Please try again.