mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
3b5f1f949f
The TLSF package was the only one using the $(BINDIR) instead of a subdirectory of pkg/. This commit changes this.
31 lines
656 B
Makefile
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
|