Makefile.am文件的撰写

来源:互联网 发布:淘宝产品推广方法 编辑:程序博客网 时间:2024/06/05 23:46
先建立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
原创粉丝点击