最近我读了strongswan的源代码。我在一个Makefile.am里找到了这段脚本。我之前没见过plugin_LTLIBRARIES。我在网上找过了。大多数结果都是Makefile.am文件。是M4宏还是buildin变量?它的用途是什么?
if MONOLITHIC
noinst_LTLIBRARIES = libstrongswan-socket-default.la
else
plugin_LTLIBRARIES = libstrongswan-socket-default.la
endif发布于 2013-03-30 20:01:13
任何foo_PRIMARY形式的自动生成变量都会安装到$(foodir)中。可以在configure.ac中通过AC_SUBST设置$(plugindir)。
在处理Makefile.am时不使用m4。它们使用perl程序automake进行解析,因为构建Makefile.in模板所涉及的逻辑比直接的宏扩展要微妙得多。
https://stackoverflow.com/questions/15713738
复制相似问题