aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/Makefile
diff options
context:
space:
mode:
authorJ08nY2019-11-25 17:45:35 +0100
committerJ08nY2019-11-25 17:45:35 +0100
commit8a56c7a95e662862cfe78b834ccb091e95d5372f (patch)
tree1fd57480b7fc681f00c0bfb6c0e5cfea86762f87 /pyecsca/codegen/Makefile
parentc8d0bff46001bd5636825c5b0bb4c896cb34a4e6 (diff)
downloadpyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.tar.gz
pyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.tar.zst
pyecsca-codegen-8a56c7a95e662862cfe78b834ccb091e95d5372f.zip
Add libtommath, HOST build, and a simple PRNG.
Diffstat (limited to 'pyecsca/codegen/Makefile')
-rw-r--r--pyecsca/codegen/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/pyecsca/codegen/Makefile b/pyecsca/codegen/Makefile
index 50c1940..d99a1ce 100644
--- a/pyecsca/codegen/Makefile
+++ b/pyecsca/codegen/Makefile
@@ -1,12 +1,14 @@
TARGET = pyecsca-codegen
-SRC += main.c ecdh.c ecdsa.c hash/hash.c
+SRC += main.c bn.c ecdh.c ecdsa.c hash/hash.c prng/prng.c
-CDEFS += -DHASH=HASH_SHA1
+CDEFS += -DHASH=HASH_SHA224
-MKDIR_LIST += hash
+MKDIR_LIST += hash prng
-EXTRAINCDIRS += hash
+EXTRAINCDIRS += hash prng ../../ext/libtommath/
+
+LDFLAGS += ../../ext/libtommath/libtommath.a
include simpleserial/Makefile.simpleserial