summaryrefslogtreecommitdiff
path: root/Makefile.global
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2002-09-29 02:45:25 +0000
committerEdin Kadribasic <edink@php.net>2002-09-29 02:45:25 +0000
commit946206f0d2c5fe3e422ead039e59888d57ffec21 (patch)
tree5c86caee9131fec766705fe4f710356eed3a916f /Makefile.global
parent0166a149168789732c2cbaa50ce1cb30bb08823e (diff)
downloadphp-git-946206f0d2c5fe3e422ead039e59888d57ffec21.tar.gz
Added php/embed toolkit for embedding PHP engine into C/C++ applications.
See my post to php-dev on the subject.
Diffstat (limited to 'Makefile.global')
-rw-r--r--Makefile.global11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.global b/Makefile.global
index 6541da6fe8..9446227117 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -22,8 +22,15 @@ php: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
sapi/cli/php: $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS)
$(BUILD_CLI)
-install: $(install_targets)
+libphp.la: $(PHP_LIB_OBJS)
+ $(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_LIB_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
+
+libphp.so: $(PHP_LIB_OBJS)
+ $(LIBTOOL) --mode=link $(CC) -shared -export-dynamic $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_LIB_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ .libs
+libs: libphp.la libphp.so
+
+install: $(install_targets)
install-cli: sapi/cli/php
@echo "Installing PHP CLI binary: $(INSTALL_ROOT)$(bindir)/"
@@ -62,7 +69,7 @@ test: sapi/cli/php
$(top_builddir)/sapi/cli/php -c php.ini-dist $(top_srcdir)/run-tests.php $(TESTS)
clean:
- find . -name \*.lo -o -name \*.o -o -name \*.la -o -name \*.a| xargs rm -f
+ find . -name \*.lo -o -name \*.o -o -name \*.la -o -name \*.a -o -name \*.so| xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp4.la php sapi/cli/php modules/* libs/*