Makefile 837 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright (C) 2012-2013 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:=mtools
  9. PKG_VERSION:=4.0.19
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=1bc197199ea1c2c317f597879486eeb817f3199b526d94cc6841624768d910df
  13. HOST_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CONFIGURE_VARS += \
  16. ac_cv_header_iconv_h=no
  17. define Host/Compile
  18. $(MAKE) -C $(HOST_BUILD_DIR) mcopy mmd
  19. endef
  20. define Host/Install
  21. $(INSTALL_BIN) $(HOST_BUILD_DIR)/mcopy $(STAGING_DIR_HOST)/bin/
  22. $(INSTALL_BIN) $(HOST_BUILD_DIR)/mmd $(STAGING_DIR_HOST)/bin/
  23. endef
  24. define Host/Clean
  25. rm -f $(STAGING_DIR_HOST)/bin/mcopy
  26. rm -f $(STAGING_DIR_HOST)/bin/mmd
  27. endef
  28. $(eval $(call HostBuild))