Mercurial > mxe-octave
annotate src/binutils.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | 4f9b72cf7ee7 |
children | bcc26ffe9a0f |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2159
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
301
diff
changeset
|
4 PKG := binutils |
1281
3443a9b9a415
remove $(PKG)_IGNORE entries that are no longer needed
Volker Grabsch <vog@notjusthosting.com>
parents:
994
diff
changeset
|
5 $(PKG)_IGNORE := |
2852 | 6 $(PKG)_CHECKSUM := 587fca86f6c85949576f4536a90a3c76ffc1a3e1 |
2118 | 7 $(PKG)_SUBDIR := binutils-$($(PKG)_VERSION) |
505
398d63c87ef8
update version of package binutils
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
8 $(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.bz2 |
398d63c87ef8
update version of package binutils
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
9 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE) |
398d63c87ef8
update version of package binutils
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
10 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE) |
398d63c87ef8
update version of package binutils
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
11 $(PKG)_DEPS := |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ |
994
07e346dfcd76
improved version recognition of packages binutils and gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
876
diff
changeset
|
15 $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
1864
0ac0306fc662
Improved filtering of bad binutils versions
Volker Grabsch <vog@notjusthosting.com>
parents:
1863
diff
changeset
|
16 grep -v '^2\.1' | \ |
505
398d63c87ef8
update version of package binutils
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
17 head -1 |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
2997 | 20 ifneq ($(USE_SYSTEM_GCC),yes) |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
2151
18d32520bcb5
take config.guess from binutils instead of gcc
Mark Brand <mabrand@mabrand.nl>
parents:
2118
diff
changeset
|
22 # install config.guess for general use |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
23 $(INSTALL) -d '$(BUILD_TOOLS_PREFIX)/bin' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
24 $(INSTALL) -m755 '$(1)/config.guess' '$(BUILD_TOOLS_PREFIX)/bin/' |
2151
18d32520bcb5
take config.guess from binutils instead of gcc
Mark Brand <mabrand@mabrand.nl>
parents:
2118
diff
changeset
|
25 |
2158
3a7782db4d61
install target-specific autotools config.site file
Tony Theodore <tonyt@logyst.com>
parents:
2153
diff
changeset
|
26 # install target-specific autotools config file |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
27 $(INSTALL) -d '$(HOST_PREFIX)/share' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
28 echo "ac_cv_build=`$(1)/config.guess`" > '$(HOST_PREFIX)/share/config.site' |
2158
3a7782db4d61
install target-specific autotools config.site file
Tony Theodore <tonyt@logyst.com>
parents:
2153
diff
changeset
|
29 |
131
ed98f6b98e35
use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents:
115
diff
changeset
|
30 cd '$(1)' && ./configure \ |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --target='$(TARGET)' \ |
2151
18d32520bcb5
take config.guess from binutils instead of gcc
Mark Brand <mabrand@mabrand.nl>
parents:
2118
diff
changeset
|
32 --build="`config.guess`" \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
33 --prefix='$(BUILD_TOOLS_PREFIX)' \ |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 --with-gcc \ |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 --with-gnu-ld \ |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 --with-gnu-as \ |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 --disable-nls \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2852
diff
changeset
|
38 $(ENABLE_SHARED_OR_STATIC) \ |
543
c1a03ad713d1
portability fix to packages binutils and gcc for MacOS 10.6
Volker Grabsch <vog@notjusthosting.com>
parents:
505
diff
changeset
|
39 --disable-werror |
173
b279dbda0f54
improved parallel builds of packages 'binutils', 'pdflib_lite' and 'sdl'
Volker Grabsch <vog@notjusthosting.com>
parents:
143
diff
changeset
|
40 $(MAKE) -C '$(1)' -j '$(JOBS)' |
b279dbda0f54
improved parallel builds of packages 'binutils', 'pdflib_lite' and 'sdl'
Volker Grabsch <vog@notjusthosting.com>
parents:
143
diff
changeset
|
41 $(MAKE) -C '$(1)' -j 1 install |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2997
diff
changeset
|
42 $(MAKE) -C '$(1)' -j 1 DESTDIR=$(TOP_DIR)/cross-tools install |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 endef |
2997 | 44 else |
45 define $(PKG)_BUILD | |
46 endef | |
47 endif |