Mercurial > mxe-octave
annotate src/libiberty.mk @ 3031:951da75fd09c
improve handling of cross tool prefix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 09 Jun 2013 09:48:08 -0400 |
parents | b6c7244a2f66 |
children | 5ef49fb3299d |
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 | 3 |
4 PKG := libiberty | |
5 $(PKG)_IGNORE = $(binutils_IGNORE) | |
6 $(PKG)_CHECKSUM = $(binutils_CHECKSUM) | |
7 $(PKG)_SUBDIR = $(binutils_SUBDIR)/libiberty | |
8 $(PKG)_FILE = $(binutils_FILE) | |
9 $(PKG)_URL = $(binutils_URL) | |
10 $(PKG)_URL_2 = $(binutils_URL_2) | |
11 $(PKG)_DEPS := gcc | |
12 | |
13 define $(PKG)_UPDATE | |
14 echo $(binutils_VERSION) | |
15 endef | |
16 | |
17 define $(PKG)_BUILD | |
18 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
19 $(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
|
20 $(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
|
21 --prefix='$(HOST_PREFIX)' \ |
2292 | 22 --enable-install-libiberty |
23 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
24 $(MAKE) -C '$(1)' -j 1 install target_header_dir=libiberty | |
25 | |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
26 '$(MXE_CC)' \ |
2292 | 27 -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
|
28 '$(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
|
29 -I$(HOST_INCDIR)/libiberty -liberty |
2292 | 30 endef |