annotate src/libgomp.mk @ 4208:8198522d93c4

* src/libgomp.mk: add dependancy to build-gcc (Bug #48976)
author John D
date Mon, 05 Sep 2016 10:12:49 -0400
parents c7e31c07c915
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: 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)
3903
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
6 $(PKG)_VERSION := $(build-gcc_VERSION)
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
4208
8198522d93c4 * src/libgomp.mk: add dependancy to build-gcc (Bug #48976)
John D
parents: 4058
diff changeset
14 ifeq ($(USE_SYSTEM_GCC),no)
8198522d93c4 * src/libgomp.mk: add dependancy to build-gcc (Bug #48976)
John D
parents: 4058
diff changeset
15 $(PKG)_DEPS += build-gcc
8198522d93c4 * src/libgomp.mk: add dependancy to build-gcc (Bug #48976)
John D
parents: 4058
diff changeset
16 endif
8198522d93c4 * src/libgomp.mk: add dependancy to build-gcc (Bug #48976)
John D
parents: 4058
diff changeset
17
943
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_UPDATE
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
19 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
20 endef
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
3439
c9ade6d47f3a Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents: 3421
diff changeset
22 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
23 $(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
24 endif
c9ade6d47f3a Provide new variable to check whether we are doing a Windows build.
John W. Eaton <jwe@octave.org>
parents: 3421
diff changeset
25
943
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 define $(PKG)_BUILD
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 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
28 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
29 $(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
30 --target='$(TARGET)' \
3421
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
31 --prefix='$(HOST_PREFIX)' \
943
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --enable-version-specific-runtime-libs \
3699
ed7c61a97068 also disable multilib when building libgomp
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
33 --disable-multilib \
943
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --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
35 $(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
36 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS)
3421
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
37 $(MAKE) -C '$(1)/build/$(TARGET)/libgomp' -j '$(JOBS)'
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
38 $(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
39
3903
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
40 # also copy omp.h to where other programs will see it
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
41 $(INSTALL) -d "$(3)$(HOST_INCDIR)"
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
42 $(INSTALL) -m644 '$(1)/build/$(TARGET)/libgomp/omp.h' '$(3)$(HOST_INCDIR)/'
4058
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents: 3903
diff changeset
43 if [ x"$(USE_SYSTEM_GCC)" == "xno" ]; then \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents: 3903
diff changeset
44 $(INSTALL) -d "$(3)/$(BUILD_TOOLS_PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/"; \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents: 3903
diff changeset
45 cat '$(1)/build/$(TARGET)/libgomp/libgomp.spec' | $(SED) 's,-lgomp,-L$(HOST_LIBDIR)/gcc/$(TARGET)/$($(PKG)_VERSION) -lgomp,' > '$(3)$(BUILD_TOOLS_PREFIX)/lib/gcc/$(TARGET)/$($(PKG)_VERSION)/libgomp.spec'; \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents: 3903
diff changeset
46 fi
3903
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
47
3421
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
48 #'$(MXE_CC)' \
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
49 # -W -Wall -Werror -ansi -pedantic \
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
50 # '$(2).c' -o '$(HOST_BINDIR)/test-libgomp.exe' \
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
51 # -fopenmp
943
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 endef