summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index bf199e0..e2d946c 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,4 @@
-VERSION = 1.0
+VERSION = 1.1
PKG_CONFIG = pkg-config
@@ -16,4 +16,14 @@ ERR =
# uncomment to enable errors
# ERR = -DERR
+# add compilation details to VERSION variable
+ifneq ($(GIT),)
+ VERSION := $(VERSION)"\\nlibgit2 "`$(PKG_CONFIG) --modversion $(GITLIB)`
+endif
+ifeq ($(ERR),)
+ VERSION := $(VERSION)"\\nerrors disabled"
+else
+ VERSION := $(VERSION)"\\nerrors enabled"
+endif
+
CC = cc