summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b555043..3d2d7e7 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,9 @@ STRIP=strip
# Text2Skin if you use Imlib2! (That's why I actually implemented ImageMagick)
# TBD: is this still true?
-# Define only one of these.
+# Define only one of these, leave others commented out.
HAVE_IMAGEMAGICK=1
+#HAVE_GRAPHICSMAGICK=1
#HAVE_IMLIB2=1 # not recommended
@@ -82,6 +83,12 @@ ifdef HAVE_IMAGEMAGICK
LIBS += $(shell pkg-config --libs ImageMagick++)
endif
+ifdef HAVE_GRAPHICSMAGICK
+ DEFINES += -DHAVE_IMAGEMAGICK # yep, really HAVE_IMAGEMAGICK
+ INCLUDES += $(shell pkg-config --cflags GraphicsMagick++)
+ LIBS += $(shell pkg-config --libs GraphicsMagick++)
+endif
+
ifdef DEBUG
CXXFLAGS += -g -fno-inline
DEFINES += -DDEBUG