2023-03-30 16:22:46 +00:00
|
|
|
MP_SPDZ_PATH := $(CURDIR)/MP-SPDZ
|
2023-03-29 15:01:39 +00:00
|
|
|
|
2023-05-14 16:29:07 +00:00
|
|
|
all: config deps ssl
|
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) semi2k-party.x
|
2023-03-24 19:04:26 +00:00
|
|
|
|
2023-05-14 16:29:07 +00:00
|
|
|
config:
|
|
|
|
cp -f $(CURDIR)/CONFIG.mine $(MP_SPDZ_PATH)/CONFIG.mine
|
2023-03-24 19:13:53 +00:00
|
|
|
|
2023-05-14 19:35:16 +00:00
|
|
|
deps: config
|
|
|
|
sudo apt install -y automake build-essential clang cmake git libgmp-dev \
|
2023-05-14 20:35:05 +00:00
|
|
|
libntl-dev libsodium-dev libssl-dev libtool m4 openssl python3 texinfo yasm
|
2023-03-29 15:01:39 +00:00
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) boost
|
2023-05-14 19:35:16 +00:00
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) libote
|
2023-03-24 18:52:02 +00:00
|
|
|
|
2023-05-14 16:29:07 +00:00
|
|
|
ssl:
|
|
|
|
cd $(MP_SPDZ_PATH) && Scripts/setup-ssl.sh 3
|
|
|
|
|
2023-03-30 16:22:46 +00:00
|
|
|
%.mpc: _phony
|
2023-05-14 19:50:45 +00:00
|
|
|
cd $(MP_SPDZ_PATH) && python3 compile.py -R 64 -O ../$@
|
2023-03-29 15:03:00 +00:00
|
|
|
|
2023-03-24 18:52:02 +00:00
|
|
|
%:
|
2023-03-29 15:01:39 +00:00
|
|
|
$(MAKE) -C $(MP_SPDZ_PATH) $@
|
2023-03-30 16:22:46 +00:00
|
|
|
|
|
|
|
.PHONY: _phony
|