"Fossies" - the Fresh Open Source Software Archive

Member "dbg-2.15.5/Makefile.global" (2 Aug 2006, 3114 Bytes) of package /linux/www/old/dbg-2.15.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
    2 INSTALL = $(top_srcdir)/build/shtool install -c
    3 INSTALL_DATA = $(INSTALL) -m 644
    4 
    5 DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
    6 COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
    7 
    8 
    9 all: $(all_targets) 
   10 	@echo
   11 	@echo "Build complete."
   12 	@echo "(It is safe to ignore warnings about tempnam and tmpnam)."
   13 	@echo
   14 	
   15 build-modules: $(PHP_MODULES)
   16 
   17 libphp5.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
   18 	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
   19 	-@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
   20 
   21 libs/libphp5.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
   22 	$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp5.so
   23 
   24 install: $(all_targets) $(install_targets)
   25 
   26 install-sapi: $(OVERALL_TARGET)
   27 	@echo "Installing PHP SAPI module:       $(PHP_SAPI)"
   28 	-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
   29 	-@if test ! -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); then \
   30 		for i in 0.0.0 0.0 0; do \
   31 			if test -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME).$$i; then \
   32 				$(LN_S) $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME).$$i $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); \
   33 				break; \
   34 			fi; \
   35 		done; \
   36 	fi
   37 	@$(INSTALL_IT)
   38 
   39 install-modules: build-modules
   40 	@test -d modules && \
   41 	$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
   42 	@echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/"
   43 	@rm -f modules/*.la >/dev/null 2>&1
   44 	@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
   45 
   46 install-tester:
   47 	@echo "Installing regression tester:     $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
   48 	@$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
   49 	@$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
   50 
   51 install-su: install-pear install-tester
   52 
   53 test: 
   54 	-@if test -x $(SAPI_CLI_PATH) && test ! -z $(SAPI_CLI_PATH); then \
   55 		TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
   56 		TEST_PHP_SRCDIR=$(top_srcdir) \
   57 		CC="$(CC)" \
   58 			$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' $(top_srcdir)/run-tests.php $(TESTS); \
   59 	else \
   60 		echo "ERROR: Cannot run tests without CLI sapi."; \
   61 	fi
   62 
   63 clean:
   64 	find . -name \*.lo -o -name \*.o | xargs rm -f
   65 	find . -name \*.la -o -name \*.a | xargs rm -f 
   66 	find . -name \*.so | xargs rm -f
   67 	find . -name .libs -a -type d|xargs rm -rf
   68 	rm -f libphp5.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
   69 
   70 distclean: clean
   71 	rm -f config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h php5.spec sapi/apache/libphp5.module buildmk.stamp
   72 	egrep define'.*include/php' $(top_srcdir)/configure|sed 's/.*>//'|xargs rm -f
   73 	find . -name Makefile | xargs rm -f
   74 
   75 .PHONY: all clean install distclean test
   76 .NOEXPORT: