下面这个例子表示了,把所有的[.c]文件都编译成[.o]文件. %.o : %.c $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ http://blog.sina.com.cn/s/blog_7c95e5850101b38b.html