# Simple example makefile.  
# This is a C program made up of two modules,
# that each rely on different headers.

OBJS = printname.o first.o last.o

printname: $(OBJS)
	$(CC) -o printname $(OBJS)

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
