mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 17:52:54 +03:00
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
########################################################################
|
|
# platform-specific options
|
|
|
|
ifeq ($(TARGET), econotag)
|
|
UIP_CONF_IPV6_RPL=0
|
|
CFLAGS += -DUIP_CONF_TCP=0
|
|
endif
|
|
|
|
ifeq ($(TARGET), mbxxx)
|
|
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: 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\"
|
|
|
|
CFLAGS += -DCOAP_MAX_BLOCK_SZX=1
|
|
|
|
ifeq ($(UIP_CONF_IPV6_RPL),0)
|
|
CFLAGS += -DUIP_CONF_IPV6_RPL=0 -DRPL_BORDER_ROUTER=0
|
|
endif
|
|
|
|
WITH_UIP6=1
|
|
UIP_CONF_IPV6=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
|
|
|
|
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
|