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.
我的项目包含 c++ 文件和 c 文件,我想用 autotools 构建我的项目。
所以我创建了Makefile.am. 我想知道是否可以将cpp文件和c文件一起放入_SOURCE变量中
Makefile.am
cpp
c
_SOURCE
myprogram_SOURCES = \ file1.c \ file2.c \ file3.cpp
是的,您可以将 C 和 C++ 文件添加到_SOURCES.
_SOURCES