Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (51 sloc) 2.737 kb
9d9d39a0 »
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 »
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 »
2002-08-06 Fix the framework support
6 COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
9d9d39a0 »
2002-03-07 Please welcome the new build system.
7
8
9 all: $(all_targets)
10
11 build-modules: $(PHP_MODULES)
12
13 libphp4.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
6d80c191 »
2002-08-06 The link lines don't need any of $DEFS, $INCLUDES, $EXTRA_INCLUDES or
14 $(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 $@
9d9d39a0 »
2002-03-07 Please welcome the new build system.
15
676afb33 »
2002-03-30 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
16 libs/libphp4.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
5611c2fc »
2002-08-06 Support compiling and linking against Darwin / Mac OS X frameworks
17 $(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
676afb33 »
2002-03-30 Enable --with-apxs build on Mac OS X. We build an MH_BUNDLE instead of
18
e6e54605 »
2002-09-29 Follow Yasuo's suggestion and build sapi program's under the sapi-spe…
19 install: $(install_targets)
9d9d39a0 »
2002-03-07 Please welcome the new build system.
20
87a4bdca »
2002-04-28 Missing dependancies..
21 install-sapi: libphp4.la
bb0d7d6e »
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
22 @echo "Installing PHP SAPI module"
9d9d39a0 »
2002-03-07 Please welcome the new build system.
23 -@$(LIBTOOL) --silent --mode=install cp libphp4.la $(phptempdir)/libphp4.la >/dev/null 2>&1
24 -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
25 -@if test ! -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); then \
26 for i in 0.0.0 0.0 0; do \
27 if test -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i; then \
28 $(LN_S) $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); \
29 break; \
30 fi; \
31 done; \
32 fi
bb0d7d6e »
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
33 @$(INSTALL_IT)
9d9d39a0 »
2002-03-07 Please welcome the new build system.
34
2f492735 »
2002-06-27 Fix bug: #18008
35 install-modules: build-modules
9d9d39a0 »
2002-03-07 Please welcome the new build system.
36 @test -d modules && \
37 $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
bb0d7d6e »
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
38 echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
9d9d39a0 »
2002-03-07 Please welcome the new build system.
39 rm -f modules/*.la && \
40 cp modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
41
42 install-tester:
bb0d7d6e »
2002-07-03 - Let's be tad more verbose what's happening during 'make install'
43 @echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
9d9d39a0 »
2002-03-07 Please welcome the new build system.
44 @$(mkinstalldirs) $(PEAR_INSTALLDIR)
45 @$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
46
47 install-su: install-pear install-tester
48
5c35fad8 »
2002-09-29 Fix some typos
49 test: $(SAPI_CLI_PATH)
50 @TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
51 $(top_builddir)/$(SAPI_CLI_PATH) -c php.ini-dist $(top_srcdir)/run-tests.php $(TESTS)
9d9d39a0 »
2002-03-07 Please welcome the new build system.
52
53 clean:
2405fcf3 »
2002-09-30 Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names…
54 find . -name \*.lo -o -name \*.o | xargs rm -f
55 find . -name \*.la -o -name \*.a | xargs rm -f
56 find . -name \*.so | xargs rm -f
905f56fd »
2002-06-30 This does not work with AIX find..
57 find . -name .libs -a -type d|xargs rm -rf
5c35fad8 »
2002-09-29 Fix some typos
58 rm -f libphp4.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
9d9d39a0 »
2002-03-07 Please welcome the new build system.
59
60 distclean: clean
61 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
2eaa0f6e »
2002-08-13 cleaning up include files created by PHP_DEFINE when 'make distclean'ed
62 egrep define'.*include/php' configure|sed 's/.*>//'|xargs rm -f
9d9d39a0 »
2002-03-07 Please welcome the new build system.
63 find . -name Makefile | xargs rm -f
64
65 .PHONY: all clean install distclean test
66 .NOEXPORT:
Something went wrong with that request. Please try again.