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.

85 lines
2.9 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 = -Wall
  35. DYLIB_KEY = -shared
  36. LIBDL = -ldl
  37. TBB_NOSTRICT = 1
  38. CPLUS = g++
  39. CONLY = gcc
  40. LIB_LINK_FLAGS = -shared
  41. LIBS = -lpthread -ldl
  42. C_FLAGS = $(CPLUS_FLAGS) -x c
  43. ifeq ($(cfg), release)
  44. CPLUS_FLAGS = -O2 -DUSE_PTHREAD -pthread
  45. endif
  46. ifeq ($(cfg), debug)
  47. CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD -pthread
  48. endif
  49. ASM=
  50. ASM_FLAGS=
  51. TBB_ASM.OBJ=
  52. ifeq (powerpc,$(arch))
  53. CPLUS_FLAGS += -maix64 -Wl,-G
  54. LIB_LINK_FLAGS += -maix64 -Wl,-b64 -Wl,-brtl -Wl,-G
  55. endif
  56. #------------------------------------------------------------------------------
  57. # Setting assembler data.
  58. #------------------------------------------------------------------------------
  59. ASSEMBLY_SOURCE=ibm_aix51
  60. ifeq (powerpc,$(arch))
  61. TBB_ASM.OBJ = atomic_support.o
  62. endif
  63. #------------------------------------------------------------------------------
  64. # End of setting assembler data.
  65. #------------------------------------------------------------------------------
  66. #------------------------------------------------------------------------------
  67. # Setting tbbmalloc data.
  68. #------------------------------------------------------------------------------
  69. M_CPLUS_FLAGS = $(CPLUS_FLAGS) -fno-rtti -fno-exceptions -fno-schedule-insns2
  70. #------------------------------------------------------------------------------
  71. # End of setting tbbmalloc data.
  72. #------------------------------------------------------------------------------