source: freewrt/toolchain/gmp/Makefile@ 9554ed5

freewrt_2_0
Last change on this file since 9554ed5 was 9554ed5, checked in by Waldemar Brodkorb <wbx@…>, 4 months ago

populate FWRT_JLEVEL to toolchain, reduces the buildtime on multi-core machines

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# This file is part of the FreeWRT project. FreeWRT is copyrighted
2# material, please see the LICENCE file in the top-level directory
3
4include $(TOPDIR)/rules.mk
5include ../rules.mk
6
7GMP_VERSION:=6.3.0
8GMP_SITE:=@GNU/gmp
9SOURCE:=gmp-$(GMP_VERSION).tar.gz
10GMP_MD5SUM:=3390cf8cc96bbec5a9123f2fb22480db
11GMP_DIR:=$(TOOLCHAIN_BUILD_DIR)/gmp-$(GMP_VERSION)
12
13$(DL_DIR)/$(SOURCE):
14 mkdir -p $(DL_DIR)
15 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SOURCE) $(GMP_MD5SUM) $(GMP_SITE)
16
17$(GMP_DIR)/.unpacked: $(DL_DIR)/$(SOURCE)
18 ${EXTRACT_CMD}
19 touch $(GMP_DIR)/.unpacked
20
21$(GMP_DIR)/.configured: $(GMP_DIR)/.unpacked
22 mkdir -p $(GMP_DIR)
23 (cd $(GMP_DIR); \
24 $(GMP_DIR)/configure \
25 --prefix=$(STAGING_HOST_DIR)/usr \
26 --with-pic \
27 --disable-shared \
28 --enable-static \
29 );
30 touch $(GMP_DIR)/.configured
31
32$(GMP_DIR)/.compiled: $(GMP_DIR)/.configured
33 $(MAKE) -j$(FWRT_JLEVEL) -C $(GMP_DIR) all
34 touch $(GMP_DIR)/.compiled
35
36$(GMP_DIR)/.installed: $(GMP_DIR)/.compiled
37 $(MAKE) -j$(FWRT_JLEVEL) -C $(GMP_DIR) install
38 touch $(GMP_DIR)/.installed
39
40source: $(DL_DIR)/$(SOURCE)
41prepare: $(GMP_DIR)/.unpacked
42compile: $(GMP_DIR)/.compiled
43install: $(GMP_DIR)/.installed
44clean:
45 rm -rf $(GMP_DIR)
Note: See TracBrowser for help on using the repository browser.