annotate src/libiberty.mk @ 4378:a3af3be14136

of-image: update image patch from image repo * src/of-image-1-fixes.patch: update patch
author John D
date Sun, 09 Apr 2017 16:38:37 -0400
parents 13be64f9f16d
children 38d5ceb24136
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2292
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.
2292
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := libiberty
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
5 $(PKG)_IGNORE = $(build-binutils_IGNORE)
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 2.22
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
7 $(PKG)_CHECKSUM = $(build-binutils_CHECKSUM)
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
8 $(PKG)_SUBDIR = $(build-binutils_SUBDIR)/libiberty
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
9 $(PKG)_FILE = $(build-binutils_FILE)
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_URL = $(build-binutils_URL)
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_URL_2 = $(build-binutils_URL_2)
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
12 $(PKG)_DEPS :=
2292
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 define $(PKG)_UPDATE
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
15 echo $(build-binutils_VERSION)
2292
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
20 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2365
diff changeset
21 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
22 --prefix='$(HOST_PREFIX)' \
2292
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --enable-install-libiberty
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)'
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j 1 install target_header_dir=libiberty
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
27 '$(MXE_CC)' \
2292
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
29 '$(2).c' -o '$(HOST_BINDIR)/test-libiberty.exe' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
30 -I$(HOST_INCDIR)/libiberty -liberty
2292
3c2b40d19505 New package: libiberty
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 endef