1- # Copyright (c) 2017 Intel Corporation
1+ # Copyright (c) 2017-2018 Intel Corporation
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
@@ -27,10 +27,6 @@ ifeq (, $(filter $(MAKECMDGOALS), clean clean_all))
2727 $(info Threading backend was not specified; using TBB)
2828 backend=tbb
2929 endif
30- ifeq (, $(filter $(linkage), shared static none))
31- $(warning using linkage=none (header-only implementation))
32- linkage=none
33- endif
3430endif
3531
3632ifndef os_name
@@ -57,20 +53,12 @@ endif # !os_name
5753cfg ?= release
5854stdver ?= c++11
5955
60- override INCLUDES += -I$(proj_root)/include -I$(proj_root)/test
56+ override INCLUDES += -I$(proj_root)/include -I$(proj_root)/test
6157
6258TEST_MACRO += -D__PSTL_TEST_SUCCESSFUL_KEYWORD=1
6359
6460ifeq ($(backend), tbb)
65- BACKEND_MACRO += -D__PSTL_USE_TBB
66- endif
67-
68- ifneq (, $(filter $(linkage), shared))
69- LINKAGE_MACRO += -D__PSTL_SHARED_LINKAGE
70- endif
71-
72- ifeq (, $(filter $(linkage), none))
73- LINKAGE_MACRO += -D__PSTL_HEADER_ONLY=0
61+ BACKEND_MACRO += -D__PSTL_PAR_BACKEND_TBB
7462endif
7563
7664target ?= $(os_name)
10492
10593
10694OPTIMIZATION_ENABLED_FLAGS += $(XHOST_FLAG)
107- OPTIMIZATION_DISABLED_FLAGS += $(XHOST_FLAG)
95+ OPTIMIZATION_DISABLED_FLAGS += $(XHOST_FLAG)
10896
10997
11098ifeq ($(cfg), debug)
@@ -120,7 +108,6 @@ DYN_LDFLAGS += $(PSTL_ARCH)
120108CPLUS_FLAGS += $(TEST_MACRO)
121109CPLUS_FLAGS += $(INCLUDES)
122110CPLUS_FLAGS += $(BACKEND_MACRO)
123- CPLUS_FLAGS += $(LINKAGE_MACRO)
124111CPLUS_FLAGS += $(CXXFLAGS)
125112CPLUS_FLAGS += $(OPTIMIZATION_KEYS)
126113
0 commit comments