1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/tlsf/Makefile
Oleg Hahm 3b5f1f949f 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.
2016-01-31 14:33:08 +01:00

31 lines
656 B
Makefile

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: $(PKG_DIR)/$(PKG_NAME).a
$(PKG_DIR)/$(PKG_NAME).a: $(PKG_DIR)/Makefile
$(AD)make -C $(<D)
$(PKG_DIR)/Makefile: $(CURDIR)/$(PKG_FILE) $(CURDIR)/patch.txt
@rm -rf $(@D)
@mkdir -p $(@D)
$(AD)cd $(@D) && $(UNZIP_HERE) $(CURDIR)/$(PKG_FILE)
$(AD)cd $(@D) && patch --binary -p0 -N -i $(CURDIR)/patch.txt
$(CURDIR)/$(PKG_FILE):
$(AD)$(DOWNLOAD_TO_FILE) $@ $(PKG_URL)
clean::
rm -rf $(PKG_DIR)/
distclean:: clean
rm -f $(CURDIR)/$(PKG_FILE)
Makefile.include:
@true