1# This is a -*- Makefile -*-
2
3ifeq ($(TARGET), redbee-econotag)
4CFLAGS += -DSHA2_USE_INTTYPES_H=1 -DLITTLE_ENDIAN=3412 -DBYTE_ORDER=LITTLE_ENDIAN
5endif
6
7ifeq ($(TARGET), wismote)
8CFLAGS += -DSHA2_USE_INTTYPES_H=1 -DLITTLE_ENDIAN=3412 -DBYTE_ORDER=LITTLE_ENDIAN
9endif
10
11ifeq ($(TARGET), exp5438)
12CFLAGS += -DSHA2_USE_INTTYPES_H=1 -DLITTLE_ENDIAN=3412 -DBYTE_ORDER=LITTLE_ENDIAN
13endif
14
15ifeq ($(TARGET), native)
16CFLAGS += -DSHA2_USE_INTTYPES_H=1
17endif
18
19ifeq ($(TARGET), minimal-net)
20CFLAGS += -DSHA2_USE_INTTYPES_H=1
21endif
22
23CFLAGS += -DDTLSv12 -DWITH_SHA256
24tinydtls_src = dtls.c crypto.c hmac.c rijndael.c sha2.c ccm.c netq.c ecc.c dtls_time.c peer.c session.c
25
26# This adds support for TLS_PSK_WITH_AES_128_CCM_8
27CFLAGS += -DDTLS_PSK
28
29# This adds support for TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8
30CFLAGS += -DDTLS_ECC
31tinydtls_src += ecc.c
32
33# This activates debugging support
34# CFLAGS += -DNDEBUG
35tinydtls_src += debug.c
36
37