dynlib.m4

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· M4 代码 · 共 89 行

M4
89
字号
#  +----------------------------------------------------------------------+#  | PHP Version 4                                                        |#  +----------------------------------------------------------------------+#  | Copyright (c) 1997-2002 The PHP Group                                |#  +----------------------------------------------------------------------+#  | This source file is subject to version 2.02 of the PHP license,      |#  | that is bundled with this package in the file LICENSE, and is        |#  | available at through the world-wide-web at                           |#  | http://www.php.net/license/2_02.txt.                                 |#  | If you did not receive a copy of the PHP license and are unable to   |#  | obtain it through the world-wide-web, please send a note to          |#  | license@php.net so we can mail you a copy immediately.               |#  +----------------------------------------------------------------------+#  | Author: Sascha Schumann <sascha@schumann.cx>                         |#  +----------------------------------------------------------------------+## $Id: dynlib.m4,v 1.9 2002/02/28 08:25:27 sebastian Exp $ #AC_DEFUN(LIB_SHARED_CONVENIENCE,[  lib_target="\$(LTLIBRARY_NAME)"  cat >>$1<<EOF\$(LTLIBRARY_NAME): \$(LTLIBRARY_SHARED_OBJECTS) \$(LTLIBRARY_DEPENDENCIES)	\$(SHARED_LIBTOOL) --mode=link \$(COMPILE) \$(LDFLAGS) -o \[$]@ \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_SHARED_LIBADD)EOF])AC_DEFUN(LIB_SHARED_MODULE,[  lib_target="\$(LTLIBRARY_SHARED_NAME)"  cat >>$1<<EOF\$(LTLIBRARY_SHARED_NAME): \$(LTLIBRARY_SHARED_OBJECTS) \$(LTLIBRARY_DEPENDENCIES)	\$(SHARED_LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) -o \[$]@ -avoid-version -module -rpath \$(phplibdir) \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_SHARED_LIBADD)	\$(SHARED_LIBTOOL) --mode=install cp \[$]@ \$(phplibdir)EOF])AC_DEFUN(LIB_STATIC_CONVENIENCE,[  lib_target="\$(LTLIBRARY_NAME)"  cat >>$1<<EOF\$(LTLIBRARY_NAME): \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_DEPENDENCIES)	\$(LINK) \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_LIBADD)EOF])dnl LIB_BUILD(path, shared, convenience)dnl sets up path to build a shared/static convenience/moduleAC_DEFUN(LIB_BUILD,[  lib_makefile="$1/libs.mk"  lib_target=""    $php_shtool mkdir -p $1  if test "$BSD_MAKEFILE" = "yes"; then    lib_include_conf=".include \"\$(top_builddir)/config_vars.mk\""  else    lib_include_conf="include \$(top_builddir)/config_vars.mk"  fi  cat >$lib_makefile<<EOF$lib_include_confLTLIBRARY_OBJECTS = \$(LTLIBRARY_SOURCES:.c=.lo) \$(LTLIBRARY_OBJECTS_X)LTLIBRARY_SHARED_OBJECTS = \$(LTLIBRARY_OBJECTS:.lo=.slo)EOF  if test "$2" = "shared" || test "$2" = "yes"; then    lib_build_shared=yes    if test -n "$3"; thendnl ---------------------------------------- Shared Convenience      LIB_SHARED_CONVENIENCE($lib_makefile)    elsednl ---------------------------------------- Shared Module      LIB_SHARED_MODULE($lib_makefile)    fi  elsednl ---------------------------------------- Static Convenience = Static Module    LIB_STATIC_CONVENIENCE($lib_makefile)  fidnl ---------------------------------------- Generate build targets  if test -n "$lib_target"; then    cat >>$lib_makefile<<EOFtargets = $lib_targetEOF  fi])

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?