freewrt_2_0
|
Last change
on this file 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.2 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 |
|
|---|
| 4 | include $(TOPDIR)/rules.mk
|
|---|
| 5 | include ../rules.mk
|
|---|
| 6 |
|
|---|
| 7 | MPC_VERSION:=1.1.0
|
|---|
| 8 | MPC_SITE:=@GNU/mpc
|
|---|
| 9 | SOURCE:=mpc-$(MPC_VERSION).tar.gz
|
|---|
| 10 | MPC_MD5SUM:=4125404e41e482ec68282a2e687f6c73
|
|---|
| 11 | MPC_DIR:=$(TOOLCHAIN_BUILD_DIR)/mpc-$(MPC_VERSION)
|
|---|
| 12 |
|
|---|
| 13 | $(DL_DIR)/$(SOURCE):
|
|---|
| 14 | mkdir -p $(DL_DIR)
|
|---|
| 15 | $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SOURCE) $(MPC_MD5SUM) $(MPC_SITE)
|
|---|
| 16 |
|
|---|
| 17 | $(MPC_DIR)/.unpacked: $(DL_DIR)/$(SOURCE)
|
|---|
| 18 | ${EXTRACT_CMD}
|
|---|
| 19 | touch $(MPC_DIR)/.unpacked
|
|---|
| 20 |
|
|---|
| 21 | $(MPC_DIR)/.configured: $(MPC_DIR)/.unpacked
|
|---|
| 22 | mkdir -p $(MPC_DIR)
|
|---|
| 23 | (cd $(MPC_DIR); \
|
|---|
| 24 | $(MPC_DIR)/configure \
|
|---|
| 25 | --prefix=$(STAGING_HOST_DIR)/usr \
|
|---|
| 26 | --with-gmp=$(STAGING_HOST_DIR)/usr \
|
|---|
| 27 | --disable-shared \
|
|---|
| 28 | --enable-static \
|
|---|
| 29 | );
|
|---|
| 30 | touch $(MPC_DIR)/.configured
|
|---|
| 31 |
|
|---|
| 32 | $(MPC_DIR)/.compiled: $(MPC_DIR)/.configured
|
|---|
| 33 | $(MAKE) -j$(FWRT_JLEVEL) -C $(MPC_DIR) all
|
|---|
| 34 | touch $(MPC_DIR)/.compiled
|
|---|
| 35 |
|
|---|
| 36 | $(MPC_DIR)/.installed: $(MPC_DIR)/.compiled
|
|---|
| 37 | $(MAKE) -j$(FWRT_JLEVEL) -C $(MPC_DIR) install
|
|---|
| 38 | touch $(MPC_DIR)/.installed
|
|---|
| 39 |
|
|---|
| 40 | source: $(DL_DIR)/$(SOURCE)
|
|---|
| 41 | prepare: $(MPC_DIR)/.unpacked
|
|---|
| 42 | compile: $(MPC_DIR)/.compiled
|
|---|
| 43 | install: $(MPC_DIR)/.installed
|
|---|
| 44 | clean:
|
|---|
| 45 | rm -rf $(MPC_DIR)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.