Tag: build automation

C / C ++,FORTRAN,下划线和GNU Autotools

我有一个关于使用gcc和gfortran的混合语言编程(C / C ++和FORTRAN)的问题。 我搜索了很多“用语言X混合fortran”并且无法解决这个问题。 我不确定这是链接问题还是编译器问题,或两者兼而有之。 我创建了三个文件,我使用GNU Autotools构建原始应用程序,但应该能够独立于命令行构建应用程序。 C文件(main.c)将是驱动应用程序,它调用几个FORTRAN函数: /* this is a simple program */ #include /* add the extern function definition */ #include “fooonly.h” // this is not working for the mixed language programming stuff yet… /* this is the main program section */ int main( int argc, char *argv[] ) { int […]

在项目中没有Makefile.am的Makefile.in

在几个项目中,我看过没有Makefile.am的Makefile.in。 例如bash http://git.savannah.gnu.org/cgit/bash.git/tree/和dtach http://dtach.cvs.sourceforge.net/viewvc/dtach/dtach/ 我一直认为Makefile.in是由automake生成的。 另外,Makefile.am是用户编写的文件,我不认为它会从代码库中省略。 在bash源代码树中,Makefile.in太大而无法手写,而dtach中的Makefile.in也会生成。 Makefile.in是如何在这两个项目中生成的?