From: Adam Dickmeiss Date: Fri, 9 Jan 2015 12:21:43 +0000 (+0100) Subject: Pass VERSION to CFLAGS X-Git-Tag: v0.1~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=79251d159233e068cedc268a2049fcfe4120158c;p=mp-sparql-moved-to-github.git Pass VERSION to CFLAGS --- diff --git a/src/Makefile b/src/Makefile index 0d6941d..604d6ff 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,7 @@ 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) @@ -12,8 +13,8 @@ MP_SO := metaproxy_filter_sparql.so 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)