summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2009-01-06 11:54:57 +0100
committerTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2009-01-06 11:54:57 +0100
commit9afafda0970e95e3860647a272e4b77d978d708f (patch)
tree2f5101aebdd2fe3840290c1a16981452df3bf576 /Makefile
parenta90b52cda533af04dd8c827029d093cfde44090c (diff)
downloadcataract-9afafda0970e95e3860647a272e4b77d978d708f.tar.xz
Port to exiv2-0.18
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 38a2ef1..5ce991c 100644
--- a/Makefile
+++ b/Makefile
@@ -11,11 +11,13 @@ CFLAGS = -I. -I/usr/include -Wall -fPIC -g \
OBJECTS=gallery-utils.o jpeg-utils.o xml-parser.o setup.o items.o generators.o cgg.o
+EXIV2_CFLAGS_EXTRA=`pkg-config --max-version=0.17.1 exiv2 || echo -D_EXIV2_NEW_API`
+
.SUFFIXES: .c .cpp
.c.o:
- $(CC) $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 --cflags` `Wand-config --cflags` -c $<
+ $(CC) $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 --cflags` `Wand-config --cflags` $(EXIV2_CFLAGS_EXTRA) -c $<
.cpp.o:
- $(CPP) $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 exiv2 --cflags` `Wand-config --cppflags` -c $<
+ $(CPP) $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 exiv2 --cflags` `Wand-config --cppflags` $(EXIV2_CFLAGS_EXTRA) -c $<
all cgg: check $(OBJECTS)
$(CC) -o cgg $(OBJECTS) -lm $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 exiv2 --libs` `Wand-config --ldflags --libs`