annotate src/libgomp.mk @ 4058:c7e31c07c915

of-sparsrb: add new package * src/librsb.mk: new file * src/librsb-1-nobzero.patch: new patch * src/of-sparsersb.mk: new file * src/of-sparsersb-1-cross-build.patch: new patch * src/libgomp.mk: install libgomp.spec to build tools * build_packages.m: add sparserb package * index.html: add librsb and of-sparsersb packages * Makefile.in: add sparsersb package to of-
author John Donoghue <john.donoghue@ieee.org>
date Sun, 22 Nov 2015 19:01:31 -0500
parents 385f5f4412b7
children 8198522d93c4
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
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
3903
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
36 # 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
37 $(INSTALL) -d "$(3)$(HOST_INCDIR)"
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
38 $(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
39 if [ x"$(USE_SYSTEM_GCC)" == "xno" ]; then \
c7e31c07c915 of-sparsrb: add new package
John Donoghue <john.donoghue@ieee.org>
parents: 3903
diff changeset
40 $(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
41 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
42 fi
3903
385f5f4412b7 of-nurbs: fix cross compile, install libgomp's omp.h
John Donoghue
parents: 3699
diff changeset
43
3421
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
44 #'$(MXE_CC)' \
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
45 # -W -Wall -Werror -ansi -pedantic \
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
46 # '$(2).c' -o '$(HOST_BINDIR)/test-libgomp.exe' \
7e0b4087cd58 Add octave forge tsa package
John Donoghue <john.donoghue@ieee.org>
parents: 3048
diff changeset
47 # -fopenmp
943
bc40d4f60207 provide GCC OpenMP functionality as extra package libgomp (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 endef