summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-08-24 08:10:18 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-08-24 08:10:18 (GMT)
commit6c3e47bc7ec95e8092190358bb52c434a559e063 (patch)
treece1409bd004605fdf4cee73f2eb5ed521d0c1248
parent15cdb30e3125ce542289fe385f559799e5abf220 (diff)
downloadlibsvgtiny-6c3e47bc7ec95e8092190358bb52c434a559e063.tar.gz
libsvgtiny-6c3e47bc7ec95e8092190358bb52c434a559e063.tar.bz2
Add libxml2 dep
svn path=/trunk/libsvgtiny/; revision=9421
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
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