1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

pkg tlsf: use pkg directory for sources

The TLSF package was the only one using the $(BINDIR) instead of a subdirectory of pkg/. This commit changes this.
This commit is contained in:
Oleg Hahm 2015-12-09 16:46:07 +01:00
parent 35eb99a46e
commit 3b5f1f949f
2 changed files with 6 additions and 5 deletions

View File

@ -2,15 +2,16 @@ PKG_NAME = tlsf
PKG_VERSION = 3.0
PKG_FILE = tlsf-$(PKG_VERSION).zip
PKG_URL = http://download.riot-os.org/$(PKG_FILE)
PKG_DIR=$(CURDIR)/$(PKG_NAME)
.PHONY: all clean distclean
all: $(BINDIR)$(PKG_NAME).a
all: $(PKG_DIR)/$(PKG_NAME).a
$(BINDIR)$(PKG_NAME).a: $(BINDIR)$(PKG_NAME)-src/Makefile
$(PKG_DIR)/$(PKG_NAME).a: $(PKG_DIR)/Makefile
$(AD)make -C $(<D)
$(BINDIR)$(PKG_NAME)-src/Makefile: $(CURDIR)/$(PKG_FILE) $(CURDIR)/patch.txt
$(PKG_DIR)/Makefile: $(CURDIR)/$(PKG_FILE) $(CURDIR)/patch.txt
@rm -rf $(@D)
@mkdir -p $(@D)
$(AD)cd $(@D) && $(UNZIP_HERE) $(CURDIR)/$(PKG_FILE)
@ -20,7 +21,7 @@ $(CURDIR)/$(PKG_FILE):
$(AD)$(DOWNLOAD_TO_FILE) $@ $(PKG_URL)
clean::
rm -rf $(BINDIR)$(PKG_NAME)-src/
rm -rf $(PKG_DIR)/
distclean:: clean
rm -f $(CURDIR)/$(PKG_FILE)

View File

@ -1 +1 @@
INCLUDES += -I$(BINDIR)tlsf-src
INCLUDES += -I$(RIOTBASE)/pkg/tlsf/tlsf