【转】android makefile文件分析
生活随笔
收集整理的這篇文章主要介紹了
【转】android makefile文件分析
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Makefile的規則如下:
target ... : prerequisites ...
command ... ...
target可以是一個目標文件,也可以是Object File(例如helloworld.obj),也可以是執行文件和標簽。
prerequisites就是生成target所需要的文件或是目標。
command也就是要達到target這個目標所需要執行的命令。
?
下面就是編譯helloworld的makefile。
| helloworld : helloworld.o ??? cc -o helloworld helloworld .o helloworld.o : helloworld.c ??? cc -c main.c clean: ??? rm helloworld helloworl.o |
轉自:http://blog.csdn.net/chief1985/article/details/4705123
轉載于:https://www.cnblogs.com/meizixiong/p/3276553.html
總結
以上是生活随笔為你收集整理的【转】android makefile文件分析的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用正则匹配多行文本
- 下一篇: Ruby:字符集和编码学习总结