diff options
Diffstat (limited to 'pstl/build/unix.inc')
-rw-r--r-- | pstl/build/unix.inc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pstl/build/unix.inc b/pstl/build/unix.inc new file mode 100644 index 00000000000..595fde3b8ae --- /dev/null +++ b/pstl/build/unix.inc @@ -0,0 +1,51 @@ +#===-- unix.inc ----------------------------------------------------------===## +# +# The LLVM Compiler Infrastructure +# +# This file is dual licensed under the MIT and the University of Illinois Open +# Source Licenses. See LICENSE.TXT for details. +# +#===----------------------------------------------------------------------===## + +PYTHON = python +KEY = - +QKEY = $(KEY)q +FKEY = $(KEY) +FQKEY = $(KEY) +MACHINE_KEY = $(KEY)m +OBJ_SFX = .o +DEL_CMD = rm $(KEY)f +RUN_CMD = ./ +COMMAND_SEPARATOR = ; +compiler ?= icc +COMPILER_NOLOGO_KEY = +OPTIMIZATION_DISABLED_FLAGS = $(KEY)O0 $(KEY)g +OPTIMIZATION_ENABLED_FLAGS += $(KEY)O2 +TBB_LIB_NAME = tbb +CPLUS = $(compiler) +LD = $(CPLUS) + +USE_SHARED_CPPRUNTIME_KEY = +LINK_KEY = $(KEY)l + +LD_OUT_KEY = $(KEY)o +DYN_LDFLAGS += -L. -L$(proj_root)/build + +ifneq ($(PSTL_LIB_NAME), ) + PSTL_LIB_LINK += $(LINK_KEY)$(PSTL_LIB_NAME)$(PSTL_LIB_EXT) +endif + +ifeq ($(backend), tbb) + DYN_LDFLAGS += $(LINK_KEY)$(TBB_LIB_NAME) +endif + + +ifeq ($(arch),intel64) + PSTL_ARCH = $(MACHINE_KEY)64 +else ifeq ($(arch),ia32) + PSTL_ARCH = $(MACHINE_KEY)32 +else ifeq ($(arch),) + $(info arch=native by default) +else + PSTL_ARCH = $(MACHINE_KEY)$(arch) +endif |