|
| 1 | +# Copyright (c) 2005-2019 Intel Corporation |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +#------------------------------------------------------------------------------ |
| 16 | +# Define rules for making the tbbbind shared library. |
| 17 | +#------------------------------------------------------------------------------ |
| 18 | + |
| 19 | +tbb_root ?= "$(TBBROOT)" |
| 20 | +BUILDING_PHASE=1 |
| 21 | +include $(tbb_root)/build/common.inc |
| 22 | +CPLUS_FLAGS += $(SDL_FLAGS) |
| 23 | +DEBUG_SUFFIX=$(findstring _debug,_$(cfg)) |
| 24 | + |
| 25 | +#------------------------------------------------------------ |
| 26 | +# Define static pattern rules dealing with .cpp source files |
| 27 | +#------------------------------------------------------------ |
| 28 | +$(warning CONFIG: cfg=$(cfg) arch=$(arch) compiler=$(compiler) target=$(target) runtime=$(runtime)) |
| 29 | + |
| 30 | +.PHONY: tbbbind |
| 31 | +.PRECIOUS: %.$(OBJ) |
| 32 | + |
| 33 | +VPATH = $(tbb_root)/src/tbb/$(ASSEMBLY_SOURCE) $(tbb_root)/src/tbb $(tbb_root)/src/old $(tbb_root)/src/rml/client |
| 34 | + |
| 35 | +CPLUS_FLAGS += $(PIC_KEY) $(DSE_KEY) |
| 36 | + |
| 37 | +# Suppress superfluous warnings for tbbbind compilation |
| 38 | +WARNING_KEY += $(WARNING_SUPPRESS) |
| 39 | + |
| 40 | +include $(tbb_root)/build/common_rules.inc |
| 41 | + |
| 42 | +TBBBIND.OBJ = tbbbind.$(OBJ) |
| 43 | + |
| 44 | +ifneq (,$(TBBBIND.DEF)) |
| 45 | +tbbbind.def: $(TBBBIND.DEF) |
| 46 | + $(CPLUS) $(PREPROC_ONLY) $< $(CPLUS_FLAGS) $(INCLUDES) > $@ |
| 47 | + |
| 48 | +LIB_LINK_FLAGS += $(EXPORT_KEY)tbbbind.def |
| 49 | +$(TBBBIND.DLL): tbbbind.def |
| 50 | +endif |
| 51 | + |
| 52 | +ifneq (,$(TBBBIND.DLL)) |
| 53 | +$(TBBBIND.DLL): BUILDING_LIBRARY = $(TBBBIND.DLL) |
| 54 | +$(TBBBIND.DLL): $(TBBBIND.OBJ) $(TBBBIND_NO_VERSION.DLL) |
| 55 | + $(LIB_LINK_CMD) $(LIB_OUTPUT_KEY)$(TBBBIND.DLL) $(TBBBIND.OBJ) $(HWLOC.LIB) $(LINK_TBB.LIB) $(LIB_LINK_FLAGS) |
| 56 | +endif |
| 57 | + |
| 58 | +ifneq (,$(TBBBIND_NO_VERSION.DLL)) |
| 59 | +$(TBBBIND_NO_VERSION.DLL): |
| 60 | + echo "INPUT ($(TBBBIND.DLL))" > $(TBBBIND_NO_VERSION.DLL) |
| 61 | +endif |
| 62 | + |
| 63 | +tbbbind: $(TBB.DLL) $(TBBBIND.DLL) |
| 64 | + |
| 65 | +#clean: |
| 66 | +# $(RM) *.$(OBJ) *.$(DLL) *.res *.map *.ilk *.pdb *.exp *.manifest *.tmp *.d core core.*[0-9][0-9] *.ver |
| 67 | + |
| 68 | +# Include automatically generated dependencies |
| 69 | +-include *.d |
0 commit comments