mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ca5d13cc2a
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.
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
PKG_NAME=lwip
|
|
PKG_URL=https://git.savannah.nongnu.org/git/lwip.git
|
|
# lwIP v2.1.2
|
|
PKG_VERSION=159e31b689577dbf69cf0683bbaffbd71fa5ee10
|
|
PKG_LICENSE=BSD-3-Clause
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
LWIP_MODULES = lwip_api lwip_core lwip_ipv4 lwip_ipv6 \
|
|
lwip_netif lwip_netif_ppp lwip_polarssl
|
|
LWIP_USEMODULE = $(filter $(LWIP_MODULES),$(USEMODULE))
|
|
LWIP_MODULE_MAKEFILE = $(RIOTBASE)/Makefile.base
|
|
|
|
.PHONY: $(LWIP_MODULES)
|
|
|
|
CFLAGS += -Wno-address
|
|
|
|
make_module = "$(MAKE)" -f $(LWIP_MODULE_MAKEFILE) MODULE=$(1) -C $(2)
|
|
|
|
all: lwip
|
|
|
|
lwip: $(LWIP_USEMODULE)
|
|
$(call make_module,$@,$(PKG_BUILDDIR))
|
|
|
|
lwip_api:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/api)
|
|
|
|
lwip_core:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/core)
|
|
|
|
lwip_ipv4:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/core/ipv4)
|
|
|
|
lwip_ipv6:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/core/ipv6)
|
|
|
|
lwip_netif:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif)
|
|
|
|
lwip_netif_ppp:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp)
|
|
|
|
lwip_polarssl:
|
|
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp/polarssl)
|