From: John Mark Bell Date: Mon, 24 Aug 2009 08:10:18 +0000 (-0000) Subject: Add libxml2 dep X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=inline;h=6c3e47bc7ec95e8092190358bb52c434a559e063;p=libsvgtiny.git Add libxml2 dep svn path=/trunk/libsvgtiny/; revision=9421 --- 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