# Compile with debug option and all warnings on. ------------ CXXFLAGS = -g -Wall -O1 -std=c++14 -I/opt/local/include LIBS = -L/opt/local/lib -lgmp -lgmpxx CXX = g++ # Object modules comprising this application ---------------- OBJ = BBSTest.o Tester.o bbs.o Blum.o # Build targets TARGETS = tester .PHONY: all clean all: $(TARGETS) tester: $(OBJ) $(CXX) -o $@ $(OBJ) $(LIBS) #------------------------------------------------------------ # For Problem 1: # Uncomment following lines to use my code bbs.o: osx/bbs.o -cp osx/bbs.o . # Uncomment following line to use your code ### bbs.o: bbs.cpp bbs.hpp #------------------------------------------------------------ #------------------------------------------------------------ # For Problem 2: # Uncomment following lines to use my code Blum.o: osx/Blum.o -cp osx/Blum.o . # Uncomment following line to use your code ### Blum.o: Blum.cpp Blum.hpp #------------------------------------------------------------ # Delete .o and exe files and force recompilation. ---------- clean: rm -f *.o $(TARGETS) # Dependencies ---------------------------------------------- BBSTest.o: BBSTest.cpp Tester.hpp Blum.hpp bbs.hpp Tester.o: Tester.cpp Tester.hpp Blum.hpp bbs.hpp