【发布时间】:2013-04-04 16:33:48
【问题描述】:
我的项目包含 c++ 文件和 c 文件,我想用 autotools 构建我的项目。
所以我创建了Makefile.am。我想知道是否可以将cpp 文件和c 文件一起放入_SOURCE 变量中
myprogram_SOURCES = \
file1.c \
file2.c \
file3.cpp
【问题讨论】:
我的项目包含 c++ 文件和 c 文件,我想用 autotools 构建我的项目。
所以我创建了Makefile.am。我想知道是否可以将cpp 文件和c 文件一起放入_SOURCE 变量中
myprogram_SOURCES = \
file1.c \
file2.c \
file3.cpp
【问题讨论】:
是的,您可以将 C 和 C++ 文件添加到 _SOURCES。
【讨论】: