Makefile 880 B

12345678910111213141516171819202122232425262728293031323334353637
  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:=coreutils
  9. PKG_CPE_ID:=cpe:/a:gnu:coreutils
  10. PKG_VERSION:=8.27
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/coreutils
  13. PKG_HASH:=8891d349ee87b9ff7870f52b6d9312a9db672d2439d289bc57084771ca21656b
  14. HOST_BUILD_PARALLEL := 1
  15. BUILD_PROGRAMS = date readlink
  16. include $(INCLUDE_DIR)/host-build.mk
  17. BUILD_BINS = $(patsubst %,src/%,$(BUILD_PROGRAMS))
  18. HOST_CONFIGURE_ARGS += \
  19. --enable-install-program=$(subst $(space),$(comma),$(strip $(BUILD_PROGRAMS)))
  20. HOST_MAKE_FLAGS += \
  21. PROGRAMS="$(BUILD_BINS)" \
  22. LIBRARIES= MANS= SUBDIRS=.
  23. define Host/Install
  24. $(INSTALL_DIR) $(1)/bin
  25. $(CP) $(patsubst %,$(HOST_BUILD_DIR)/%,$(BUILD_BINS)) $(1)/bin/
  26. endef
  27. $(eval $(call HostBuild))