= Autotool 環境設定及範例筆記 = == 目標 == 將寫好的程式碼透過以下指令就可編譯.安裝及使用 {{{ #!text 1. ./configure 2. make 3. make install }}} === Step1. 工具取得及安裝 === 1. 工具取得 [ftp://ftp.ntu.edu.tw/gnu/autoconf/autoconf-2.68.tar.gz autoconf下載(v2.68)] 2. 安裝 === Step2. 編輯程式碼 === 1. 參考[http://markuskimius.wikidot.com/programming:tut:autotools:2 autotool tutorial][[BR]] 2. 新增hello.c 3. 編輯Makefile(註:指令前的空白為) * 步驟結束後目錄下會有以下檔案: hello.c hello Makefile === Step3. 執行autoconf === * 步驟結束後目錄下會有以下檔案: