summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index badfc9d..9f1d074 100644
--- a/common.mk
+++ b/common.mk
@@ -73,17 +73,30 @@ LIBS+= \
#-lc++abi
#-lc++fs
#-lstdc++fs
+LLVMPROFDATA=llvm-profdata-11
+LLVMCOV=llvm-cov-11
+CXXTYPE=clang++
else ifeq ($(CXX),clang++-14)
LIBS+= \
-fuse-ld=lld-14 \
-lstdc++
+LLVMPROFDATA=llvm-profdata-14
+LLVMCOV=llvm-cov-14
+CXXTYPE=clang++
else ifeq ($(CXX),clang++-13)
LIBS+= \
-fuse-ld=lld-13 \
-lstdc++
+LLVMPROFDATA=llvm-profdata-13
+LLVMCOV=llvm-cov-13
+CXXTYPE=clang++
else
LIBS+= \
-lstdc++ \
-lstdc++fs
+CXXTYPE=g++
endif
+SRC_ROOT=$(shell echo $(MAKEFILE_LIST) | tr " " "\n" | grep common.mk | sed -e 's/\([^ ]*\)common.mk/\1/g')
+VERSION=$(shell dpkg-parsechangelog --show-field Version --file $(SRC_ROOT)/debian/changelog)
+CXXFLAGS+=-DVERSION=\"$(VERSION)\"