mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
08df6f9b67
New FastCGI server module. Based on the thttpd server module with large chunks of code ripped from the cgi module. Also modifies Makefile.in and configure.in in order to make it build properly. # This initial checkin has been tested with the Zeus web server, # but should work with any server that has a correct FastCGI # implementation.
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
|
|
ZEND_DIR = $(srcdir)/Zend
|
|
SUBDIRS = Zend main ext sapi $(TSRM_DIR) $(REGEX_DIR) . $(PEAR_DIR)
|
|
|
|
LTLIBRARY_NAME = libphp4.la
|
|
LTLIBRARY_SOURCES = stub.c
|
|
|
|
LTLIBRARY_DEPENDENCIES = \
|
|
Zend/libZend.la \
|
|
sapi/$(PHP_SAPI)/libsapi.la \
|
|
main/libmain.la \
|
|
$(REGEX_LIB) \
|
|
$(EXT_LTLIBS) \
|
|
$(TSRM_LIB)
|
|
|
|
LTLIBRARY_LDFLAGS = -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)
|
|
LTLIBRARY_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS)
|
|
|
|
PROGRAM_NAME = php
|
|
PROGRAM_SOURCES = stub.c
|
|
PROGRAM_LDADD = libphp4.la $(EXT_PROGRAM_LDADD)
|
|
PROGRAM_LDFLAGS = -export-dynamic
|
|
PROGRAM_DEPENDENCIES = $(PROGRAM_LDADD)
|
|
|
|
targets = $(LTLIBRARY_NAME) $(PHP_PROGRAM)
|
|
|
|
install_targets = install-sapi install-modules
|
|
|
|
include $(top_srcdir)/build/rules.mk
|
|
include $(top_srcdir)/build/library.mk
|
|
include $(top_srcdir)/build/program.mk
|
|
|
|
install-sapi:
|
|
@$(LIBTOOL) --silent --mode=install cp libphp4.la $(phptempdir)/libphp4.la >/dev/null 2>&1
|
|
-@$(mkinstalldirs) $(bindir)
|
|
-@if test ! -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); then \
|
|
for i in 0.0.0 0.0 0; do \
|
|
if test -r $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i; then \
|
|
$(LN_S) $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp4.$(SHLIB_SUFFIX_NAME); \
|
|
break; \
|
|
fi; \
|
|
done; \
|
|
fi
|
|
$(INSTALL_IT)
|
|
|
|
install-modules:
|
|
@test -d modules && \
|
|
$(mkinstalldirs) $(moduledir) && \
|
|
echo "installing shared modules into $(moduledir)" && \
|
|
rm -f modules/*.la && \
|
|
cp modules/* $(moduledir) >/dev/null 2>&1 || true
|
|
|
|
install-su: install-modules
|
|
(cd pear && $(MAKE) install)
|
|
|
|
.NOEXPORT:
|