blob: eee0959b33e2272d61998a66d41b3fffdca79dfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
install_targets = install-data-local install-headers install-build
include $(top_srcdir)/build/rules.mk
peardir=$(prefix)/lib/php
pear_DBdir=$(prefix)/lib/php/DB
pear_Filedir=$(prefix)/lib/php/File
install-data-local:
-@$(mkinstalldirs) $(peardir) $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/DB.php $(peardir) && \
$(INSTALL_DATA) $(srcdir)/DB/common.php $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/DB/odbc.php $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/DB/mysql.php $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/DB/mssql.php $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/DB/pgsql.php $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/DB/storage.php $(pear_DBdir) && \
$(INSTALL_DATA) $(srcdir)/HTTP.php $(peardir) && \
$(INSTALL_DATA) $(srcdir)/File/Find.php $(pear_Filedir)
phpincludedir = $(includedir)/php
builddir = $(prefix)/lib/php/build
BUILD_FILES = \
pear/pear.m4 \
build/fastgen.sh \
build/library.mk \
build/ltlib.mk \
build/program.mk \
build/rules.mk \
build/rules_pear.mk \
build/dynlib.mk \
build/shtool \
dynlib.m4 \
acinclude.m4
install-build:
-@$(mkinstalldirs) $(builddir) $(bindir) && \
(cd $(top_srcdir) && cp $(BUILD_FILES) $(builddir)) && \
echo "creating phpize" && \
sed \
-e 's#@PREFIX@#$(prefix)#' \
< $(srcdir)/phpize.in > $(bindir)/phpize.tmp && \
chmod +x $(bindir)/phpize.tmp && \
mv $(bindir)/phpize.tmp $(bindir)/phpize && \
echo "creating php-config" && \
sed \
-e 's#@PREFIX@#$(prefix)#' \
-e 's#@PHPINCLUDEDIR@#$(phpincludedir)#g' \
< $(srcdir)/php-config.in > $(bindir)/php-config.tmp && \
chmod +x $(bindir)/php-config.tmp && \
mv $(bindir)/php-config.tmp $(bindir)/php-config && \
cp $(srcdir)/phpextdist $(bindir)/phpextdist
HEADER_DIRS = \
/ \
Zend \
TSRM \
ext/standard \
regex
install-headers:
-@for i in $(HEADER_DIRS); do \
paths="$$paths $(phpincludedir)/$$i"; \
done; \
$(mkinstalldirs) $$paths && \
echo "creating header file hierarchy" && \
for i in $(HEADER_DIRS); do \
cd $(top_srcdir)/$$i && cp -p *.h $(phpincludedir)/$$i; \
cd $(top_builddir)/$$i && cp -p *.h $(phpincludedir)/$$i; \
done
|