FILES = main.o phone.o CC = gcc CFLAGS = -g -Wall -ansi # The next line is invoked with "make phone" or just "make" phone: $(FILES) $(CC) -o phone $(FILES) # Although will be done automatically if needed, "make main.o" otherwise main.o: phone.h main.c gcc -g -Wall -ansi main.c # Illustrates the benefits of macros phone.o: phone.c phone.h $(CC) $(CFLAGS) phone.c