diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-27 19:42:08 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-27 19:42:08 +0100 |
commit | f44d36b05e43cabde31aeaba5d25fded140345a1 (patch) | |
tree | 1024a76cb1ae671c9445dcc379cb9eddd26922aa /common.mk | |
parent | 789e5555ab4c44a1ae779eccf6ccf8340602cf22 (diff) |
Added diff.cpp
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -61,3 +61,11 @@ LIBS+=-lboost_filesystem -lpthread LIBS+=-lSQLiteCpp $(shell pkg-config --libs qrcodegencpp GraphicsMagick++ fmt sqlite3) LIBS+=-lreichwein +SRC_ROOT=$(shell echo $(MAKEFILE_LIST) | tr " " "\n" | grep common.mk | sed -e 's/\([^ ]*\)common.mk/\1/g') +ifeq ($(SRC_ROOT),) +SRC_ROOT=. +endif + +VERSION=$(shell dpkg-parsechangelog --show-field Version --file $(SRC_ROOT)/debian/changelog) +CXXFLAGS+=-DWHITEBOARD_VERSION=\"$(VERSION)\" + |