mirror of
https://github.com/samsapti/bachelor-project.git
synced 2024-11-25 14:27:54 +00:00
Move stuff into src folder
This commit is contained in:
parent
f6af68f1c3
commit
90ac44f2fa
|
@ -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
|
|
@ -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()
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
MACHINE="$1"
|
||||
shift
|
||||
cd src/MP-SPDZ
|
||||
cd MP-SPDZ
|
||||
"./$MACHINE" "$@"
|
Loading…
Reference in a new issue