加载中…
个人资料
smallcat
smallcat
  • 博客等级:
  • 博客积分:0
  • 博客访问:1,575
  • 关注人气:77
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

automake之helloworld

(2022-08-17 22:35:48)
mkdir helloworld
cd helloworld
vi helloworld.c //写入helloworld程序
autoscan //生成autoscan.log和configure.scan
mv configure.scan configure.ac
vi configure.ac //修改AC_INIT(helloworld, 1.0, huyao0107@gmail.com),加入AM_INIT_AUTOMAKE(helloworld),AC_OUTPUT(Makefile)
aclocal //生成aclocal.m4
autoconf //生成configure
autoheader //生成config.h.in
touch NEWS README Changelog AUTHORS
vi Makefile.am //写入AUTOMAKE_OPTIONS=foreign bin_PROGRAMS=helloworld helloworld_SOURCES=helloworld.c
automake --add-missing //生成Makefile.in
./configure //根据Makefile.in生成Makefile
make
./helloworld

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有