Mercurial > mxe-octave
annotate src/libgomp.mk @ 3705:d30ced3f489e
libpng: update to 1.6.13
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 02 Sep 2014 11:45:16 -0400 |
parents | ed7c61a97068 |
children | 385f5f4412b7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2153
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. |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := libgomp |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
5 $(PKG)_IGNORE = $(build-gcc_IGNORE) |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3441
diff
changeset
|
6 $(PKG)_VERSION := 4.7.0 |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
7 $(PKG)_CHECKSUM = $(build-gcc_CHECKSUM) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
8 $(PKG)_SUBDIR = $(build-gcc_SUBDIR) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
9 $(PKG)_FILE = $(build-gcc_FILE) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
10 $(PKG)_URL = $(build-gcc_URL) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_URL_2 = $(build-gcc_URL_2) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
12 $(PKG)_DEPS := pthreads |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
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-gcc_VERSION) |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
3439
c9ade6d47f3a
Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents:
3421
diff
changeset
|
18 ifeq ($(MXE_WINDOWS_BUILD),yes) |
3441
be097438c96f
make native gnu-linux builds work for pkg-config and libgomp
John W. Eaton <jwe@octave.org>
parents:
3439
diff
changeset
|
19 $(PKG)_SYSDEP_CONFIGURE_OPTIONS := LIBS='-lws2_32' |
3439
c9ade6d47f3a
Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents:
3421
diff
changeset
|
20 endif |
c9ade6d47f3a
Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents:
3421
diff
changeset
|
21 |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 define $(PKG)_BUILD |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 mkdir -p '$(1)/build/$(TARGET)/libgomp' |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)/build/$(TARGET)/libgomp' && '$(1)/libgomp/configure' \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --target='$(TARGET)' \ |
3421
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
27 --prefix='$(HOST_PREFIX)' \ |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --enable-version-specific-runtime-libs \ |
3699
ed7c61a97068
also disable multilib when building libgomp
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
29 --disable-multilib \ |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --with-gnu-ld \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2365
diff
changeset
|
31 $(ENABLE_SHARED_OR_STATIC) \ |
3439
c9ade6d47f3a
Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents:
3421
diff
changeset
|
32 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) |
3421
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
33 $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '$(JOBS)' |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
34 $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '1' install DESTDIR='$(3)' |
945
5d47a5e4b43a
add test program for package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
943
diff
changeset
|
35 |
3421
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
36 #'$(MXE_CC)' \ |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
37 # -W -Wall -Werror -ansi -pedantic \ |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
38 # '$(2).c' -o '$(HOST_BINDIR)/test-libgomp.exe' \ |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
39 # -fopenmp |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 endef |