摘要:
linux下c编程中makefile是必须会的,我刚开始学,将我对makefile的理解记录下来。通常我们在windows下编写c程序,有各种ide工具为我们执行makefile工作但在linux下没有这些工具,编代码要靠你,测试要靠你,最后自动化编译设计也要靠你自己。所以我们要学会如何在linux下makefile。首先编写首先编写add.c文件, 1 #include "test.h" 2 #include 3 4 int add(int a, int b) 5 { 6 return a + b; 7 } 8 9 int main()10 {11 printf(&quo 阅读全文