components/intel-openmp/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Sun, 26 Mar 2017 13:26:42 -0700
changeset 7803 bab5480f2396
parent 7771 46912a8a1f29
permissions -rw-r--r--
23209384 Restore developer docs for gdk-pixbuf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     1
#
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     3
#
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     7
#
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    12
#
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    18
#
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    20
#
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    21
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    22
#
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    23
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    24
export PARFAIT_BUILD=no
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    25
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    26
BUILD_BITS = 64_and_32
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    27
COMPILER = gcc
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    28
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    29
include ../../make-rules/shared-macros.mk
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    30
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    31
# This and llvm must use the same version of gcc.
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    32
GCC_ROOT=/usr/gcc/5
6923
338aea22bf22 24440950 GCC 4.9 should be updated to 4.9.4
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6640
diff changeset
    33
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    34
COMPONENT_NAME        = libomp
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    35
COMPONENT_VERSION     = 20151009
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    36
COMPONENT_SRC         = $(COMPONENT_NAME)_$(COMPONENT_VERSION)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE     = $(COMPONENT_SRC)_oss.tgz
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_HASH= \
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    39
         sha256:d4254420d0081c6844eb05237bab5e731e669a429a9c1c87e2e0221ccf0de6ac
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    40
COMPONENT_ARCHIVE_URL = http://www.openmprtl.org/sites/default/files/$(COMPONENT_ARCHIVE)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    41
COMPONENT_PROJECT_URL = http://www.openmprtl.org/
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    42
COMPONENT_BUGDB       = library/intel-openmp
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    43
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    44
TPNO = 27154
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    45
6640
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    46
# Uses an ON header file with S12-only features.
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    47
ifeq ($(BUILD_TYPE), evaluation)
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    48
BUILD_32_and_64=
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    49
INSTALL_32_and_64=
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    50
PUBLISH_STAMP=
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    51
endif
fd848af73662 24490016 do not publish OpenMP when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6624
diff changeset
    52
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    53
# There are no tests for this version of the Intel OpenMP Library
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    54
# OpenMP tests will be integrated in ${WS_TOP}/components/bots.
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    55
BUILD_STYLE = cmake
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    56
CMAKE_BUILD_TYPE = Release
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    57
TEST_TARGET = $(NO_TESTS)
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    58
include $(WS_MAKE_RULES)/common.mk
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    59
6923
338aea22bf22 24440950 GCC 4.9 should be updated to 4.9.4
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 6640
diff changeset
    60
export PATH=/usr/gnu/bin:$(GCC_ROOT)/bin:/usr/bin:/usr/perl5/5.22/bin
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    61
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    62
PATCH_LEVEL := 0
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    63
DEBUG_BUILD := 0
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    64
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    65
CFLAGS += -fno-omit-frame-pointer
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    66
CFLAGS.gcc.i386  += -march=opteron -mtune=opteron
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    67
CFLAGS.gcc.sparc += -mtune=ultrasparc3 -mcpu=ultrasparc3
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    68
CFLAGS.gcc.sparc += -mvis2 -mhard-float -mno-unaligned-doubles
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    69
CFLAGS.gcc.sparc += -mimpure-text
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    70
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    71
OMP_STATS = off
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    72
GFLAG =
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    73
DFLAG = -DNDEBUG
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    74
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    75
ifeq ($(DEBUG_BUILD),1)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    76
  OMP_STATS = on
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    77
  GFLAG = -g3
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    78
  DFLAG =
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    79
endif
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    80
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    81
# Because of the weird way in which libiomp wants to build itself,
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    82
# we can't pass a -std=<N> on compile line. This is done internally
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    83
# by the cmake configuration files.
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    84
# The Userland default flags for GCC are broken.
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    85
CFLAGS += $(GFLAG) $(DFLAG) -Wall
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    86
CFLAGS += -fkeep-static-consts -fno-strict-aliasing
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    87
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    88
CXXFLAGS += $(GFLAG) $(DFLAG) -Wall
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    89
CXXFLAGS += -fkeep-static-consts -fno-strict-aliasing
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    90
CXXFLAGS += -Wl,-z -Wl,relax=comdat
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    91
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    92
CPPFLAGS += -D__EXTENSIONS__=1 -DKMP_GOMP_COMPAT=1
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    93
CPPFLAGS += -DKMP_TDATA_GTID=1
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    94
LDFLAGS += -z ignore -z relax=comdat
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    95
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    96
LIBIOMP_RUNPATH_32	= /usr/gcc/5/lib
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
    97
LIBIOMP_RUNPATH_64	= /usr/gcc/5/lib/$(MACH64)
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    98
LIBIOMP_RUNPATH	= $(LIBIOMP_RUNPATH_$(BITS))
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    99
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   100
CFLAGS		+= -Wl,-R -Wl,$(LIBIOMP_RUNPATH)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   101
CXXFLAGS	+= -Wl,-R -Wl,$(LIBIOMP_RUNPATH)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   102
LDFLAGS		+= -R$(LIBIOMP_RUNPATH)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   103
LD_OPTIONS	= -z ignore -z relax=comdat
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   104
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   105
CMAKE_OPTIONS += -DCMAKE_MAKE_PROGRAM=$(GMAKE)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   106
CMAKE_OPTIONS += -DCMAKE_SHARED_LIBRARY_SUFFIX=".so.5"
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   107
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   108
CMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE=1
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   109
CMAKE_OPTIONS += -DCOMPILER_SUPPORTS_QUAD_PRECISION=true
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   110
CMAKE_OPTIONS += -DDEBUG_BUILD=false
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   111
CMAKE_OPTIONS += -DLIBOMP_OMPT_SUPPORT=on
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   112
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   113
CMAKE_OPTIONS += -DLIBOMP_USE_ADAPTIVE_LOCKS=true
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   114
CMAKE_OPTIONS += -DLIBOMP_STATS=$(OMP_STATS)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   115
CMAKE_OPTIONS += -DLIBOMP_FORTRAN_MODULES=true
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   116
CMAKE_OPTIONS += -DLIBOMP_VERSION=5
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   117
CMAKE_OPTIONS += -DLIBOMP_OMP_VERSION=41
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   118
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   119
COMPONENT_BUILD_ENV += LD_OPTIONS="$(LD_OPTIONS)"
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   120
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   121
# THe tarball extracts to 'libomp_oss' which doesn't match
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   122
# the name constructed in $(COMPONENT_SRC). We fix that here.
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   123
COMPONENT_POST_UNPACK_ACTION = \
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   124
      $(MV) libomp_oss $(COMPONENT_SRC)
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   125
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   126
REQUIRED_PACKAGES += developer/build/cmake
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   127
REQUIRED_PACKAGES += developer/build/pkg-config
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   128
REQUIRED_PACKAGES += developer/gcc/gcc-c++-5
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   129
REQUIRED_PACKAGES += developer/gcc/gcc-c-5
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   130
REQUIRED_PACKAGES += developer/gcc/gcc-common-5
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   131
REQUIRED_PACKAGES += developer/gnu-binutils
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   132
REQUIRED_PACKAGES += system/core-os
7771
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   133
REQUIRED_PACKAGES += system/library/gcc/gcc-runtime-5
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   134
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime-5
46912a8a1f29 25639599 llvm makefile cleanup and optimized build
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 6923
diff changeset
   135
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime-5
6624
c6cfc48dd184 PSARC 2016/236 Intel OpenMP Runtime
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   136
REQUIRED_PACKAGES += system/library/math