Makefile个人学习笔记一

//test.cpp
#include <iostream>


int main()
{


   std::cout << "c++ I'm coming!" << std::endl;
   return 0;
}

Makefile内容:
all:test clean
test : test.o
        g++ -o test test.o


test.o : test.cpp
        g++ -o test.o -c test.cpp


clean:
        rm -rf test.o


猜你喜欢

转载自blog.csdn.net/abqchina/article/details/72722978