forked from eclipse/tinydtls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.tinydtls
59 lines (46 loc) · 1.35 KB
/
Makefile.tinydtls
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This is a -*- Makefile -*-
MAKE_WITH_GIFTCOFB ?= 0
MAKE_WITH_XOODYAK ?=0
CFLAGS += -DDTLSv12 -DWITH_SHA256
tinydtls_src = dtls.c crypto.c hmac.c rijndael.c rijndael_wrap.c sha2.c ccm.c netq.c ecc.c dtls_time.c peer.c session.c dtls_prng.c encrypt.c
ifeq ($(MAKE_WITH_GIFTCOFB),1)
${info with giftcofb}
CFLAGS += -DTLS_EXP_CIPHER_GIFTCOFB=1
tinydtls_src += gift128.c
endif
ifeq ($(MAKE_WITH_XOODYAK),1)
${info with xoodyak}
CFLAGS += -DTLS_EXP_CIPHER_XOODYAK=1
tinydtls_src += Xoodyak.c
endif
ifeq ($(MAKE_WITH_ASCON128),1)
${info with ascon}
CFLAGS += -DTLS_EXP_CIPHER_ASCON128=1
endif
ifeq ($(MAKE_WITH_ASCON128A),1)
${info with ascon128a}
CFLAGS += -DTLS_EXP_CIPHER_ASCON128A=1
endif
ifeq ($(MAKE_WITH_ASCON80),1)
${info with ascon}
CFLAGS += -DTLS_EXP_CIPHER_ASCON80=1
endif
ifeq ($(MAKE_WITH_GRAIN128),1)
${info with grain}
CFLAGS += -DTLS_EXP_CIPHER_GRAIN128=1
endif
ifeq ($(MAKE_WITH_TINYJAMBU128),1)
${info with tinyjambu128}
CFLAGS += -DTLS_EXP_CIPHER_TINYJAMBU128=1
endif
ifeq ($(MAKE_WITH_TINYJAMBU192),1)
${info with tinyjambu192}
CFLAGS += -DTLS_EXP_CIPHER_TINYJAMBU192=1
endif
ifeq ($(MAKE_WITH_TINYJAMBU256),1)
${info with tinyjambu256}
CFLAGS += -DTLS_EXP_CIPHER_TINYJAMBU256=1
endif
# This activates debugging support
# CFLAGS += -DNDEBUG
tinydtls_src += dtls_debug.c