Makefile 780 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # Copyright (C) 2014 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:=gengetopt
  9. PKG_VERSION:=2.23
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab807584ac
  13. PKG_SUBDIRS:=$$$$(foreach dir,gl src skels,$$$$(wildcard $$$$(dir)) )
  14. HOST_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Host/Compile
  17. $(call Host/Compile/Default,SUBDIRS='$(PKG_SUBDIRS)')
  18. endef
  19. define Host/Install
  20. $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/gengetopt $(STAGING_DIR_HOST)/bin/
  21. endef
  22. define Host/Clean
  23. rm -f $(STAGING_DIR_HOST)/bin/gengetopt
  24. endef
  25. $(eval $(call HostBuild))