ROOT=..
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)
O := filter_sparql.o sparql.o
-CXXFLAGS := $(MP_CFLAGS) -fPIC
-CFLAGS := $(MP_CFLAGS) -fPIC
+CXXFLAGS := -DVERSION=\"$(VERSION)\" $(MP_CFLAGS) -fPIC
+CFLAGS := -DVERSION=\"$(VERSION)\" $(MP_CFLAGS) -fPIC
all: $(MP_SO)