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.

78 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. ####### Detections and Commands ###############################################
  27. # Must set def_prefix according to target architecture detected above
  28. ifeq (ia32,$(arch))
  29. def_prefix = lin32
  30. endif
  31. ifeq (arm,$(findstring arm,$(arch)))
  32. def_prefix = lin32
  33. endif
  34. ifeq (64,$(findstring 64,$(arch)))
  35. def_prefix = lin64
  36. endif
  37. gcc_version = $(shell $(tbb_tool_prefix)g++ -dumpversion)
  38. ifdef ANDROID_NDK_ROOT
  39. $(warning "NDK version $(ANDROID_NDK_ROOT)")
  40. ndk_version:= $(lastword $(subst -, ,$(ANDROID_NDK_ROOT)))
  41. else
  42. $(warning "NDK version not set in environment, using \'unknown\' instead.")
  43. ndk_version:=unknown
  44. endif
  45. export runtime:=$(target)_cc$(gcc_version)_NDK$(ndk_version)_version_$(target_os_version)
  46. AR = $(tbb_tool_prefix)ar
  47. MAKE_VERSIONS=sh $(tbb_root)/build/version_info_android.sh $(CPLUS) $(CPLUS_FLAGS) $(CXX_ONLY_FLAGS) $(INCLUDES) >version_string.ver
  48. ####### Build settings ########################################################
  49. # No SONAME_SUFFIX for Android allowed in library names
  50. TBB.LST = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.lst
  51. TBB.DEF = $(TBB.LST:.lst=.def)
  52. TBB.DLL = libtbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
  53. TBB.LIB = $(TBB.DLL)
  54. TBB_NO_VERSION.DLL=
  55. LINK_TBB.LIB = $(TBB.LIB)
  56. MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
  57. MALLOC.DLL = libtbbmalloc$(DEBUG_SUFFIX).$(DLL)
  58. MALLOC.LIB = $(MALLOC.DLL)
  59. MALLOC_NO_VERSION.DLL=
  60. LINK_MALLOC.LIB = $(MALLOC.LIB)
  61. MALLOCPROXY.DEF = $(MALLOC_ROOT)/$(def_prefix)-proxy-export.def
  62. MALLOCPROXY.DLL = libtbbmalloc_proxy$(DEBUG_SUFFIX).$(DLL)
  63. MALLOCPROXY_NO_VERSION.DLL=
  64. MALLOCPROXY.LIB = $(MALLOCPROXY.DLL)
  65. LINK_MALLOCPROXY.LIB = $(MALLOCPROXY.LIB)
  66. TEST_LAUNCHER=
  67. run_cmd ?= -sh $(tbb_root)/build/android.linux.launcher.sh $(largs)