From 3906ff000c4d3d693fd9281fe54f0fa507c594f4 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 11 Sep 2011 11:50:25 +0200 Subject: Add the version to the make file. --- GNUmakefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 1e70121..01e6910 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -44,11 +44,16 @@ AR=ar RANLIB=ranlib QUANTUMDEPTH = $(lastword $(shell MagickCore-config --version)) +MAGICKVERSION = $(subst .,,$(firstword $(shell MagickCore-config --version))) ifneq ("$(QUANTUMDEPTH)","Q16") DCFLAGS+= -version=$(subst Q,Quantum,$(QUANTUMDEPTH)) endif +ifneq ("$(MAGICKVERSION)","672") + DCFLAGS+= -version=MagickCore_$(MAGICKVERSION) +endif + ####################################################################### LIBNAME_DMAGICK = libDMagick.a -- cgit v1.2.3