summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2011-09-11 11:50:25 +0200
committerMike Wey2011-09-11 11:50:25 +0200
commit3906ff000c4d3d693fd9281fe54f0fa507c594f4 (patch)
tree50842eb62d19754af8a2ac6e45635141021f5991
parentb636368a771c4b7791244d308529bd9d44abfe99 (diff)
Add the version to the make file.
-rw-r--r--GNUmakefile5
1 files changed, 5 insertions, 0 deletions
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