From 9afafda0970e95e3860647a272e4b77d978d708f Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Tue, 6 Jan 2009 11:54:57 +0100 Subject: Port to exiv2-0.18 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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` -- cgit v1.2.3