Makefile 744 B

123456789101112131415161718192021222324252627282930
  1. #
  2. # Copyright (C) 2012 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:=dosfstools
  9. PKG_VERSION:=3.0.7
  10. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  11. PKG_SOURCE_URL:=http://dosfstools.sourcearchive.com/downloads/3.0.7/
  12. PKG_MD5SUM:=5d4d97c79e8dae60bb08c2fba36c94d6
  13. PKG_CAT:=zcat
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Host/Compile
  16. $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS) $(HOST_STATIC_LINKING)"
  17. endef
  18. define Host/Install
  19. $(INSTALL_BIN) $(HOST_BUILD_DIR)/mkdosfs $(STAGING_DIR_HOST)/bin/
  20. endef
  21. define Host/Clean
  22. rm -f $(STAGING_DIR_HOST)/bin/mkdosfs
  23. endef
  24. $(eval $(call HostBuild))