Mercurial > mxe-octave
annotate src/gc.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 |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
870
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. |
870 | 3 |
4 PKG := gc | |
5 $(PKG)_IGNORE := | |
2694 | 6 $(PKG)_CHECKSUM := b43573800e27361da78f05a2e98394521cfa04fc |
2550 | 7 $(PKG)_SUBDIR := $(PKG)-7.2 |
870 | 8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
9 $(PKG)_URL := http://www.hpl.hp.com/personal/Hans_Boehm/$(PKG)/$(PKG)_source/$($(PKG)_FILE) | |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
10 $(PKG)_DEPS := |
870 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2516
diff
changeset
|
13 $(WGET) -q -O- 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/?C=M;O=D' | \ |
870 | 14 grep '<a href="gc-' | \ |
15 $(SED) -n 's,.*<a href="gc-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
16 grep -v 'alpha' | \ | |
17 head -1 | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
21 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(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
|
23 --prefix='$(HOST_PREFIX)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2694
diff
changeset
|
24 $(ENABLE_SHARED_OR_STATIC) \ |
870 | 25 --enable-threads=win32 \ |
26 --enable-cplusplus | |
27 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
28 $(MAKE) -C '$(1)' -j 1 install | |
29 endef |