From 79251d159233e068cedc268a2049fcfe4120158c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Jan 2015 13:21:43 +0100 Subject: [PATCH] Pass VERSION to CFLAGS --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 1.7.10.4