Use variable for MP-SPDZ path

This commit is contained in:
Sam A. 2023-03-29 17:01:39 +02:00
parent aa2de131be
commit 2e1740185a
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 7 additions and 5 deletions

View File

@ -1,14 +1,16 @@
MP_SPDZ_PATH := src/MP-SPDZ
all: patch deps
$(MAKE) -C src/MP_SPDZ all
$(MAKE) -C $(MP_SPDZ_PATH) all
patch:
-git -C src/MP_SPDZ apply ../../config.patch
-git -C $(MP_SPDZ_PATH) apply ../../config.patch
deps: patch
sudo apt install automake build-essential clang cmake git libntl-dev \
libsodium-dev libssl-dev libtool m4 python3 texinfo yasm
$(MAKE) -C src/MP_SPDZ boost
$(MAKE) -C src/MP_SPDZ libote mpir
$(MAKE) -C $(MP_SPDZ_PATH) boost
$(MAKE) -C $(MP_SPDZ_PATH) libote mpir
%:
$(MAKE) -C src/MP_SPDZ $@
$(MAKE) -C $(MP_SPDZ_PATH) $@