Makefile.am文件的撰寫

先建立Makefile.am和configure.in文件,從其他項目拷貝後進行修改

動態庫的Makefile文件生成:
執行命令:
aclocal
libtoolize -f -c
autoconf
automake --add-missing
./configure 或者 ./configure --host=mipsel-linux


可執行程序的Makefile文件生成:
執行命令:
aclocal
autoconf
automake --add-missing
./configure 或者 ./configure --host=mipsel-linux


設置當前目錄爲庫的搜索目錄
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章