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.

100 lines
3.8 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 -xMMD -errtags
  27. PREPROC_ONLY = -E -xMMD
  28. INCLUDE_KEY = -I
  29. DEFINE_KEY = -D
  30. OUTPUT_KEY = -o #
  31. OUTPUTOBJ_KEY = -o #
  32. PIC_KEY = -KPIC
  33. DYLIB_KEY = -G
  34. LIBDL = -ldl
  35. # WARNING_AS_ERROR_KEY = -errwarn=%all
  36. WARNING_AS_ERROR_KEY = Warning as error
  37. # Supported Solaris Studio* 12.2 and above, remove ',inlasmpnu' in the line below to build by compiler prior Solaris Studio* 12.2
  38. WARNING_SUPPRESS = -erroff=unassigned,attrskipunsup,badargtype2w,badbinaryopw,wbadasg,wvarhidemem,inlasmpnu
  39. tbb_strict=0
  40. TBB_NOSTRICT = 1
  41. CPLUS = CC
  42. CONLY = cc
  43. LIB_LINK_FLAGS = -G -R . -M$(tbb_root)/build/suncc.map.pause
  44. LINK_FLAGS += -M$(tbb_root)/build/suncc.map.pause
  45. LIBS = -lpthread -lrt -R .
  46. C_FLAGS = $(CPLUS_FLAGS)
  47. #TODO: the $(stdlib) instead of hard-wiring STLPort
  48. ifeq ($(cfg), release)
  49. CPLUS_FLAGS = -mt -xO2 -library=stlport4 -DUSE_PTHREAD $(WARNING_SUPPRESS)
  50. endif
  51. ifeq ($(cfg), debug)
  52. CPLUS_FLAGS = -mt -DTBB_USE_DEBUG -g -library=stlport4 -DUSE_PTHREAD $(WARNING_SUPPRESS)
  53. endif
  54. ASM=
  55. ASM_FLAGS=
  56. TBB_ASM.OBJ=
  57. ifeq (intel64,$(arch))
  58. CPLUS_FLAGS += -m64
  59. ASM_FLAGS += -m64
  60. LIB_LINK_FLAGS += -m64
  61. endif
  62. ifeq (ia32,$(arch))
  63. CPLUS_FLAGS += -m32
  64. LIB_LINK_FLAGS += -m32
  65. endif
  66. # TODO: verify whether -m64 implies V9 on relevant Sun Studio versions
  67. # (those that handle gcc assembler syntax)
  68. ifeq (sparc,$(arch))
  69. CPLUS_FLAGS += -m64
  70. LIB_LINK_FLAGS += -m64
  71. endif
  72. export TBB_CUSTOM_VARS_SH=export CXXFLAGS="-I$${TBBROOT}/include -library=stlport4 $(CXXFLAGS) -M$${TBBROOT}/build/suncc.map.pause"
  73. export TBB_CUSTOM_VARS_CSH=setenv CXXFLAGS "-I$${TBBROOT}/include -library=stlport4 $(CXXFLAGS) -M$${TBBROOT}/build/suncc.map.pause"
  74. #------------------------------------------------------------------------------
  75. # Setting assembler data.
  76. #------------------------------------------------------------------------------
  77. ASSEMBLY_SOURCE=$(arch)-fbe
  78. #------------------------------------------------------------------------------
  79. # End of setting assembler data.
  80. #------------------------------------------------------------------------------
  81. #------------------------------------------------------------------------------
  82. # Setting tbbmalloc data.
  83. #------------------------------------------------------------------------------
  84. M_INCLUDES = $(INCLUDES) -I$(MALLOC_ROOT) -I$(MALLOC_SOURCE_ROOT)
  85. M_CPLUS_FLAGS = $(CPLUS_FLAGS)
  86. #------------------------------------------------------------------------------
  87. # End of setting tbbmalloc data.
  88. #------------------------------------------------------------------------------