From 30d45277b50fbb2efa664cc4e28f82efe4ce1f40 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Jan 2015 13:25:35 +0100 Subject: [PATCH] Pass VERSION to CFLAGS --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 9bb07c6..dca5474 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,6 +2,7 @@ ROOT=.. ZORBA := $(ROOT)/../zorba/zorba-3.0/build/dist prefix=/usr libdir = ${prefix}/lib +VERSION := $(shell . $(ROOT)/IDMETA; echo $$VERSION) ifeq "${MP_CONFIG}" "" MP_CONFIG := $(shell if test -x $(ROOT)/../metaproxy/metaproxy-config; then echo $(ROOT)/../metaproxy/metaproxy-config; else echo metaproxy-config; fi) @@ -13,7 +14,7 @@ MP_SO := metaproxy_filter_xquery.so ZORBA_LIBS := -L $(ZORBA)/lib -lzorba_simplestore ZORBA_CFLAGS := -I$(ZORBA)/include $(MP_CFLAGS) -CXXFLAGS := $(ZORBA_CFLAGS) $(MP_CFLAGS) -fPIC +CXXFLAGS := -DVERSION=\"$(VERSION)\" $(ZORBA_CFLAGS) $(MP_CFLAGS) -fPIC all: tst $(MP_SO) -- 1.7.10.4