mirror of
https://github.com/samsapti/bachelor-project.git
synced 2024-11-22 12:57:56 +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
|
all: patch deps
|
||||||
$(MAKE) -C $(MP_SPDZ_PATH) all
|
$(MAKE) -C $(MP_SPDZ_PATH) all
|
||||||
|
|
||||||
patch:
|
patch:
|
||||||
-git -C $(MP_SPDZ_PATH) apply ../../config.patch
|
-git -C $(MP_SPDZ_PATH) apply $(CURDIR)/config.patch
|
||||||
|
|
||||||
deps: patch
|
deps: patch
|
||||||
sudo apt install automake build-essential clang cmake git libntl-dev \
|
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) boost
|
||||||
$(MAKE) -C $(MP_SPDZ_PATH) libote mpir
|
$(MAKE) -C $(MP_SPDZ_PATH) libote mpir
|
||||||
|
|
||||||
%.mpc:
|
%.mpc: _phony
|
||||||
cd $(MP_SPDZ_PATH) && ./compile.py ../$@
|
python3 $(MP_SPDZ_PATH)/compile.py $@
|
||||||
|
|
||||||
%:
|
%:
|
||||||
$(MAKE) -C $(MP_SPDZ_PATH) $@
|
$(MAKE) -C $(MP_SPDZ_PATH) $@
|
||||||
|
|
||||||
|
.PHONY: _phony
|
|
@ -148,6 +148,6 @@ class Matchmaker:
|
||||||
print('match', self.oram_type)
|
print('match', self.oram_type)
|
||||||
|
|
||||||
|
|
||||||
mm = Matchmaker(5, oram_type=OptimalORAM)
|
mm = Matchmaker(50, oram_type=OptimalORAM)
|
||||||
mm.init_easy()
|
mm.init_easy()
|
||||||
mm.match()
|
mm.match()
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
MACHINE="$1"
|
MACHINE="$1"
|
||||||
shift
|
shift
|
||||||
cd src/MP-SPDZ
|
cd MP-SPDZ
|
||||||
"./$MACHINE" "$@"
|
"./$MACHINE" "$@"
|
Loading…
Reference in a new issue