Makefile 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. CXX = g++
  2. CXXFLAGS = -g -march=native -std=c++17 -Wall -pedantic -fopenmp -O3 -Wno-ignored-attributes -pthread
  3. LIBS = -lbsd -lboost_system -lboost_thread -pthread
  4. FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY #-DDEBUG
  5. FLAGSDEBUG = -DBOOST_ERROR_CODE_HEADER_ONLY -DDEBUG
  6. FLAGSVERBOSE = -DBOOST_ERROR_CODE_HEADER_ONLY -DDEBUG -DVERBOSE
  7. # OPENSSL_INCLUDE ?= -I/usr/include/openssl
  8. # CXXFLAGS += $(OPENSSL_INCLUDE)
  9. # OPENSSL_LIBS ?= -lcrypto
  10. # LIBS += $(OPENSSL_LIBS)
  11. #BINDIR = bin
  12. all: directories preprocessing0 preprocessing1 p2preprocessing
  13. debug: debugpreprocessing0 debugpreprocessing1 debugp2preprocessing
  14. verbose: verbosepreprocessing0 verbosepreprocessing1 verbosep2preprocessing
  15. preprocessing0: preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  16. $(CXX) $(CXXFLAGS) -o preprocessing0 preprocessing.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
  17. preprocessing1: preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  18. $(CXX) $(CXXFLAGS) -o preprocessing1 preprocessing.cpp $(LIBS) $(FLAGS) -DPARTY=1 -I.
  19. p2preprocessing: p2preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  20. $(CXX) $(CXXFLAGS) -o p2preprocessing p2preprocessing.cpp $(LIBS) $(FLAGS) -I.
  21. debugpreprocessing0: preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  22. $(CXX) $(CXXFLAGS) -o debugpreprocessing0 preprocessing.cpp $(LIBS) $(FLAGSDEBUG) -DPARTY=0 -I.
  23. debugpreprocessing1: preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  24. $(CXX) $(CXXFLAGS) -o debugpreprocessing1 preprocessing.cpp $(LIBS) $(FLAGSDEBUG) -DPARTY=1 -I.
  25. debugp2preprocessing: p2preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  26. $(CXX) $(CXXFLAGS) -o debugp2preprocessing p2preprocessing.cpp $(LIBS) $(FLAGSDEBUG) -I.
  27. verbosepreprocessing0: preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  28. $(CXX) $(CXXFLAGS) -o verbosepreprocessing0 preprocessing.cpp $(LIBS) $(FLAGSVERBOSE) -DPARTY=0 -I.
  29. verbosepreprocessing1: preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  30. $(CXX) $(CXXFLAGS) -o verbosepreprocessing1 preprocessing.cpp $(LIBS) $(FLAGSVERBOSE) -DPARTY=1 -I.
  31. verbosep2preprocessing: p2preprocessing.cpp block.h bitutils.h prg_aes_impl.h prg.h dpfgen.h mpc.h share-conversion.h aes.h filesio.h #dpf++/dpf.h
  32. $(CXX) $(CXXFLAGS) -o verbosep2preprocessing p2preprocessing.cpp $(LIBS) $(FLAGSVERBOSE) -I.
  33. docs:
  34. doxygen Doxyfile
  35. .PHONY: directories
  36. directories: $(BINDIR)
  37. # $(BINDIR):
  38. # mkdir -p $(BINDIR)
  39. clean:
  40. rm -f p2preprocessing preprocessing1 preprocessing0 verbosepreprocessing0 verbosepreprocessing1 verbosep2preprocessing debugpreprocessing0 debugpreprocessing1 debugp2preprocessing