# Simple example makefile. # This is a C program made up of two modules, # that each rely on different headers. printname: printname.o first.o last.o cc -o printname printname.o first.o last.o printname.o: printname.c cc -c printname.c first.o: fn.h first.c cc -c first.c last.o: ln.h last.c cc -c last.c clean: rm -f a.out core printname *.o