SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
112
devel/tbb/files/OpenBSD.clang.inc
Normal file
112
devel/tbb/files/OpenBSD.clang.inc
Normal file
|
@ -0,0 +1,112 @@
|
|||
# Copyright (c) 2005-2018 Intel Corporation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
COMPILE_ONLY = -c -MMD
|
||||
PREPROC_ONLY = -E -x c++
|
||||
INCLUDE_KEY = -I
|
||||
DEFINE_KEY = -D
|
||||
OUTPUT_KEY = -o #
|
||||
OUTPUTOBJ_KEY = -o #
|
||||
PIC_KEY = -fPIC
|
||||
WARNING_AS_ERROR_KEY = -Werror
|
||||
WARNING_KEY = -Wall
|
||||
TEST_WARNING_KEY = -Wextra -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor
|
||||
WARNING_SUPPRESS = -Wno-parentheses -Wno-non-virtual-dtor -Wno-dangling-else
|
||||
DYLIB_KEY = -shared
|
||||
EXPORT_KEY = -Wl,--version-script,
|
||||
LIBDL =
|
||||
|
||||
CPLUS = clang++
|
||||
CONLY = clang
|
||||
LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY)
|
||||
LIBS += -lpthread
|
||||
LINK_FLAGS = -Wl,-rpath-link=. -Wl,-rpath=. -rdynamic
|
||||
C_FLAGS = $(CPLUS_FLAGS) $(CFLAGS)
|
||||
|
||||
ifeq ($(cfg), release)
|
||||
CPLUS_FLAGS = $(ITT_NOTIFY) -DUSE_PTHREAD
|
||||
endif
|
||||
ifeq ($(cfg), debug)
|
||||
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -DUSE_PTHREAD
|
||||
endif
|
||||
|
||||
CPLUS_FLAGS += $(CXXFLAGS)
|
||||
|
||||
ifneq (,$(stdlib))
|
||||
CPLUS_FLAGS += -stdlib=$(stdlib)
|
||||
LIB_LINK_FLAGS += -stdlib=$(stdlib)
|
||||
endif
|
||||
|
||||
TBB_ASM.OBJ=
|
||||
MALLOC_ASM.OBJ=
|
||||
|
||||
ifeq (intel64,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ia32,$(arch))
|
||||
ITT_NOTIFY = -DDO_ITT_NOTIFY
|
||||
CPLUS_FLAGS += -m32 -march=pentium4
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (ppc64,$(arch))
|
||||
CPLUS_FLAGS += -m64
|
||||
LIB_LINK_FLAGS += -m64
|
||||
endif
|
||||
|
||||
ifeq (ppc32,$(arch))
|
||||
CPLUS_FLAGS += -m32
|
||||
LIB_LINK_FLAGS += -m32
|
||||
endif
|
||||
|
||||
ifeq (bg,$(arch))
|
||||
CPLUS = bgclang++
|
||||
CONLY = bgclang
|
||||
endif
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
ASM = as
|
||||
ifeq (intel64,$(arch))
|
||||
ASM_FLAGS += --64
|
||||
endif
|
||||
ifeq (ia32,$(arch))
|
||||
ASM_FLAGS += --32
|
||||
endif
|
||||
ifeq ($(cfg),debug)
|
||||
ASM_FLAGS += -g
|
||||
endif
|
||||
|
||||
ASSEMBLY_SOURCE=$(arch)-gas
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting assembler data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# End of setting tbbmalloc data.
|
||||
#------------------------------------------------------------------------------
|
84
devel/tbb/files/OpenBSD.inc
Normal file
84
devel/tbb/files/OpenBSD.inc
Normal file
|
@ -0,0 +1,84 @@
|
|||
# Copyright (c) 2005-2018 Intel Corporation
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
ifndef arch
|
||||
uname_p:=$(shell uname -p)
|
||||
ifeq ($(uname_p),i386)
|
||||
export arch:=ia32
|
||||
endif
|
||||
ifeq ($(uname_p),amd64)
|
||||
export arch:=intel64
|
||||
endif
|
||||
ifeq ($(uname_p),powerpc)
|
||||
export arch:=ppc32
|
||||
endif
|
||||
ifeq ($(uname_p),sparc64)
|
||||
export arch:=sparc
|
||||
endif
|
||||
ifeq ($(uname_p),arm)
|
||||
export arch:=armv7
|
||||
endif
|
||||
ifndef arch
|
||||
export arch:=$(uname_p)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef runtime
|
||||
clang_version:=$(shell clang -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/")
|
||||
os_version:=$(shell uname -r)
|
||||
os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
|
||||
export runtime:=cc$(clang_version)_kernel$(os_kernel_version)
|
||||
endif
|
||||
|
||||
native_compiler := clang
|
||||
export compiler ?= clang
|
||||
debugger ?= gdb
|
||||
|
||||
CMD=$(SHELL) -c
|
||||
CWD=$(shell pwd)
|
||||
RM?=rm -f
|
||||
RD?=rmdir
|
||||
MD?=mkdir -p
|
||||
NUL= /dev/null
|
||||
SLASH=/
|
||||
MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(VERSION_FLAGS) >version_string.ver
|
||||
MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
|
||||
|
||||
ifdef LD_LIBRARY_PATH
|
||||
export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
|
||||
else
|
||||
export LD_LIBRARY_PATH := .
|
||||
endif
|
||||
|
||||
####### Build settings ########################################################
|
||||
|
||||
OBJ = o
|
||||
DLL = so
|
||||
LIBEXT=so
|
||||
|
||||
TBB.LST =
|
||||
TBB.DEF =
|
||||
TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
|
||||
TBB.LIB = $(TBB.DLL)
|
||||
LINK_TBB.LIB = $(TBB.LIB)
|
||||
|
||||
MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
|
||||
MALLOC.LIB = $(MALLOC.DLL)
|
||||
LINK_MALLOC.LIB = $(MALLOC.LIB)
|
||||
|
||||
TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)
|
Loading…
Add table
Add a link
Reference in a new issue