You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.0 KiB

  1. # Copyright 2005-2013 Intel Corporation. All Rights Reserved.
  2. #
  3. # This file is part of Threading Building Blocks.
  4. #
  5. # Threading Building Blocks is free software; you can redistribute it
  6. # and/or modify it under the terms of the GNU General Public License
  7. # version 2 as published by the Free Software Foundation.
  8. #
  9. # Threading Building Blocks is distributed in the hope that it will be
  10. # useful, but WITHOUT ANY WARRANTY; without even the implied warranty
  11. # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with Threading Building Blocks; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. #
  18. # As a special exception, you may use this file as part of a free software
  19. # library without restriction. Specifically, if other files instantiate
  20. # templates or use macros or inline functions from this file, or you compile
  21. # this file and link it with other files to produce an executable, this
  22. # file does not by itself cause the resulting executable to be covered by
  23. # the GNU General Public License. This exception does not however
  24. # invalidate any other reasons why the executable file might be covered by
  25. # the GNU General Public License.
  26. COMPILE_ONLY = -c -MMD
  27. PREPROC_ONLY = -E -x c++
  28. INCLUDE_KEY = -I
  29. DEFINE_KEY = -D
  30. OUTPUT_KEY = -o #
  31. OUTPUTOBJ_KEY = -o #
  32. PIC_KEY = -fPIC
  33. WARNING_AS_ERROR_KEY = -Werror
  34. WARNING_KEY = -w1
  35. DYLIB_KEY = -shared
  36. EXPORT_KEY = -Wl,--version-script,
  37. NOINTRINSIC_KEY = -fno-builtin
  38. LIBDL = -ldl
  39. TBB_NOSTRICT = 1
  40. CPLUS = icpc
  41. CONLY = icc
  42. ifeq (release,$(cfg))
  43. CPLUS_FLAGS = -O2 -g -DUSE_PTHREAD
  44. else
  45. CPLUS_FLAGS = -O0 -g -DUSE_PTHREAD -DTBB_USE_DEBUG
  46. endif
  47. ifneq (,$(codecov))
  48. CPLUS_FLAGS += -prof-genx
  49. endif
  50. OPENMP_FLAG = -openmp
  51. LIB_LINK_FLAGS = -shared -i-static -Wl,-soname=$(BUILDING_LIBRARY)
  52. LIBS += -lpthread -lrt
  53. C_FLAGS = $(CPLUS_FLAGS)
  54. CPP11_FLAGS = -std=c++0x -D_TBB_CPP0X
  55. CILK_AVAILABLE = yes
  56. TBB_ASM.OBJ=
  57. MALLOC_ASM.OBJ=
  58. ifneq (00,$(lambdas)$(cpp0x))
  59. CPLUS_FLAGS += $(CPP11_FLAGS)
  60. endif
  61. CPLUS_FLAGS += -DHARNESS_INCOMPLETE_SOURCES=1 -D__TBB_MIC_NATIVE -DTBB_USE_EXCEPTIONS=0 -opt-streaming-stores never
  62. CPLUS += -mmic
  63. CONLY += -mmic
  64. LINK_FLAGS = -Wl,-rpath-link=.
  65. # Tell the icc to not link against libcilk*. Otherwise icc tries to link and emits a warning message.
  66. LIB_LINK_LIBS += -no-intel-extensions
  67. # Do not depend on libirc etc dynamic libs. It makes 'native' execution easier for the users.
  68. LIB_LINK_LIBS += -static-intel
  69. #------------------------------------------------------------------------------
  70. # Setting tbbmalloc data.
  71. #------------------------------------------------------------------------------
  72. M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions
  73. #------------------------------------------------------------------------------
  74. # End of setting tbbmalloc data.
  75. #------------------------------------------------------------------------------