Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 72 lines (57 sloc) 2.979 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
9 all: $(all_targets)
f00fa47c » wez
2003-05-18 MFH 4.3; tell the users that the tmpnam stuff is ok.
10 @echo
6c4909aa » foobar
2003-05-14 Add friendly notice when build is really completed.
11 @echo "Build complete."
f00fa47c » wez
2003-05-18 MFH 4.3; tell the users that the tmpnam stuff is ok.
12 @echo "(It is safe to ignore warnings about tempnam and tmpnam)."
6c4909aa » foobar
2003-05-14 Add friendly notice when build is really completed.
13 @echo
14
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
15 build-modules: $(PHP_MODULES)
16
3f700e58 » Sterling Hughes
2003-03-29 update php module name to php5, not php4.
17 libphp5.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
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 $@
1b50ca4d » Sascha Schumann
2003-07-02 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of …
19 -@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
20
3f700e58 » Sterling Hughes
2003-03-29 update php module name to php5, not php4.
21 libs/libphp5.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/libphp5.so
676afb33 » Marko Karppinen
2002-03-30 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
23
6e9c28e1 » foobar
2003-06-29 Fixed bug #24363 (plain "./configure && make install" failed)
24 install: $(all_targets) $(install_targets)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
25
1b50ca4d » Sascha Schumann
2003-07-02 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of …
26 install-sapi: $(OVERALL_TARGET)
bb0d7d6e » foobar
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
27 @echo "Installing PHP SAPI module"
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
28 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
3f700e58 » Sterling Hughes
2003-03-29 update php module name to php5, not php4.
29 -@if test ! -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); then \
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
30 for i in 0.0.0 0.0 0; do \
3f700e58 » Sterling Hughes
2003-03-29 update php module name to php5, not php4.
31 if test -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME).$$i; then \
32 $(LN_S) $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); \
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
33 break; \
34 fi; \
35 done; \
36 fi
bb0d7d6e » foobar
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
37 @$(INSTALL_IT)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
38
2f492735 » foobar
2002-06-27 Fix bug: #18008
39 install-modules: build-modules
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
40 @test -d modules && \
41 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
bb0d7d6e » foobar
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
42 echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
43 rm -f modules/*.la && \
7b2fd2c6 » Sascha Schumann
2002-12-09 Use $(INSTALL) rather than cp to install modules.
44 $(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
45
46 install-tester:
bb0d7d6e » foobar
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
47 @echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
0f2ae501 » Sascha Schumann
2002-11-12 Add missing $(INSTALL_ROOT)
48 @$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
49 @$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
50
51 install-su: install-pear install-tester
52
5c35fad8 » Sascha Schumann
2002-09-29 Fix some typos
53 test: $(SAPI_CLI_PATH)
54 @TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
e83ca7dc » Stefan Esser
2002-10-22 fix make test for an external build dir setup
55 TEST_PHP_SRCDIR=$(top_srcdir) \
19ae16a6 » Derick Rethans
2003-01-02 - Fix "make test" when CC was set to something with a parameter
56 CC="$(CC)" \
63aa8acf » Melvyn Sopacua
2003-02-10 MFB: disable output buffering
57 $(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' $(top_srcdir)/run-tests.php $(TESTS)
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
58
59 clean:
2405fcf3 » Sascha Schumann
2002-09-30 Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names…
60 find . -name \*.lo -o -name \*.o | xargs rm -f
d378a2c9 » Yasuo Ohgaki
2002-09-30 Remove space
61 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…
62 find . -name \*.so | xargs rm -f
905f56fd » foobar
2002-06-30 This does not work with AIX find..
63 find . -name .libs -a -type d|xargs rm -rf
3f700e58 » Sterling Hughes
2003-03-29 update php module name to php5, not php4.
64 rm -f libphp5.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
65
66 distclean: clean
3f700e58 » Sterling Hughes
2003-03-29 update php module name to php5, not php4.
67 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
2eaa0f6e » fujimoto
2002-08-13 cleaning up include files created by PHP_DEFINE when 'make distclean'ed
68 egrep define'.*include/php' configure|sed 's/.*>//'|xargs rm -f
9d9d39a0 » Sascha Schumann
2002-03-07 Please welcome the new build system.
69 find . -name Makefile | xargs rm -f
70
71 .PHONY: all clean install distclean test
72 .NOEXPORT:
Something went wrong with that request. Please try again.