CC=gcc CFLAGS=-Wall -O0 -g LDFLAGS=-lm all: appender reader generator sorter appender: appender.o tape.o record.o common.o reader: reader.o tape.o record.o common.o generator: generator.o sorter: sorter.o tape.o record.o heap.o common.o -include $(wildcard *.d) .c.o: $(CC) $(CFLAGS) -MMD -c $< -o $@ clean: rm *.o rm *.d