作家
登录

Linux下使用autoconf和automake生成Makefile

作者: 来源: 2017-09-12 10:24:24 阅读 我要评论

  • checking for gawk gawk 
  •  
  • checking whether make sets $(MAKE) yes 
  •  
  • checking for gcc gcc 
  •  
  • checking for C compiler default output a.out 
  •  
  • checking whether the C compiler works yes 
  •  
  • checking whether we are cross compiling no 
  •  
  • checking for suffix of executables 
  •  
  • checking for suffix of object files o 
  •  
  • checking whether we are using the GNU C compiler yes 
  •  
  • checking whether gcc accepts -g yes 
  •  
  • checking for gcc option to accept ANSI C none needed 
  •  
  • checking for style of include used by make GNU 
  •  
  • checking dependency style of gcc gcc3 
  •  
  • configure: creating ./config.status 
  •  
  • config.status: creating Makefile 
  •  
  • config.status: executing depfiles commands 
  •  
  • $ ls -l Makefile 
  •  
  • -rw-rw-r-- 1 yutao yutao 15035 Oct 15 10:40 Makefile  
  • 你可以看到,此时Makefile已经产生出来了。

    9、应用Makefile编译代码

    Code

    1. $ make 
    2.  
    3. if gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" - 
    4.  
    5. DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="helloworld" -DVERSION="1.0" 
    6.  
    7. -I. -I. -g -O2 -MT helloworld.o -MD -MP -MF ".deps/helloworld.Tpo" 
    8.  
    9. -c -o helloworld.o `test -f 'helloworld.c' || echo './'`helloworld.c; 
    10.  
    11. then mv -f ".deps/helloworld.Tpo" ".deps/helloworld.Po"
    12.  

    13.   推荐阅读

        MySQL主从同步那点事儿

      51CTO诚邀您9月23号和秒拍/国美/美团元专家一路聊智能CDN的优化之路,抓紧时光哦! 一、媒介关于mysql主大年夜同步,信赖大年夜家都不陌生,跟着体系应用拜访量逐渐增大年夜,单台数据库读>>>详细阅读


      本文标题:Linux下使用autoconf和automake生成Makefile

      地址:http://www.17bianji.com/lsqh/37331.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)