annotate src/mingw-utils.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 951da75fd09c
children
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: 2085
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.
1425
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := mingw-utils
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 716f51d7622b36448fc1e92d2c69d8f41b1cc2df
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$(word 1,$(subst -, ,$($(PKG)_VERSION)))
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-mingw32-src.tar.lzma
2085
3ca30d0975e4 packages libgnurx mingwrt mingw-utils w32api: fix upstream URLs
Mark Brand <mabrand@mabrand.nl>
parents: 1468
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mingw/MinGW/Extension/$(PKG)/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS :=
1425
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://sourceforge.net/projects/mingw/files/MinGW/Extension/mingw-utils/' | \
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1425
diff changeset
14 $(SED) -n 's,.*mingw-utils-\([0-9][^"]*\)/".*,\1,p' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1425
diff changeset
15 head -1
1425
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # native build
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cp -Rp '$(1)' '$(1).native'
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1).native' && ./configure \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
22 $(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
23 --prefix='$(BUILD_TOOLS_PREFIX)'
1425
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(MAKE) -C '$(1).native/reimp' -j '$(JOBS)'
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
25 $(INSTALL) -m755 '$(1).native/reimp/reimp' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)reimp'
1425
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 # cross build
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
29 $(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: 2525
diff changeset
30 $(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
31 --prefix='$(HOST_PREFIX)'
1425
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j '$(JOBS)'
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 $(MAKE) -C '$(1)' -j 1 install
6f2842726259 new package: mingw-utils
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 endef