summaryrefslogtreecommitdiff
path: root/mk/gmphost.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-12 14:54:41 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-12 14:54:41 +0200
commite1875213606eb8269056d0623e25efbc87aea4fe (patch)
tree6befff805b3120bbaa7eba48bec849884c0287c7 /mk/gmphost.mk
parentbe3c5a5a97f7a73bea79de8e1040e3885d199921 (diff)
downloadembtoolkit-e1875213606eb8269056d0623e25efbc87aea4fe.tar.gz
embtoolkit-e1875213606eb8269056d0623e25efbc87aea4fe.tar.bz2
embtoolkit-e1875213606eb8269056d0623e25efbc87aea4fe.tar.xz
finish work on building gmp/mpf for the toolchain
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk/gmphost.mk')
-rw-r--r--mk/gmphost.mk23
1 files changed, 18 insertions, 5 deletions
diff --git a/mk/gmphost.mk b/mk/gmphost.mk
index 444e6c7..8ba04d0 100644
--- a/mk/gmphost.mk
+++ b/mk/gmphost.mk
@@ -26,15 +26,28 @@ GMP_HOST_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_GMP_HOST_VERSION_STRING)))
GMP_HOST_SITE := ftp://ftp.gmplib.org/pub/
GMP_HOST_PACKAGE := gmp-$(GMP_HOST_VERSION).tar.bz2
GMP_HOST_BUILD_DIR := $(TOOLS_BUILD)/gmp
+GMP_HOST_DIR := $(TOOLS_BUILD)/gmp-host
-$(GMP_HOST_BUILD_DIR)/.built: download_gmp_host $(GMP_HOST_BUILD_DIR)/.decompressed
+export GMP_HOST_DIR
+
+gmphost_install: $(GMP_HOST_BUILD_DIR)/.built
+
+$(GMP_HOST_BUILD_DIR)/.built: download_gmp_host $(GMP_HOST_BUILD_DIR)/.decompressed \
+ $(GMP_HOST_BUILD_DIR)/.configured
+ @cd $(GMP_HOST_BUILD_DIR); make; make install
@touch $@
+download_gmp_host:
+ @test -e $(DOWNLOAD_DIR)/$(GMP_HOST_PACKAGE) || \
+ wget -P $(DOWNLOAD_DIR) $(GMP_HOST_SITE)/$(GMP_HOST_PACKAGE)
+
$(GMP_HOST_BUILD_DIR)/.decompressed:
@tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(GMP_HOST_PACKAGE)
@mkdir -p $(GMP_HOST_BUILD_DIR)
- touch $@
+ @touch $@
-download_gmp_host:
- @test -e $(DOWNLOAD_DIR)/$(GMP_HOST_PACKAGE) || \
- wget -P $(DOWNLOAD_DIR) $(GMP_HOST_SITE)/$(GMP_HOST_PACKAGE)
+$(GMP_HOST_BUILD_DIR)/.configured:
+ @mkdir -p $(GMP_HOST_DIR)
+ @cd $(GMP_HOST_BUILD_DIR); $(TOOLS_BUILD)/gmp-$(GMP_HOST_VERSION)/configure \
+ --prefix=$(GMP_HOST_DIR) --disable-shared --enable-static
+ @touch $@