Source

php-src / Makefile.in

ZEND_DIR = $(srcdir)/Zend
SUBDIRS = Zend main ext sapi $(TSRM_DIR) $(REGEX_DIR) $(CLI_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) $(ZEND_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) $(INSTALL_ROOT)$(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) $(INSTALL_ROOT)$(moduledir) && \
	echo "installing shared modules into $(moduledir)" && \
	rm -f modules/*.la && \
	cp modules/* $(INSTALL_ROOT)$(moduledir) >/dev/null 2>&1 || true

install-tester:
	@echo "Installing regression tester"
	@$(mkinstalldirs) $(PEAR_INSTALLDIR)
	@$(INSTALL) -m 755 $(srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)

install-pear: install-modules
	(cd pear && $(MAKE) install)

install-su: install-pear install-tester

clean-modules:
	rm -f modules/*

.NOEXPORT:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.