1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/emb6/Makefile
Gaëtan Harter ca5d13cc2a pkg/*: adapt to new state file targets
Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
2020-01-08 20:55:19 +01:00

32 lines
967 B
Makefile

PKG_NAME=emb6
PKG_URL=https://github.com/hso-esk/emb6.git
PKG_VERSION=14e4a3cfff01644e078870e14e16a1fe60dcc895
PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
# GCC 7.x fails on (intentional) fallthrough, thus disable implicit-fallthrough.
CFLAGS += -Wno-implicit-fallthrough
CFLAGS += -Wno-strict-aliasing
CFLAGS += -Wno-old-style-definition
CFLAGS += -Wno-strict-prototypes
# Collect all chosen sub-modules but not the pseudo-modules and the ones
# implemented in ./contrib/
EMB6_SUBMODULES:=$(filter-out emb6_contrib \
emb6_netdev \
emb6_router \
emb6_sock_%,$(filter emb6_%,$(USEMODULE)))
all: $(EMB6_SUBMODULES)
"$(MAKE)" -C $(PKG_BUILDDIR)
# Rule for all submodules
emb6_%:
"$(MAKE)" -C $(dir $(shell grep -lR "MODULE.*=.*\<$@\>" $(PKG_BUILDDIR)))
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += -Wno-tautological-compare
CFLAGS += -Wno-parentheses-equality
endif