diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-10-13 12:48:10 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-25 01:23:27 (GMT) |
commit | 3185b292b0b04bbd14fa9ea8a4a887a820edeec5 (patch) | |
tree | c6aa684e6ca8f048a19f459ddeac5b8ff08b7b1e /src/mpfr.mk | |
parent | 3132accaf157d8940a7f2287344cba2cd62c482f (diff) | |
download | mxe-3185b292b0b04bbd14fa9ea8a4a887a820edeec5.zip mxe-3185b292b0b04bbd14fa9ea8a4a887a820edeec5.tar.gz mxe-3185b292b0b04bbd14fa9ea8a4a887a820edeec5.tar.bz2 |
gcc and deps: use native builds and consolidate rules
Diffstat (limited to 'src/mpfr.mk')
-rw-r--r-- | src/mpfr.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mpfr.mk b/src/mpfr.mk index 4a14146..43fe8c0 100644 --- a/src/mpfr.mk +++ b/src/mpfr.mk @@ -9,8 +9,11 @@ $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE) $(PKG)_URL_2 := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) $(PKG)_DEPS := gcc gmp +$(PKG)_DEPS_$(BUILD) := gmp + define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.mpfr.org/mpfr-current/#download' | \ grep 'mpfr-' | \ @@ -37,3 +40,12 @@ define $(PKG)_BUILD printf 'for /R %%%%f in (*.exe) do %%%%f || echo %%%%f fail >> all-tests-$(PKG)-$($(PKG)_VERSION).txt\r\n';) \ > '$(PREFIX)/$(TARGET)/bin/$(PKG)-tests/all-tests-$(PKG)-$($(PKG)_VERSION).bat' endef + +define $(PKG)_BUILD_$(BUILD) + mkdir '$(1).build' + cd '$(1).build' && '$(1)/configure' \ + $(MXE_CONFIGURE_OPTS) \ + --with-gmp='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install +endef |