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.

80 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. ifdef tbb_build_dir
  27. test_dir:=$(tbb_build_dir)
  28. else
  29. test_dir:=.
  30. endif
  31. # TODO give an error if archs doesn't match
  32. ifndef arch
  33. export arch:=xbox360
  34. endif
  35. ifndef runtime
  36. export runtime:=xdk
  37. endif
  38. native_compiler := cl
  39. export compiler ?= cl
  40. debugger ?= devenv /debugexe
  41. CMD=cmd /C
  42. CWD=$(shell cmd /C echo %CD%)
  43. RM=cmd /C del /Q /F
  44. RD=cmd /C rmdir
  45. MD=cmd /c mkdir
  46. SLASH=\\
  47. NUL = nul
  48. OBJ = obj
  49. DLL = dll
  50. LIBEXT = lib
  51. def_prefix = $(arch)
  52. # Target Windows version. Do not increase beyond 0x0500 without prior discussion!
  53. # Used as the value for macro definition opiton in compiler specific inc files.
  54. _WIN32_WINNT=0x0400
  55. TBB.LST =
  56. TBB.DEF = $(tbb_root)/src/tbb/$(def_prefix)-tbb-export.def
  57. TBB.DLL = tbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(DLL)
  58. TBB.LIB = tbb$(CPF_SUFFIX)$(DEBUG_SUFFIX).$(LIBEXT)
  59. TBB.RES =
  60. #On Windows we specify appropriate tbb library using #pragma comment
  61. LINK_TBB.LIB =
  62. MALLOC.DEF = $(MALLOC_ROOT)/$(def_prefix)-tbbmalloc-export.def
  63. MALLOC.DLL = tbbmalloc$(DEBUG_SUFFIX).$(DLL)
  64. MALLOC.LIB = tbbmalloc$(DEBUG_SUFFIX).$(LIBEXT)
  65. #On Windows we specify appropriate tbbmalloc library using #pragma comment
  66. LINK_MALLOC.LIB =
  67. MALLOC.RES =
  68. MAKE_VERSIONS = cmd /C cscript /nologo /E:jscript $(subst \,/,$(tbb_root))/build/version_info_windows.js $(compiler) $(arch) $(subst \,/,"$(CPLUS) $(CPLUS_FLAGS) $(INCLUDES)") > version_string.ver
  69. MAKE_TBBVARS = cmd /C "$(subst /,\,$(tbb_root))\build\generate_tbbvars.bat"