GNU make manual 翻译( 九十七)

继续翻译

   Although the default set of files to be searched for is `libNAME.so'
and `libNAME.a', this is customizable via the `.LIBPATTERNS' variable.
Each word in the value of this variable is a pattern string.  When a
prerequisite like `-lNAME' is seen, `make' will replace the percent in
each pattern in the list with NAME and perform the above directory
searches using each library filename.

   The default value for `.LIBPATTERNS' is `lib%.so lib%.a', which
provides the default behavior described above.

   You can turn off link library expansion completely by setting this
variable to an empty value.

尽管被搜索的缺省文件集合是 libNAME.so 和 libNAME.a ,但是这可以通过 .LIBPATTERNS 变量进行定制。在此变量中的每一个值都是一个模式字符串。当一个 -lNAME 在前提条件中被发现,make 将会把每个模式中的百分号用 NAME 替换,然后用每个库文件名,执行上述的目录搜索。

.LIBPATTERNS 的缺省值是 lib%.so lib%.a,这提供了上述的缺省行为。

你也可以关闭库扩展功能,如果你设置此变量为空值的话。

后文待续

posted @ 2012-09-20 09:26  健哥的数据花园  阅读(169)  评论(0编辑  收藏  举报