Makefile 963 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=make-ext4fs
  9. PKG_VERSION:=2016-05-05
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=http://git.openwrt.org/project/make_ext4fs.git
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_VERSION:=3af931b0b6545757aaeadb13f9bb9da0296fc172
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_MIRROR_MD5SUM:=2c4161638d4ff3343e250321126d29e6
  16. PKG_CAT:=zcat
  17. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/host-build.mk
  19. ifeq ($(HOST_OS),Linux)
  20. MAKE_STATIC := STATIC=1
  21. endif
  22. define Host/Compile
  23. $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs $(MAKE_STATIC)
  24. endef
  25. define Host/Install
  26. $(INSTALL_BIN) $(HOST_BUILD_DIR)/make_ext4fs $(STAGING_DIR_HOST)/bin/
  27. endef
  28. define Host/Clean
  29. rm -f $(STAGING_DIR_HOST)/bin/make_ext4fs
  30. endef
  31. $(eval $(call HostBuild))