Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. default: build preprocessing0 preprocessing1 debugpreprocessing0 debugpreprocessing1
  2. CXX = g++
  3. CXXFLAGS = -g -march=native -std=c++17 -Wall -pedantic -fopenmp -O3 -Wno-ignored-attributes -pthread
  4. LIBS = -lbsd -lboost_system -lboost_thread -pthread
  5. FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY #-DDEBUG
  6. DEBUGFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DDEBUG
  7. build: ot_blinds.cpp ot_blinds.h
  8. g++ -DECCLVL=251 -I ~/OTExtension/extern/ENCRYPTO_utils/src/ -I ~/OTExtension/ -O3 -DNDEBUG -std=gnu++17 -o ot_blinds.o -c ot_blinds.cpp
  9. g++ -O3 -DNDEBUG ot_blinds.o -o OT -lstdc++fs -lotextension -lencrypto_utils -lrelic_s -lpthread -l boost_system -l boost_thread -l gmp -l gmpxx -l crypto
  10. debug: ot_blinds.cpp ot_blinds.h
  11. g++ -DECCLVL=251 -I ~/OTExtension/extern/ENCRYPTO_utils/src/ -I ~/OTExtension/ -O3 -g -std=gnu++17 -o ot_blinds.o -c ot_blinds.cpp
  12. g++ -O3 -g ot_blinds.o -o OT -lstdc++fs -lotextension -lencrypto_utils -lrelic_s -lpthread -l boost_system -l boost_thread -l gmp -l gmpxx -l crypto
  13. preprocessing0: preprocessing.cpp mpc.h block.h aes.h bitutils.h prg.h prg_aes_impl.h
  14. $(CXX) $(CXXFLAGS) -o preprocessing0 preprocessing.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
  15. preprocessing1: preprocessing.cpp mpc.h block.h aes.h bitutils.h prg.h prg_aes_impl.h
  16. $(CXX) $(CXXFLAGS) -o preprocessing1 preprocessing.cpp $(LIBS) $(FLAGS) -DPARTY=1 -I.
  17. debugpreprocessing0: preprocessing.cpp mpc.h block.h aes.h bitutils.h prg.h prg_aes_impl.h
  18. $(CXX) $(CXXFLAGS) -o debugpreprocessing0 preprocessing.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=0 -I.
  19. debugpreprocessing1: preprocessing.cpp mpc.h block.h aes.h bitutils.h prg.h prg_aes_impl.h
  20. $(CXX) $(CXXFLAGS) -o debugpreprocessing1 preprocessing.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=1 -I.
  21. docs:
  22. doxygen Doxyfile
  23. .PHONY: directories
  24. directories: $(BINDIR)
  25. # $(BINDIR):
  26. # mkdir -p $(BINDIR)
  27. clean:
  28. rm -f preprocessing1 preprocessing0
  29. rm ot_blinds.o
  30. rm OT