Mercurial > mxe-octave
annotate src/libgomp.mk @ 3441:be097438c96f
make native gnu-linux builds work for pkg-config and libgomp
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Jan 2014 05:05:01 -0500 |
parents | c9ade6d47f3a |
children | 13be64f9f16d |
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) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
6 $(PKG)_CHECKSUM = $(build-gcc_CHECKSUM) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
7 $(PKG)_SUBDIR = $(build-gcc_SUBDIR) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
8 $(PKG)_FILE = $(build-gcc_FILE) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
9 $(PKG)_URL = $(build-gcc_URL) |
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
10 $(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
|
11 $(PKG)_DEPS := pthreads |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
14 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
|
15 endef |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 |
3439
c9ade6d47f3a
Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents:
3421
diff
changeset
|
17 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
|
18 $(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
|
19 endif |
c9ade6d47f3a
Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents:
3421
diff
changeset
|
20 |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 define $(PKG)_BUILD |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 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
|
23 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
|
24 $(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
|
25 --target='$(TARGET)' \ |
3421
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
26 --prefix='$(HOST_PREFIX)' \ |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --enable-version-specific-runtime-libs \ |
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --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
|
29 $(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
|
30 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) |
3421
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
31 $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '$(JOBS)' |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
32 $(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
|
33 |
3421
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
34 #'$(MXE_CC)' \ |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
35 # -W -Wall -Werror -ansi -pedantic \ |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
36 # '$(2).c' -o '$(HOST_BINDIR)/test-libgomp.exe' \ |
7e0b4087cd58
Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
37 # -fopenmp |
943
bc40d4f60207
provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 endef |