@寫完基本的程式後
hello.m
#import <stdio.h>
int main(int argc,const char *argv[])
{
printf("hello world\n");
return 0;
}
step 1.
>>autoscan
會產生 configure.scan
step 2.
>>mv configure.scan configure.in
修改configure.in的內容,並且加入(修改)下面四行
AM_INIT_AUTOMAKE(jeffrey,1.0)
AC_PROG_OBJC
AM_CONDITIONAL([am__fastdepOBJC], false)
AC_OUTPUT(Makefile)
step 3.
執行下面兩行
>>aclocal
>>autoconf
會分別產生aclocal.m4 以及configure
step 4.
開始編寫Makefile.am簡單範例如下
AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=demo0
demo0_SOURCES= hello.m
step 5.
>>autoheader
會產生 config.h.in
step 6.
>>automake --add-missing
automake 會根據 Makefile.am ,同時 scan configure.in 檔,來產生對應的Makefile.in
並且產生下面三個檔案
configure.in:6: installing `./install-sh'
configure.in:6: installing `./missing'
Makefile.am: installing `./depcomp'
step 7.
>>./configure
會產生Makefile
step 8.
>>make
產生demo0
分享到:
相关推荐
ubuntu20.04离线dpkg安装automake
免费下载 automake-1.16.1.tar.xz_FreeDownload.zip 文件后,解压此文件即可得到 automake-1.16.1.tar.xz源文件。
automake 是linux下的自动生成makefile的工具。需要配合auroconf使用 版本:automake-1.9.6.tar.tar
autoconf automake 轻松入门
autoconf和automake
GNU官方的Automake教程,国内的Automake教程大多过时并且抽象,官方教程从零开始,可帮助初学者快速了解Automake的基础知识,熟练驾驭开源项目的automake
依次执行命令:aclocal,libtoolize -f -c,autoconf,automake --add-missing,./configure,make。 3、cd */project/swap 依次执行命令:aclocal,autoconf,automake --add-missing,./configure,make。 4、cd *...
AutoMake使用总结,如何使用AutoMake!
automake和autoconf英文手册,automake和autoconf英文手册
automake的一个完整例子。 研究automake的例子。当然也包括autoconf。
automake 1.11版本 automake 1.11版本 automake 1.11版本
轻松学automake.pdf—— automake及开源项目软件工程中文基础教程,很实用!
automake-1.11.3.tar.xz
GNU automake documentation file
如何使用automake,如何通过automake构建一个源代码工程
automake 可以生成两个执行程序:main 和main2 一个automake生成多个执行程序
automake 工具链使用, 有利于makefile的生成
automake-1.9.5-mingwPORT
使用AutoMake轻松生成Makefile
automake 中文用户手册 GNU Automake For version 1.3, 3 April 1998