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.

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