-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.contiki
41 lines (31 loc) · 1.02 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
all: coap-server #coap-client
$(MAKE) $(MAKEFLAGS) ROLE=server coap-server
# $(MAKE) $(MAKEFLAGS) clean
# $(MAKE) $(MAKEFLAGS) ROLE=client coap-client
CONTIKI=../..
#CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
WITH_UIP6=1
UIP_CONF_IPV6=1
#CFLAGS += -DUIP_CONF_IPV6_RPL=1
ifeq ($(TARGET), minimal-net)
CFLAGS += -DHAVE_ASSERT_H -DWITH_UIP6=1
ifneq ($(ROLE),client)
UIP_LLADDR="{0x00,0x06,0x98,0x00,0x02,0x32}"
CFLAGS+= -DUIP_CONF_LLADDR=$(UIP_LLADDR)
else
UIP_LLADDR="{0x00,0x06,0x98,0x00,0x02,0x30}"
CFLAGS+= -DUDP_CONNECTION_ADDR="fe80::206:98ff:fe00:232" \
-DUIP_CONF_LLADDR=$(UIP_LLADDR)
endif
endif
ifeq ($(TARGET), mbxxx)
CFLAGS += -DUIP_CONF_TCP=0
endif
ifeq ($(TARGET), redbee-econotag)
CFLAGS += -DUIP_CONF_TCP=0
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 += #-DSHORT_ERROR_RESPONSE -DNDEBUG
APPS += libcoap
include $(CONTIKI)/Makefile.include