2023-03-29 15:01:39 +00:00
|
|
|
MP_SPDZ_PATH := src/MP-SPDZ
|
|
|
|
|
2023-03-29 14:39:20 +00:00
|
|
|
all: patch deps
|
2023-03-29 15:01:39 +00:00
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) all
|
2023-03-24 19:04:26 +00:00
|
|
|
|
2023-03-24 19:13:53 +00:00
|
|
|
patch:
|
2023-03-29 15:01:39 +00:00
|
|
|
-git -C $(MP_SPDZ_PATH) apply ../../config.patch
|
2023-03-24 19:13:53 +00:00
|
|
|
|
|
|
|
deps: patch
|
2023-03-24 19:04:26 +00:00
|
|
|
sudo apt install automake build-essential clang cmake git libntl-dev \
|
|
|
|
libsodium-dev libssl-dev libtool m4 python3 texinfo yasm
|
2023-03-29 15:01:39 +00:00
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) boost
|
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) libote mpir
|
2023-03-24 18:52:02 +00:00
|
|
|
|
2023-03-29 15:03:00 +00:00
|
|
|
%.mpc:
|
|
|
|
cd $(MP_SPDZ_PATH) && ./compile.py ../$@
|
|
|
|
|
2023-03-24 18:52:02 +00:00
|
|
|
%:
|
2023-03-29 15:01:39 +00:00
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) $@
|