Files
libcoap/Makefile.contiki
T

42 lines
1.0 KiB
Makefile

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