Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ## duoram
  2. # Copyright (C) 2020 duoram authors
  3. #
  4. # @file Makefile
  5. # @brief Makefile for compiling duoram
  6. #
  7. # @license GNU Public License (version 2); see LICENSE for full license text
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2 of the License, or
  12. # (at your option) any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License along
  20. # with this program; if not, write to the Free Software Foundation, Inc.,
  21. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  22. CXX = g++
  23. CXXFLAGS = -g -march=native -std=c++17 -Wall -pedantic -fopenmp -O3 -Wno-ignored-attributes -pthread
  24. LIBS = -lbsd
  25. FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DDEBUG
  26. all: setup duoram0 duoram1 p2
  27. setup: p2.cpp setup.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h
  28. $(CXX) $(CXXFLAGS) -o setup setup.cpp $(LIBS) -I.
  29. p2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h
  30. $(CXX) $(CXXFLAGS) -o p2 p2.cpp $(LIBS) $(FLAGS) -I.
  31. duoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h
  32. $(CXX) $(CXXFLAGS) -o duoram1 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=1 -I.
  33. duoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h
  34. $(CXX) $(CXXFLAGS) -o duoram0 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
  35. clean:
  36. rm p2 duoram0 duoram1 setup
  37. docs:
  38. doxygen Doxyfile
  39. .PHONY: directories