Mercurial > mxe-octave
annotate src/plibc.mk @ 3048:5ef49fb3299d
treat gcc and binutils as build tools
use a separate target for building the cmake toolchain file
don't unpack gcc or binutils if we are using the system compiler
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 14 Jun 2013 16:51:29 -0400 |
parents | bcc26ffe9a0f |
children | 13be64f9f16d |
rev | line source |
---|---|
2539 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := plibc | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_CHECKSUM := b545c602dc5b381fcea9d096910dede95168fbeb | |
7 $(PKG)_SUBDIR := PlibC-$($(PKG)_VERSION) | |
8 $(PKG)_FILE := plibc-$($(PKG)_VERSION)-src.tar.gz | |
9 $(PKG)_URL := http://sourceforge.net/projects/plibc/files/plibc/$($(PKG)_VERSION)/$($(PKG)_FILE)/download | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
10 $(PKG)_DEPS := |
2539 | 11 |
2755
9e3a605e2c33
package plibc: add dummy update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2539
diff
changeset
|
12 define $(PKG)_UPDATE |
9e3a605e2c33
package plibc: add dummy update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2539
diff
changeset
|
13 echo 'TODO: Updates for package plibc need to be fixed.' >&2; |
9e3a605e2c33
package plibc: add dummy update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2539
diff
changeset
|
14 echo $(plibc_VERSION) |
9e3a605e2c33
package plibc: add dummy update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2539
diff
changeset
|
15 endef |
9e3a605e2c33
package plibc: add dummy update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2539
diff
changeset
|
16 |
2539 | 17 define $(PKG)_BUILD |
2756
7393f2319756
package plibc: style improvements
Mark Brand <mabrand@mabrand.nl>
parents:
2755
diff
changeset
|
18 chmod 0755 '$(1)/configure' |
7393f2319756
package plibc: style improvements
Mark Brand <mabrand@mabrand.nl>
parents:
2755
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) \ |
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)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2756
diff
changeset
|
22 $(ENABLE_SHARED_OR_STATIC) |
2539 | 23 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
24 endef |