Makefile 851 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. # Copyright (C) 2016 LEDE project
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=make-ext4fs
  10. PKG_SOURCE_URL=$(LEDE_GIT)/project/make_ext4fs.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2016-08-14
  13. PKG_SOURCE_VERSION:=484903e4332be6c317f531b008cb2a841a18c506
  14. PKG_MIRROR_HASH:=d7ccd5e426b1d15331ff000a37dc15161f6eef594453e970fd584fcde5a25075
  15. include $(INCLUDE_DIR)/host-build.mk
  16. ifeq ($(HOST_OS),Linux)
  17. MAKE_STATIC := STATIC=1
  18. endif
  19. define Host/Compile
  20. $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs $(MAKE_STATIC)
  21. endef
  22. define Host/Install
  23. $(INSTALL_BIN) $(HOST_BUILD_DIR)/make_ext4fs $(STAGING_DIR_HOST)/bin/
  24. endef
  25. define Host/Clean
  26. rm -f $(STAGING_DIR_HOST)/bin/make_ext4fs
  27. endef
  28. $(eval $(call HostBuild))