如何写makefile??

我有很多的原文件例如a.c b.c c.c d.c 等
我想用makefile 完成编译生成a b c d 等
如何实现?
谢谢!!