注意命令行前面是table
test: test.o fun.o
[table键]gcc -o test test.o fun.o
test.o: test.c
[table键]gcc -c test.c
fun.o: fun.c
[table键]gcc -c fun.c
g++ file1.cpp file2.cpp
注意命令行前面是table
test: test.o fun.o
[table键]gcc -o test test.o fun.o
test.o: test.c
[table键]gcc -c test.c
fun.o: fun.c
[table键]gcc -c fun.c
g++ file1.cpp file2.cpp