1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/edbg/Makefile
Tobias Markmann 3d0a350ebc dist/tools/edbg: Clear environment before building edbg
This fixes compilation on macOS. Without this, autoconf
might pick up INCLUDES and LINKER variables causing compilation
and linking errors.
2017-11-07 21:26:42 +01:00

17 lines
514 B
Makefile

PKG_NAME=edbg
PKG_URL=https://github.com/ataradov/edbg
PKG_VERSION=76f85abdea212ba23760723cce15e00ca4ae4b76
PKG_LICENSE=BSD-3-Clause
PKG_BUILDDIR=$(CURDIR)/bin
.PHONY: all
all: git-download
# Start edbg build in a clean environment, so variables set by RIOT's build process
# for cross compiling a specific target platfrom are reset and edbg can
# be built cleanly for the native platform.
env -i PATH=$(PATH) TERM=$(TERM) "$(MAKE)" -C $(PKG_BUILDDIR)
mv $(PKG_BUILDDIR)/edbg .
include $(RIOTBASE)/pkg/pkg.mk