|
@@ -24,9 +24,9 @@
|
|
|
CXX = g++
|
|
|
CXXFLAGS = -g -march=native -std=c++17 -Wall -pedantic -fopenmp -O3 -Wno-ignored-attributes -pthread
|
|
|
LIBS = -lbsd
|
|
|
-FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DThreeParty -DDEBUG -DVERBOSE
|
|
|
-
|
|
|
-all: duoram0 duoram1 p2
|
|
|
+FLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DThreeParty
|
|
|
+DEBUGFLAGS = -DBOOST_ERROR_CODE_HEADER_ONLY -DThreeParty -DDEBUG -DVERBOSE
|
|
|
+all: duoram0 duoram1 p2 debugp2 debugduoram1 debugduoram0
|
|
|
|
|
|
p2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
|
|
|
$(CXX) $(CXXFLAGS) -o p2 p2.cpp $(LIBS) $(FLAGS) -I.
|
|
@@ -37,6 +37,14 @@ duoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h
|
|
|
duoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
|
|
|
$(CXX) $(CXXFLAGS) -o duoram0 duoram.cpp $(LIBS) $(FLAGS) -DPARTY=0 -I.
|
|
|
|
|
|
+debugp2: p2.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
|
|
|
+ $(CXX) $(CXXFLAGS) -o debugp2 p2.cpp $(LIBS) $(DEBUGFLAGS) -I.
|
|
|
+
|
|
|
+debugduoram1: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
|
|
|
+ $(CXX) $(CXXFLAGS) -o debugduoram1 duoram.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=1 -I.
|
|
|
+
|
|
|
+debugduoram0: duoram.cpp duoram-utils.h duoram-read.h duoram-write.h duoram-refresh.h readvectors.h
|
|
|
+ $(CXX) $(CXXFLAGS) -o debugduoram0 duoram.cpp $(LIBS) $(DEBUGFLAGS) -DPARTY=0 -I.
|
|
|
clean:
|
|
|
rm p2 duoram0 duoram1
|
|
|
|