forked from cetic/tinydtls
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.contiki
More file actions
29 lines (21 loc) · 819 Bytes
/
Makefile.contiki
File metadata and controls
29 lines (21 loc) · 819 Bytes
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
all: dtls-server dtls-client
$(MAKE) $(MAKEFLAGS) ROLE=server dtls-server
$(MAKE) $(MAKEFLAGS) clean
$(MAKE) $(MAKEFLAGS) ROLE=client dtls-client
CONTIKI=../..
#CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
CONTIKI_WITH_RPL = 0
CONTIKI_WITH_IPV6 = 1
ifneq ($(ROLE),client)
CFLAGS+= -DHARD_CODED_ADDRESS=\"aaaa::02:232\"
else
CFLAGS+=
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 += -DUIP_CONF_TCP=0 -DSHA2_USE_INTTYPES_H
APPS += tinydtls/aes tinydtls/sha2 tinydtls/ecc tinydtls
ccm-test: tests/ccm-test
include $(CONTIKI)/Makefile.include