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

CFLAGS = -O4
OBJS = printname.o first.o last.o

all: printname

.SUFFIXES: .c .o

.c.o:
	$(CC) $(CFLAGS) -c $*.c

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

first.o: fn.h
last.o: ln.h

clean:
	rm -f a.out core printname *.o