.c 文件取为.o文件

$(xxx:%.c=%.o)

即可

例子:

$(ALLFILES:%.c=%.o)

原文地址:https://www.cnblogs.com/unixshell/p/3412403.html