toolchain: gmp 5.0.1 , mpfr 3.0.0 , ccache 3.1.3 (patches from OpenWRT)
[tomato.git] / toolchain / tools / gmp / Makefile
blobc7cf60b0e13accc999ea3cf3303f9f7c46b9749b
2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
9 PKG_NAME:=gmp
10 PKG_VERSION:=5.0.1
12 PKG_SOURCE_URL:=@GNU/gmp/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_MD5SUM:=6bac6df75c192a13419dfd71d19240a7
16 include $(INCLUDE_DIR)/host-build.mk
18 unexport CFLAGS
20 ifeq ($(HOST_OS),Darwin)
21 GNU_HOST_NAME:=
22 HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
23 endif
25 HOST_CONFIGURE_ARGS += \
26 --enable-static \
27 --disable-shared \
28 --enable-cxx \
29 --enable-mpbsd
31 define Build/Configure
32 $(call Build/Configure/Default,\
33 $(HOST_CONFIGURE_ARGS) \
35 endef
37 define Build/Install
38 $(MAKE) -C $(PKG_BUILD_DIR) install
39 endef
41 $(eval $(call HostBuild))