1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-12-27 21:07:53 +00:00

Move stuff into src folder

This commit is contained in:
Sam A. 2023-03-30 18:22:46 +02:00
parent f6af68f1c3
commit 90ac44f2fa
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
4 changed files with 8 additions and 6 deletions

View file

@ -1,10 +1,10 @@
MP_SPDZ_PATH := src/MP-SPDZ
MP_SPDZ_PATH := $(CURDIR)/MP-SPDZ
all: patch deps
$(MAKE) -C $(MP_SPDZ_PATH) all
patch:
-git -C $(MP_SPDZ_PATH) apply ../../config.patch
-git -C $(MP_SPDZ_PATH) apply $(CURDIR)/config.patch
deps: patch
sudo apt install automake build-essential clang cmake git libntl-dev \
@ -12,8 +12,10 @@ deps: patch
$(MAKE) -C $(MP_SPDZ_PATH) boost
$(MAKE) -C $(MP_SPDZ_PATH) libote mpir
%.mpc:
cd $(MP_SPDZ_PATH) && ./compile.py ../$@
%.mpc: _phony
python3 $(MP_SPDZ_PATH)/compile.py $@
%:
$(MAKE) -C $(MP_SPDZ_PATH) $@
.PHONY: _phony

View file

@ -148,6 +148,6 @@ class Matchmaker:
print('match', self.oram_type)
mm = Matchmaker(5, oram_type=OptimalORAM)
mm = Matchmaker(50, oram_type=OptimalORAM)
mm.init_easy()
mm.match()

View file

@ -2,5 +2,5 @@
MACHINE="$1"
shift
cd src/MP-SPDZ
cd MP-SPDZ
"./$MACHINE" "$@"