CC = gcc CFLAGS = -g -pg PROGS = words freq SRCS = words.c freq-list.c freq.c FREQOBJS= freq-list.o freq.o all: $(PROGS) words: words.c $(CC) $(CFLAGS) -o words words.c freq: $(FREQOBJS) freq-list.o freq.o gcc $(CFLAGS) -o freq $(FREQOBJS) freq-list.o: freq-list.h freq-list.c freq.o: freq-list.h freq-list.c clean: rm -f $(PROGS) $(FREQOBJS)