1######################################################################## 2# platform-specific options 3 4ifeq ($(TARGET), econotag) 5CONTIKI_WITH_RPL=0 6CFLAGS += -DUIP_CONF_TCP=0 -DCOAP_MAX_BLOCK_SZX=1 7endif 8 9ifeq ($(TARGET), mbxxx) 10CFLAGS += -DUIP_CONF_TCP=0 -DCOAP_MAX_BLOCK_SZX=1 -DHAVE_ASSERT_H -DHAVE_LIMITS_H 11STM32W_CPUREV=CC 12#STM32W_CPUREV=xB 13endif 14 15# usually, you should not need changing anything beyond this line 16######################################################################## 17 18CONTIKI?=../../../.. 19 20ifneq ($(NODE_ADDR),) 21 CFLAGS += -DNODE_ADDR=$(NODE_ADDR) 22endif 23 24all: server 25 26CFLAGS += -ffunction-sections 27LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__ 28 29CFLAGS += #-DSHORT_ERROR_RESPONSE -DNDEBUG 30 31APPS += libcoap 32 33include $(CONTIKI)/Makefile.include 34