automake linux,Linux下automake软件编译与发布快速入门
生活随笔
收集整理的這篇文章主要介紹了
automake linux,Linux下automake软件编译与发布快速入门
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Linux下automake軟件編譯與發布快速入門
2008-04-22
eNet&Ciweek
進入編輯界面,輸入內容如下:
AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=simserver1 #軟件包名稱
simserver1_SOURCES=simserver1.cpp #源文件列表,如果有多個則用空格分開
LIBS += -lpthread #鏈接pthread庫
6.運行automake
執行automake --add-missing來產生Makefile.in。
$automake --add-missing
執行后應該生成Makefile.in文件.
7.運行configure生成Makefile
執行:
$./configure
8.執行make生成可執行文件
$make
執行后應該編譯輸出simserver1可執行文件.
make還有以下幾個命令:
make install可以將simserver1安裝到/usr/local/bin目錄下;
make clean可清除上次編譯結果
make dist可將代碼打包成packagename-ver.tar.gz文件
make distcheck用來檢查打包的軟件包是否正常。
您對本文或本站有任何意見,請在下方提交,謝謝!
總結
以上是生活随笔為你收集整理的automake linux,Linux下automake软件编译与发布快速入门的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 刺客信条奥德赛“忍无可忍”任务攻略
- 下一篇: android fragmentacti