42646716b5c992bd99fd4c21c87f02ee33df4ef1
[openwrt/svn-archive/archive.git] / tools / gmp / Makefile
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
9 PKG_NAME:=gmp
10 PKG_VERSION:=4.2.4
11
12 PKG_SOURCE_URL:=@GNU/gmp/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_MD5SUM:=
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 define Build/Configure
19 (cd $(PKG_BUILD_DIR); \
20 ./configure \
21 --prefix=$(STAGING_DIR_HOST) \
22 --build=$(GNU_HOST_NAME) \
23 --enable-static \
24 --disable-shared \
25 --enable-cxx \
26 --enable-mpbsd \
27 );
28 endef
29
30 define Build/Compile
31 make -C $(PKG_BUILD_DIR) all
32 endef
33
34 define Build/Install
35 make -C $(PKG_BUILD_DIR) install
36 endef
37
38 define Build/Clean
39 rm -rf $(PKG_BUILD_DIR)
40 endef
41
42 $(eval $(call HostBuild))