aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-09-24 21:49:24 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-09-24 21:49:24 +0300
commit4ccd1f3d3f5e374e35340b79210ca087939f1e6a (patch)
tree9dab5c98ada4eaab7573de40dddac9312a037ba1
parent91b957b8738ebe6e85ba61c69de6f87df970e612 (diff)
Added Makefile
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3e0e28d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+CURVE25519_OBJS = curve25519/curve25519_fpga_model.o \
+ curve25519/curve25519_fpga_lowlevel.o \
+ curve25519/curve25519_fpga_multiword.o \
+ curve25519/curve25519_fpga_modular.o \
+ curve25519/curve25519_fpga_microcode.o
+
+X25519_OBJS = x25519/x25519_fpga_model.o \
+ x25519/x25519_fpga_curve_abstract.o \
+ x25519/x25519_fpga_curve_microcode.o
+
+ED25519_OBJS = ed25519/ed25519_fpga_model.o \
+ ed25519/ed25519_fpga_curve_abstract.o \
+ ed25519/ed25519_fpga_curve_microcode.o
+
+CPPFLAGS = -Wall
+
+CPPFLAGS += -I./curve25519
+CPPFLAGS += -I./x25519
+CPPFLAGS += -I./ed25519
+CPPFLAGS += -I./vectors/x25519
+CPPFLAGS += -I./vectors/ed25519
+
+all: x25519_fpga_model ed25519_fpga_model
+
+x25519_fpga_model: $(CURVE25519_OBJS) $(X25519_OBJS)
+ $(CC) $(LDFLAGS) $(CURVE25519_OBJS) $(X25519_OBJS) -o $@
+
+ed25519_fpga_model: $(CURVE25519_OBJS) $(ED25519_OBJS)
+ $(CC) $(LDFLAGS) $(CURVE25519_OBJS) $(ED25519_OBJS) -o $@
+
+clean:
+ rm -f x25519_fpga_model
+ rm -f ed25519_fpga_model
+ rm -f curve25519/*.o
+ rm -f x25519/*.o
+ rm -f ed25519/*.o