-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (18 loc) · 592 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
COMPILER = $(CPP)
CPPFLAGS = -Wall -std=c++11 -DNDEBUG -g2 -I$(HELIB) -pthread -DFHE_THREADS -DFHE_DCRT_THREADS -DFHE_BOOTS_THREADS
LIBS = $(HELIB)/fhe.a -lntl -lgmp -lm -lrt -lcryptopp
TARGET = keyGenerator encrypt decrypt
.PHONY: all clean run
all: $(TARGET)
keyGenerator: keyGenerator.cpp
$(COMPILER) $(CPPFLAGS) -o $@ $< $(LIBS)
encrypt: encrypt.cpp
$(COMPILER) $(CPPFLAGS) -o $@ $< $(LIBS)
decrypt: decrypt.cpp
$(COMPILER) $(CPPFLAGS) -o $@ $< $(LIBS)
run: $(TARGET)
./keyGenerator && \
./encrypt && \
./decrypt
clean:
rm -f $(TARGET) ciphertext.txt seckey.txt pubkey.txt