summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-12-01 01:44:21 +0100
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2015-12-01 01:44:21 +0100
commitf27108a4b114c9d83de25d2beba5c7c0a1d1c20b (patch)
tree9b63198c3b7cddb255dddc370821491a73fc788f /Makefile
parent3e572265776cac1ee01c27bb227d15becf4aa3d0 (diff)
Add action to show metastore version: -v / --version.
Fixes #36.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b519a99..3c67114 100644
--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,11 @@
# Generic settings
#
PROJ_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
+METASTORE_VER := $(shell "$(PROJ_DIR)"/version.sh)
CC = gcc
CFLAGS += -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
+CFLAGS += -DMETASTORE_VER="\"$(METASTORE_VER)\""
LDFLAGS +=
LIBS += -lbsd
INCLUDES =