From 01e4fd428d81ebdb263f876a03ba91b3c284c8fe Mon Sep 17 00:00:00 2001 From: Marcel Keller Date: Mon, 29 Oct 2018 15:23:16 +1100 Subject: [PATCH] Automatic compilation of SimpleOT. --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a2ec0212..9aa951e3 100644 --- a/Makefile +++ b/Makefile @@ -141,8 +141,8 @@ spdz2-offline.x: $(COMMON) $(FHEOFFLINE) spdz2-offline.cpp endif ifeq ($(USE_GF2N_LONG),1) -yao-player.x: $(YAO) $(COMMON) yao-player.cpp - $(CXX) $(CFLAGS) -o $@ $^ $(LDLIBS) $(LIBSIMPLEOT) +yao-player.x: $(YAO) $(COMMON) yao-player.cpp $(LIBSIMPLEOT) + $(CXX) $(CFLAGS) -o $@ $^ $(LDLIBS) endif yao-clean: @@ -157,5 +157,14 @@ replicated-bin-party.x: $(BMR) replicated-bin-party.cpp replicated-ring-party.x: replicated-ring-party.cpp $(PROCESSOR) $(COMMON) $(CXX) $(CFLAGS) -o $@ $^ $(LDLIBS) +$(LIBSIMPLEOT): SimpleOT/Makefile + $(MAKE) -C SimpleOT + +OT/BaseOT.o: SimpleOT/Makefile + $(CXX) $(CFLAGS) -MMD -c -o $@ $(@:.o=.cpp) + +SimpleOT/Makefile: + git submodule update --init SimpleOT + clean: -rm */*.o *.o */*.d *.d *.x core.* *.a gmon.out */*/*.o