From 6c3e47bc7ec95e8092190358bb52c434a559e063 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 24 Aug 2009 08:10:18 +0000 Subject: Add libxml2 dep svn path=/trunk/libsvgtiny/; revision=9421 --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 40dc091..04fe3fc 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,17 @@ else CFLAGS := $(CFLAGS) -Dinline="__inline__" endif +# LibXML2 +ifneq ($(PKGCONFIG),) + CFLAGS := $(CFLAGS) \ + $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags libxml-2.0) + LDFLAGS := $(LDFLAGS) \ + $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs libxml-2.0) +else + CFLAGS := $(CFLAGS) -I$(PREFIX)/include/libxml2 + LDFLAGS := $(CFLAGS) -lxml2 +endif + include build/makefiles/Makefile.top # Extra installation rules -- cgit v1.2.3