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.

47 lines
1.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. ifeq ($(tbb_os),mic)
  27. $(error MIC supports only cross-compilation. Specify "target=mic" instead.)
  28. endif
  29. ifneq ($(BUILDING_PHASE),1)
  30. # The same build prefix should be used in offload.inc
  31. tbb_build_prefix?=mic_icc$(CPF_SUFFIX)
  32. endif
  33. MAKE_VERSIONS=sh $(tbb_root)/build/version_info_linux.sh $(CPLUS) $(CPLUS_FLAGS) $(INCLUDES) >version_string.ver
  34. MAKE_TBBVARS=sh $(tbb_root)/build/generate_tbbvars.sh
  35. def_prefix=lin64
  36. TEST_LAUNCHER=
  37. run_cmd ?= bash $(tbb_root)/build/mic.linux.launcher.sh $(largs)
  38. # detects whether examples are being built.
  39. ifeq ($(BUILDING_PHASE),0)
  40. export UI = con
  41. export x64 = 64
  42. endif # examples