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.

84 lines
2.7 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. ifeq ($(shell uname -m),i386)
  28. export arch:=ia32
  29. endif
  30. ifeq ($(shell uname -m),ia64)
  31. export arch:=ia64
  32. endif
  33. ifeq ($(shell uname -m),amd64)
  34. export arch:=intel64
  35. endif
  36. endif
  37. ifndef runtime
  38. gcc_version:=$(shell gcc -v 2>&1 | grep 'gcc version' | sed -e 's/^gcc version //' | sed -e 's/ .*$$//')
  39. os_version:=$(shell uname -r)
  40. os_kernel_version:=$(shell uname -r | sed -e 's/-.*$$//')
  41. export runtime:=cc$(gcc_version)_kernel$(os_kernel_version)
  42. endif
  43. native_compiler := gcc
  44. export compiler ?= gcc
  45. debugger ?= gdb
  46. CMD=$(SHELL) -c
  47. CWD=$(shell pwd)
  48. RM?=rm -f
  49. RD?=rmdir
  50. MD?=mkdir -p
  51. NUL= /dev/null
  52. SLASH=/
  53. MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(CPLUS) $(CPLUS_FLAGS) $(INCLUDES) >version_string.ver
  54. MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
  55. ifdef LD_LIBRARY_PATH
  56. export LD_LIBRARY_PATH := .:$(LD_LIBRARY_PATH)
  57. else
  58. export LD_LIBRARY_PATH := .
  59. endif
  60. ####### Build settings ########################################################
  61. OBJ = o
  62. DLL = so
  63. LIBEXT=so
  64. TBB.LST =
  65. TBB.DEF =
  66. TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
  67. TBB.LIB = $(TBB.DLL)
  68. LINK_TBB.LIB = $(TBB.LIB)
  69. MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
  70. MALLOC.LIB = $(MALLOC.DLL)
  71. LINK_MALLOC.LIB = $(MALLOC.LIB)
  72. TBB_NOSTRICT=1
  73. TEST_LAUNCHER=sh $(tbb_root)/build/test_launcher.sh $(largs)