From: Adam Dickmeiss Date: Fri, 9 Jan 2015 12:25:35 +0000 (+0100) Subject: Pass VERSION to CFLAGS X-Git-Tag: v0.3~1 X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=commitdiff_plain;h=30d45277b50fbb2efa664cc4e28f82efe4ce1f40 Pass VERSION to CFLAGS --- 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)