1
0

Makefile 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2008-2016 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:=flex
  9. PKG_CPE_ID:=cpe:/a:flex_project:flex
  10. PKG_VERSION:=2.6.4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/westes/flex/releases/download/v$(PKG_VERSION)/
  13. PKG_HASH:=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
  14. HOST_FIXUP:=autoreconf
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. HOST_CONFIGURE_ARGS += --disable-shared
  18. define Host/Compile
  19. $(call Host/Compile/Default,SUBDIRS='src tools')
  20. endef
  21. define Host/Install
  22. $(call Host/Compile/Default,install SUBDIRS='src tools')
  23. $(LN) flex $(STAGING_DIR_HOST)/bin/lex
  24. endef
  25. define Host/Uninstall
  26. -$(call Host/Compile/Default,uninstall SUBDIRS='src tools')
  27. endef
  28. define Host/Clean
  29. rm -f $(STAGING_DIR_HOST)/bin/lex
  30. $(call Host/Clean/Default)
  31. endef
  32. $(eval $(call HostBuild))