Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 75 lines (59 sloc) 2.994 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)
0a837f8 @wez Better be sure to spell it out...
wez authored
10 @echo
39d03d8 MFH
foobar authored
11 @echo "Build complete."
67391df @wez No typo... its tmpnam in one place, tempnam in another...
wez authored
12 @echo "(It is safe to ignore warnings about tempnam and tmpnam)."
39d03d8 MFH
foobar authored
13 @echo
14
9d9d39a Please welcome the new build system.
Sascha Schumann authored
15 build-modules: $(PHP_MODULES)
16
17 libphp4.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 $@
9d9d39a Please welcome the new build system.
Sascha Schumann authored
19
676afb3 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
Marko Karppinen authored
20 libs/libphp4.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
5611c2f Support compiling and linking against Darwin / Mac OS X frameworks
Marko Karppinen authored
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/libphp4.so
676afb3 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
Marko Karppinen authored
22
e6e5460 Follow Yasuo's suggestion and build sapi program's under the sapi-spe…
Sascha Schumann authored
23 install: $(install_targets)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
24
87a4bdc Missing dependancies..
foobar authored
25 install-sapi: libphp4.la
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
26 @echo "Installing PHP SAPI module"
9d9d39a Please welcome the new build system.
Sascha Schumann authored
27 -@$(LIBTOOL) --silent --mode=install cp libphp4.la $(phptempdir)/libphp4.la >/dev/null 2>&1
28 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
29 -@if test ! -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); then \
30 for i in 0.0.0 0.0 0; do \
31 if test -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i; then \
32 $(LN_S) $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); \
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 && \
41 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
42 echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
9d9d39a Please welcome the new build system.
Sascha Schumann authored
43 rm -f modules/*.la && \
4fc8d54 MFH: Use $(INSTALL) for installing shared extensions.
foobar authored
44 $(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
9d9d39a Please welcome the new build system.
Sascha Schumann authored
45
46 install-tester:
bb0d7d6 - Let's be tad more verbose what's happening during 'make install'
foobar authored
47 @echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
0f2ae50 Add missing $(INSTALL_ROOT)
Sascha Schumann authored
48 @$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
49 @$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
50
51 install-su: install-pear install-tester
52
5c35fad Fix some typos
Sascha Schumann authored
53 test: $(SAPI_CLI_PATH)
54 @TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
e83ca7d fix make test for an external build dir setup
Stefan Esser authored
55 TEST_PHP_SRCDIR=$(top_srcdir) \
0c51c2b Fixed the bad MFH
foobar authored
56 CC="$(CC)" \
385729e Make sure we're not buffering stuff
Melvyn Sopacua authored
57 $(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
58
59 clean:
2bc6223 MFH fix for solaris find breakage
Sascha Schumann authored
60 find . -name \*.lo | xargs rm -f
61 find . -name \*.o | xargs rm -f
62 find . -name \*.la | xargs rm -f
63 find . -name \*.a | xargs rm -f
2405fcf Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names…
Sascha Schumann authored
64 find . -name \*.so | xargs rm -f
905f56f This does not work with AIX find..
foobar authored
65 find . -name .libs -a -type d|xargs rm -rf
5c35fad Fix some typos
Sascha Schumann authored
66 rm -f libphp4.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a Please welcome the new build system.
Sascha Schumann authored
67
68 distclean: clean
69 rm -f config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h php4.spec sapi/apache/libphp4.module buildmk.stamp
2eaa0f6 @fujimoto cleaning up include files created by PHP_DEFINE when 'make distclean'ed
fujimoto authored
70 egrep define'.*include/php' configure|sed 's/.*>//'|xargs rm -f
9d9d39a Please welcome the new build system.
Sascha Schumann authored
71 find . -name Makefile | xargs rm -f
72
73 .PHONY: all clean install distclean test
74 .NOEXPORT:
Something went wrong with that request. Please try again.