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.

93 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. ifndef arch
  27. arch:=$(shell uname -p)
  28. ifeq ($(arch),i386)
  29. ifeq ($(shell isainfo -b),64)
  30. arch:=intel64
  31. else
  32. arch:=ia32
  33. endif
  34. endif
  35. export arch
  36. # For non-IA systems running Sun OS, 'arch' will contain whatever is printed by uname -p.
  37. # In particular, for SPARC architecture it will contain "sparc".
  38. endif
  39. ifndef runtime
  40. gcc_version:=$(shell gcc -v 2>&1 | grep 'gcc version' | sed -e 's/^gcc version //' | sed -e 's/ .*$$//')
  41. os_version:=$(shell uname -r)
  42. os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
  43. export runtime:=cc$(gcc_version)_kernel$(os_kernel_version)
  44. endif
  45. ifeq ($(arch),sparc)
  46. native_compiler := gcc
  47. export compiler ?= gcc
  48. else
  49. native_compiler := suncc
  50. export compiler ?= suncc
  51. endif
  52. # debugger ?= gdb
  53. CMD=$(SHELL) -c
  54. CWD=$(shell pwd)
  55. RM?=rm -f
  56. RD?=rmdir
  57. MD?=mkdir -p
  58. NUL= /dev/null
  59. SLASH=/
  60. MAKE_VERSIONS=bash $(tbb_root)/build/version_info_sunos.sh $(CPLUS) $(CPLUS_FLAGS) $(INCLUDES) >version_string.ver
  61. MAKE_TBBVARS=bash $(tbb_root)/build/generate_tbbvars.sh
  62. ifdef LD_LIBRARY_PATH
  63. export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
  64. else
  65. export LD_LIBRARY_PATH := .
  66. endif
  67. ####### Build settings ########################################################
  68. OBJ = o
  69. DLL = so
  70. LIBEXT=so
  71. TBB.LST =
  72. TBB.DEF =
  73. TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
  74. TBB.LIB = $(TBB.DLL)
  75. LINK_TBB.LIB = $(TBB.LIB)
  76. MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
  77. MALLOC.LIB = $(MALLOC.DLL)
  78. LINK_MALLOC.LIB = $(MALLOC.LIB)
  79. MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
  80. TBB_NOSTRICT=1
  81. TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)