1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
ZEND_DIR = $(srcdir)/Zend
|
|
|
|
SUBDIRS = Zend ext sapi $(TSRM_DIR) $(REGEX_DIR) . $(PEAR_DIR)
|
|
|
|
|
|
|
|
LTLIBRARY_NAME = libphp4.la
|
2000-02-26 05:27:03 +08:00
|
|
|
|
1999-12-30 10:59:53 +08:00
|
|
|
LTLIBRARY_SOURCES = \
|
|
|
|
main.c internal_functions.c snprintf.c php_sprintf.c \
|
2000-02-11 04:24:28 +08:00
|
|
|
configuration-parser.c configuration-scanner.c \
|
1999-12-30 10:59:53 +08:00
|
|
|
safe_mode.c fopen-wrappers.c php_realpath.c alloca.c \
|
2000-05-18 03:12:51 +08:00
|
|
|
php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
|
2000-04-02 02:11:08 +08:00
|
|
|
strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c php_virtual_cwd.c
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
LTLIBRARY_DEPENDENCIES = \
|
|
|
|
Zend/libZend.la \
|
|
|
|
sapi/$(PHP_SAPI)/libsapi.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)
|
|
|
|
PROGRAM_SOURCES = stub.c
|
|
|
|
PROGRAM_LDADD = libphp4.la
|
|
|
|
PROGRAM_LDFLAGS = -export-dynamic
|
|
|
|
PROGRAM_DEPENDENCIES = $(PROGRAM_LDADD)
|
|
|
|
|
|
|
|
targets = $(LTLIBRARY_NAME) $(PROGRAM_NAME)
|
|
|
|
|
2000-05-03 12:51:11 +08:00
|
|
|
install_targets = install-sapi install-modules
|
2000-02-26 05:27:03 +08:00
|
|
|
|
2000-04-30 11:10:34 +08:00
|
|
|
include $(top_srcdir)/build/rules.mk
|
|
|
|
include $(top_srcdir)/build/library.mk
|
|
|
|
include $(top_srcdir)/build/program.mk
|
1999-12-30 10:59:53 +08:00
|
|
|
|
2000-05-03 12:51:11 +08:00
|
|
|
install-sapi:
|
2000-01-06 03:33:02 +08:00
|
|
|
@$(LIBTOOL) --silent --mode=install cp libphp4.la $(phptempdir)/libphp4.la >/dev/null 2>&1
|
1999-12-30 10:59:53 +08:00
|
|
|
-@$(mkinstalldirs) $(bindir)
|
|
|
|
$(INSTALL_IT)
|
|
|
|
|
2000-05-03 04:08:54 +08:00
|
|
|
install-modules:
|
|
|
|
@test -d modules && \
|
|
|
|
$(mkinstalldirs) $(moduledir) && \
|
|
|
|
echo "installing shared modules into $(moduledir)" && \
|
|
|
|
rm -f modules/*.la && \
|
|
|
|
cp modules/* $(moduledir) || true
|
|
|
|
|
2000-05-03 06:28:12 +08:00
|
|
|
install-su: install-modules
|
|
|
|
(cd pear && $(MAKE) install)
|
|
|
|
|
2000-03-30 08:43:09 +08:00
|
|
|
configuration-parser.h configuration-parser.c: $(srcdir)/configuration-parser.y
|
1999-12-30 10:59:53 +08:00
|
|
|
$(YACC) -p cfg -v -d $< -o configuration-parser.c
|
|
|
|
|
2000-03-30 08:43:09 +08:00
|
|
|
configuration-scanner.c: $(srcdir)/configuration-scanner.l
|
1999-12-30 10:59:53 +08:00
|
|
|
$(LEX) -Pcfg -o$@ -i $<
|
|
|
|
|
2000-03-07 04:37:11 +08:00
|
|
|
internal_functions.c: internal_functions.c.in config.status
|
|
|
|
CONFIG_FILES= CONFIG_HEADERS= ./config.status
|
|
|
|
|
1999-12-30 10:59:53 +08:00
|
|
|
.NOEXPORT:
|