重建汽车制造项目的快速帮助

Quick help in rebuilding an automake project

本文关键字:帮助 项目 汽车 制造 重建      更新时间:2023-10-16

我得到了一个项目的源代码(我再也联系不到作者了),它使用automake。我对系统不熟悉,我只想重建这个项目。

我在项目中有以下文件:

Makefile.am
Makefile.in
Makefile

我已经修改了Makefile。我的文件,以适应我的系统上的路径,但我应该如何运行它生成Makefile。

注意:我目前对学习汽车制造不感兴趣,只是重新编译这个项目。

要引导autoconf build-system,可以使用

 $ autoreconf -fiv

,它将根据需要调用automake, aclocal, autoheaders,并生成configure脚本。在那之后你可以做通常的

 $ ./configure && make && make install 

由milos_ladni提出

,但你肯定需要configure.ac(或configure.in,如果它是一个老项目),否则项目只是缺少一些核心部分。

如果缺少这些,您可以尝试直接修改Makefile(祝您好运),但是仅仅重新创建配置可能更容易。Ac从头开始(希望项目没有太多依赖)

$ ./configure——prefix=some_directory

使美元

$ make install

http://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html AP05