how to write the makefile??

i want to compile lots of file .and the resource file for example a.c b.c c.c d.c
and so on
and i want compile these files to a , b , c ,d and so on .
how i write the makefile??
thanks a lot !

Have you tried reading: … /make.html

a: a.o

b: b.o

c: c.o

d: d.o

should do it.