Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 -DThreeParty
  26. DEBUGFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DThreeParty -DDEBUG -DVERBOSE
  27. all: duoram0 duoram1 p2 debugp2 debugduoram1 debugduoram0
  28. p2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  29. $(CXX) $(CXXFLAGS) -o p2 p2.cpp $(LIBS) $(FLAGS) -I.
  30. duoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  31. $(CXX) $(CXXFLAGS) -o duoram1 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=1 -I.
  32. duoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  33. $(CXX) $(CXXFLAGS) -o duoram0 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
  34. debugp2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  35. $(CXX) $(CXXFLAGS) -o debugp2 p2.cpp $(LIBS) $(DEBUGFLAGS) -I.
  36. debugduoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  37. $(CXX) $(CXXFLAGS) -o debugduoram1 duoram.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=1 -I.
  38. debugduoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
  39. $(CXX) $(CXXFLAGS) -o debugduoram0 duoram.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=0 -I.
  40. clean:
  41. rm p2 duoram0 duoram1
  42. docs:
  43. doxygen Doxyfile
  44. .PHONY: directories