1
0
Fork 0
mirror of https://github.com/samsapti/bachelor-project.git synced 2024-11-22 12:57:56 +00:00

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

View file

@ -1,14 +1,16 @@
MP_SPDZ_PATH := src/MP-SPDZ
all: patch deps all: patch deps
$(MAKE) -C src/MP_SPDZ all $(MAKE) -C $(MP_SPDZ_PATH) all
patch: patch:
-git -C src/MP_SPDZ apply ../../config.patch -git -C $(MP_SPDZ_PATH) apply ../../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 \
libsodium-dev libssl-dev libtool m4 python3 texinfo yasm libsodium-dev libssl-dev libtool m4 python3 texinfo yasm
$(MAKE) -C src/MP_SPDZ boost $(MAKE) -C $(MP_SPDZ_PATH) boost
$(MAKE) -C src/MP_SPDZ libote mpir $(MAKE) -C $(MP_SPDZ_PATH) libote mpir
%: %:
$(MAKE) -C src/MP_SPDZ $@ $(MAKE) -C $(MP_SPDZ_PATH) $@