Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. CXX = g++
  2. CXXFLAGS = -g -march=native -std=c++17 -Wall -pedantic -fopenmp -O3 -Wno-ignored-attributes -pthread
  3. LIBS = -lbsd
  4. FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DThreeParty
  5. DEBUGFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DThreeParty -DDEBUG -DVERBOSE
  6. TWOFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY
  7. all: duoram0 duoram1 p2 debugp2 debugduoram1 debugduoram0 2Pduoram1 2Pduoram0
  8. p2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  9. $(CXX) $(CXXFLAGS) -o p2 p2.cpp $(LIBS) $(FLAGS) -I.
  10. duoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  11. $(CXX) $(CXXFLAGS) -o duoram1 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=1 -I.
  12. duoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  13. $(CXX) $(CXXFLAGS) -o duoram0 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
  14. debugp2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  15. $(CXX) $(CXXFLAGS) -o debugp2 p2.cpp $(LIBS) $(DEBUGFLAGS) -I.
  16. debugduoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  17. $(CXX) $(CXXFLAGS) -o debugduoram1 duoram.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=1 -I.
  18. debugduoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  19. $(CXX) $(CXXFLAGS) -o debugduoram0 duoram.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=0 -I.
  20. 2Pduoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  21. $(CXX) $(CXXFLAGS) -o 2Pduoram1 duoram.cpp $(LIBS) $(TWOFLAGS) -DPARTY=1 -I.
  22. 2Pduoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  23. $(CXX) $(CXXFLAGS) -o 2Pduoram0 duoram.cpp $(LIBS) $(TWOFLAGS) -DPARTY=0 -I.
  24. clean:
  25. rm duoram0 duoram1 p2 debugp2 debugduoram1 debugduoram0 2Pduoram1 2Pduoram0
  26. docs:
  27. doxygen Doxyfile
  28. .PHONY: directories