Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些自动工具管理的项目。除了源代码文件,它还有 autogen.sh、configure.ac、Makefile.am、src/Makefile.am。
如果它是库或应用程序,如何查看这些文件?例如,在 Qt 中,我有“TEMPLATE = app”或“TEMPLATE = lib”来决定这一点。自动工具中有什么?
如何从生成可执行应用程序切换到生成库并返回?
在您的 Makefile.am 中,您应该有如下内容:
bin_PROGRAMS = foo (或 sbin 或其他取决于它的位置)
将其更改为:
lib_LTLIBRARIES = foo.la