summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-07-21 21:56:25 +0000
committerStig Bakken <ssb@php.net>1999-07-21 21:56:25 +0000
commitd9f52fe0a7c48f4536268a6b4374d5debdd73a3d (patch)
tree776b6913b37e488a1b6a5f5e3430862d25c40abd /Makefile.in
parent57323801f87f0481a0eba72c36f6cc182d411168 (diff)
downloadphp-git-d9f52fe0a7c48f4536268a6b4374d5debdd73a3d.tar.gz
First cut at standard way of making dynamically loadable extensions on UNIX.
Examples on how to test: ./configure --with-xml static ./configure --with-xml=/opt static ./configure --with-xml=shared shared ./configure --with-xml=shared,/opt shared The difference between these two is that when the extension is shared, it is not merged into libphpext.a. The shared extension is currently always built. I can't find a way to do just one or the other with automake/libtool, if someone has a clever idea, please come forward. :-) "make install" installs the .so (as well as a lot of other cruft) in $prefix/lib/php.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 8b5da2c8f7..994df7f50f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -65,6 +65,7 @@ APXS_LDFLAGS = $(EXTRA_LIBS) $(LIBS)
APXS_EXP = @APXS_EXP@
WARNING_LEVEL = @WARNING_LEVEL@
LEX_CFLAGS = -w$(WARNING_LEVEL) @LEX_CFLAGS@
+EXT_SHARED = @EXT_SHARED@
SOURCE = main.c internal_functions.c snprintf.c php3_sprintf.c \
configuration-parser.c configuration-scanner.c request_info.c \
@@ -170,7 +171,6 @@ distdir:
flex -Pcfg -oconfiguration-scanner.c -i configuration-scanner.l ;\
bison -p cfg -v -d configuration-parser.y -o configuration-parser.c
find $(distdir) -name CVS -o -name .cvsignore | xargs rm -rf
-
maintainer-clean-depend: maintainer-clean-depend-recursive
@@ -203,9 +203,16 @@ php_config.h.in: @MAINT@ stamp-h.in
stamp-h.in: configure.in aclocal.m4 acconfig.h
cd ${srcdir} && autoheader && touch ${srcdir}/stamp-h.in
-install: $(BINNAME)
+install: install-recursive $(BINNAME)
$(INSTALL_IT)
+install-recursive:
+ if test "$(EXT_SHARED)" != ""; then \
+ for dir in $(EXT_SHARED); do \
+ test -d ext/$$dir && (cd ext/$$dir; $(MAKE) install); \
+ done; \
+ fi
+
indent: clean
indent -v -kr -cli4 -ts4 \
-T pval -T HashTable -T Bucket -T Token -T TokenCache -T TokenCacheManager \