zoukankan      html  css  js  c++  java
  • Linux中autoconf和automake生成makefile脚本


    一 过程

     

    二 脚本


      EXIT_VALUE
    =0
      
      
    # setp1
      autoscan
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo autoscan FAILED
        
    exit $EXIT_VALUE
      fi
      
      
    #step2
      
    rename configure.scan configure.in configure.scan
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo autoscan FAILED
        
    exit $EXIT_VALUE
      fi
      
      
    #step3
      rm -f configure
      
    find . -name "*.cache" -exec rm -rf {} \;
      
      libtoolize --force
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo libtoolize FAILED
        
    exit $EXIT_VALUE
      fi
      
      
    #step4
      aclocal
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo aclocal FAILED
        
    exit $EXIT_VALUE
      fi  
      
      
    #step5
      automake
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo automake FAILED
        
    exit $EXIT_VALUE
      fi

      
    #step6
      autoconf -f
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo autoconf FAILED
        
    exit $EXIT_VALUE
      fi

      
    #step7
      
    ./configure --enable-optimized=yes 
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo configure FAILED
        
    exit $EXIT_VALUE
      fi

      
    #step7
      make -j 
    4
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo make FAILED
        
    exit $EXIT_VALUE
      fi
      
      
    #step8
      make -j 
    4 install
      STATUS
    =$?
      
    if [ $STATUS -ne 0 ] ; then
        EXIT_VALUE
    =1
        
    echo make install FAILED
        
    exit $EXIT_VALUE
      fi

    exit $EXIT_VALUE

    三 参考

    http://www.cnblogs.com/itech/archive/2009/05/25/1488983.html

    完!


    作者:iTech
    微信公众号: cicdops
    出处:http://itech.cnblogs.com/
    github:https://github.com/cicdops/cicdops

  • 相关阅读:
    一文让你彻底了解卷积神经网络
    处理 3d 视频的简单理论基础
    ffmpeg 学习:000-概述和库的组成
    Linux 补丁 的简单使用: 制作补丁,打补丁,撤销补丁
    “反向传播算法”过程及公式推导
    机器学习:梯度下降算法原理讲解
    神经网络浅讲:从神经元到深度学习
    Git详解之安装
    Git详解之Git起步
    Git详解之协议/速度/安全
  • 原文地址:https://www.cnblogs.com/itech/p/1672114.html
Copyright © 2011-2022 走看看