本文介绍了自动生成子目录-对象已禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用Automake时遇到以下错误。我知道您可以将AUTOMAKE_OPTIONS=subdir-Objects"放在Makefile.am的顶部。但我如何为所有文件设置此行为,这样我就不需要逐个执行此操作?
Makefile.am:454: warning: source file 'libs/esl/src/esl_threadmutex.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
Makefile.am:454: warning: source file 'libs/esl/ivrd.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
Makefile.am:454: warning: source file 'libs/esl/src/esl_json.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
Makefile.am:454: warning: source file 'libs/esl/src/esl_buffer.c' is in a subdirectory,
Makefile.am:454: but option 'subdir-objects' is disabled
tests/unit/unit.mk:6: warning: source file 'tests/unit/switch_event.c' is in a subdirectory,
tests/unit/unit.mk:6: but option 'subdir-objects' is disabled
Makefile.am:854: 'tests/unit/unit.mk' included from here
tests/unit/unit.mk:13: warning: source file 'tests/unit/switch_hash.c' is in a subdirectory,
tests/unit/unit.mk:13: but option 'subdir-objects' is disabled
Makefile.am:854: 'tests/unit/unit.mk' included from here
Makefile.am:441: warning: source file 'src/tone2wav.c' is in a subdirectory,
Makefile.am:441: but option 'subdir-objects' is disabled
Makefile.am: installing 'build/config/depcomp'
推荐答案
不是"逐个"添加的,因为AUTOMAKE_OPTIONS
适用于整个项目。这也是它在未来应该被使用的唯一方式,因此有警告;目前它是选择加入的。
您也可以使用AM_INIT_AUTOMAKE
在configure.ac
中设置此选项,请参阅Autotools Mythbuster(完全公开:我是作者)以了解您可以使用的全套汽车制作选项。
这篇关于自动生成子目录-对象已禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!