forked from particle-iot/tinydtls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.contiki
43 lines (30 loc) · 1.12 KB
/
Makefile.contiki
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
########################################################################
# platform-specific options
ifeq ($(TARGET), econotag)
CFLAGS += -DUIP_CONF_TCP=0
endif
ifeq ($(TARGET), minimal-net)
UIP_CONF_IPV6_RPL=0
CFLAGS += -DUIP_CONF_IPV6_RPL=0 -DRPL_BORDER_ROUTER=0
endif
# usually, you should not need changing anything beyond this line
########################################################################
all: dtls-server dtls-client
$(MAKE) $(MAKEFLAGS) ROLE=server dtls-server
$(MAKE) $(MAKEFLAGS) clean
$(MAKE) $(MAKEFLAGS) ROLE=client dtls-client
CONTIKI=../..
WITH_UIP6=1
UIP_CONF_IPV6=1
ifneq ($(ROLE),client)
CFLAGS+= -DHARD_CODED_ADDRESS=\"aaaa::02:232\"
else
CFLAGS+= -DUDP_CONNECTION_ADDR="fe80::ff:fe02:232" \
-DHARD_CODED_ADDRESS=\"aaaa::02:230\"
endif
CFLAGS += -ffunction-sections
LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__
CFLAGS += -DSHA2_USE_INTTYPES_H
APPS += tinydtls/aes tinydtls/sha2 tinydtls/ecc tinydtls
ccm-test: tests/ccm-test
include $(CONTIKI)/Makefile.include