summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-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