# compiler CC = g++ # compiler flags CFLAGS = -Wall -Werror # make first entry first all: main run: all ./main main: address.o date.o student.o $(CC) $(CFLAGS) -o main Main.cpp address.o date.o student.o address.o: Address.cpp Address.h $(CC) $(CFLAGS) -c Address.cpp -o address.o date.o: Date.cpp Date.h $(CC) $(CFLAGS) -c Date.cpp -o date.o student.o: Student.cpp Student.h $(CC) $(CFLAGS) -c Student.cpp -o student.o clean: rm main address.o date.o student.o fullReport.txt shortReport.txt alphaReport.txt