Makefile 754 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2009 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:=gmp
  9. PKG_VERSION:=4.2.4
  10. PKG_SOURCE_URL:=@GNU/gmp/
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_MD5SUM:=
  13. include $(INCLUDE_DIR)/host-build.mk
  14. define Host/Configure
  15. (cd $(HOST_BUILD_DIR); \
  16. ./configure \
  17. --prefix=$(STAGING_DIR_HOST) \
  18. --build=$(GNU_HOST_NAME) \
  19. --enable-static \
  20. --disable-shared \
  21. --enable-cxx \
  22. --enable-mpbsd \
  23. );
  24. endef
  25. define Host/Compile
  26. make -C $(HOST_BUILD_DIR) all
  27. endef
  28. define Host/Install
  29. make -C $(HOST_BUILD_DIR) install
  30. endef
  31. define Host/Clean
  32. rm -rf $(HOST_BUILD_DIR)
  33. endef
  34. $(eval $(call HostBuild))