1 # Copyright 2005-2009 Intel Corporation. All Rights Reserved.
3 # This file is part of Threading Building Blocks.
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.
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.
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
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.
29 include $(tbb_root)/build/common.inc
32 override work_dir = $(CWD)
34 override tbb_root = $(srcdir)
37 .PHONY: all tbb tbbmalloc
39 #workaround for non-depend targets tbb and tbbmalloc which both depend on version_string.tmp
40 #According to documentation submakes should run in parallel
41 .NOTPARALLEL: tbb tbbmalloc
46 $(MAKE) -r -f $(tbb_root)/build/Makefile.tbb cfg=release tbb_root=$(tbb_root)
49 $(MAKE) -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc tbb_root=$(tbb_root)
52 $(INSTALL) $(work_dir)/lib*.so* $(DESTDIR)$(libdir)
57 -rm -f *.def *.tmp tbbvars.*