RIOT/pkg/wakaama/Makefile.include
Alexandre Abadie 6de497a066
pkg/wakaama: cleanup build system integration
Avoid modifying the cloned repository for each build
2020-06-10 14:19:26 +02:00

21 lines
650 B
Makefile

DIRS += $(RIOTBASE)/pkg/wakaama/contrib
INCLUDES += -I$(RIOTBASE)/pkg/wakaama/include
INCLUDES += -I$(PKGDIRBASE)/wakaama/core
INCLUDES += -I$(PKGDIRBASE)/wakaama/core/er-coap-13
# NOTE: Use wakaama in client mode
CFLAGS += -DLWM2M_CLIENT_MODE
# Translate 'CONFIG_' options to package specific flags. This checks if the
# option is being set via Kconfig or CFLAGS
ifneq (,$(or $(CONFIG_LWM2M_BOOTSTRAP),$(filter -DCONFIG_LWM2M_BOOTSTRAP=1,$(CFLAGS))))
CFLAGS += -DLWM2M_BOOTSTRAP=1
endif
ifneq (,$(or $(CONFIG_LWM2M_WITH_LOGS),$(filter -DCONFIG_LWM2M_WITH_LOGS=1,$(CFLAGS))))
CFLAGS += -DLWM2M_WITH_LOGS=1
endif
PSEUDOMODULES += wakaama