makefile中定义了.PHONY:clean clean: rm -f *.o math 但是不能正常使用:make

2025-03-25 02:49:31
推荐回答(3个)
回答(1):

你这个*.o不行吧,可以给一个变量例如objects赋值
objects=heart.o test.o main.o
后面用rm -f math $(objects)试试

回答(2):

rm -f math *.o

回答(3):

你的cc前面加tab了没?因该不可能啊