Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 73 lines (53 sloc) 3.03 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)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
6 COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS)
7
8
9 all: $(all_targets)
10
11 build-modules: $(PHP_MODULES)
12
13 libphp4.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
65ae7c5 remove -module, it is added by configure.in
Sascha Schumann authored
14 $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(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
15
676afb3 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
Marko Karppinen authored
16 libs/libphp4.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
17 $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp4.so
18
9d9d39a Please welcome the new build system.
Sascha Schumann authored
19 php: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
27bf1db Somewhere along the build changes, -export-dynamic was lost.
Sascha Schumann authored
20 $(LIBTOOL) --mode=link $(CC) -export-dynamic $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(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
21
22 sapi/cli/php: $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS)
27bf1db Somewhere along the build changes, -export-dynamic was lost.
Sascha Schumann authored
23 $(LIBTOOL) --mode=link $(CC) -export-dynamic $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
9d9d39a Please welcome the new build system.
Sascha Schumann authored
24
25 install: $(install_targets)
26
27
87a4bdc Missing dependancies..
foobar authored
28 install-cli: sapi/cli/php
9d9d39a Please welcome the new build system.
Sascha Schumann authored
29 $(INSTALL_CLI)
30
87a4bdc Missing dependancies..
foobar authored
31 install-sapi: libphp4.la
9d9d39a Please welcome the new build system.
Sascha Schumann authored
32 -@$(LIBTOOL) --silent --mode=install cp libphp4.la $(phptempdir)/libphp4.la >/dev/null 2>&1
33 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
34 -@if test ! -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); then \
35 for i in 0.0.0 0.0 0; do \
36 if test -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i; then \
37 $(LN_S) $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); \
38 break; \
39 fi; \
40 done; \
41 fi
42 $(INSTALL_IT)
43
2f49273 Fix bug: #18008
foobar authored
44 install-modules: build-modules
9d9d39a Please welcome the new build system.
Sascha Schumann authored
45 @test -d modules && \
46 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
47 echo "installing shared modules into $(EXTENSION_DIR)" && \
48 rm -f modules/*.la && \
49 cp modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
50
51 install-tester:
52 @echo "Installing regression tester"
53 @$(mkinstalldirs) $(PEAR_INSTALLDIR)
54 @$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
55
56 install-su: install-pear install-tester
57
d404480 Update test target from rules.mk
Sascha Schumann authored
58 test: sapi/cli/php
f3a8a7d Fix make test and remove a warning
Sander Roobol authored
59 @TEST_PHP_EXECUTABLE=$(top_builddir)/sapi/cli/php \
c9872c9 Cleaned up run-tests.php, and fixed it on linux/unix
Sander Roobol authored
60 $(top_builddir)/sapi/cli/php -c php.ini-dist $(top_srcdir)/run-tests.php
9d9d39a Please welcome the new build system.
Sascha Schumann authored
61
62 clean:
d1c4ea7 - Let make clean follow symlinks (tested on Linux, IRIX, Solaris, Fre…
Derick Rethans authored
63 find . -follow -name \*.lo -o -name \*.o -o -name \*.la -o -name \*.a| xargs rm -f
64 find . -follow -name .libs -a -type d|xargs rm -rf
9d9d39a Please welcome the new build system.
Sascha Schumann authored
65 rm -f libphp4.la php sapi/cli/php modules/* libs/*
66
67 distclean: clean
68 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
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.