Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. default: build preprocessing0 preprocessing1
  2. build: ot_blinds.cpp ot_blinds.h
  3. g++ -DECCLVL=251 -I ~/OTExtension/extern/ENCRYPTO_utils/src/ -I ~/OTExtension/ -O3 -DNDEBUG -std=gnu++17 -o ot_blinds.cpp.o -c ot_blinds.cpp
  4. g++ -O3 -DNDEBUG ot_blinds.cpp.o -o OT external/libaby.a external/libencrypto_utils.a -lstdc++fs external/libotextension.a external/libencrypto_utils.a external/librelic_s.a -lpthread -l boost_system -l boost_thread -l gmp -l gmpxx -l crypto
  5. debug: ot_blinds.cpp ot_blinds.h
  6. g++ -DECCLVL=251 -I ~/OTExtension/extern/ENCRYPTO_utils/src/ -I ~/OTExtension/ -O3 -g -std=gnu++17 -o ot_blinds.cpp.o -c ot_blinds.cpp
  7. g++ -O3 -g ot_blinds.cpp.o -o OT external/libaby.a external/libencrypto_utils.a -lstdc++fs external/libotextension.a external/libencrypto_utils.a external/librelic_s.a -lpthread -l boost_system -l boost_thread -l gmp -l gmpxx -l crypto
  8. #clean:
  9. # rm ot_blinds.cpp.o
  10. # rm OT
  11. CXX = g++
  12. CXXFLAGS = -g -march=native -std=c++17 -Wall -pedantic -fopenmp -O3 -Wno-ignored-attributes -pthread
  13. LIBS = -lbsd -lboost_system -lboost_thread -pthread
  14. FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY #-DDEBUG
  15. # OPENSSL_INCLUDE ?= -I/usr/include/openssl
  16. # CXXFLAGS += $(OPENSSL_INCLUDE)
  17. # OPENSSL_LIBS ?= -lcrypto
  18. # LIBS += $(OPENSSL_LIBS)
  19. #BINDIR = bin
  20. all: directories preprocessing0 preprocessing1
  21. preprocessing0: preprocessing.cpp #dpf++/dpf.h
  22. $(CXX) $(CXXFLAGS) -o preprocessing0 preprocessing.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
  23. preprocessing1: preprocessing.cpp #dpf++/dpf.h
  24. $(CXX) $(CXXFLAGS) -o preprocessing1 preprocessing.cpp $(LIBS) $(FLAGS) -DPARTY=1 -I.
  25. docs:
  26. doxygen Doxyfile
  27. .PHONY: directories
  28. directories: $(BINDIR)
  29. # $(BINDIR):
  30. # mkdir -p $(BINDIR)
  31. clean:
  32. rm -f preprocessing1 preprocessing0
  33. rm ot_blinds.cpp.o
  34. rm OT