summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-08-15 09:12:25 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-08-15 09:12:25 +0200
commit848f955d1d4c0c7ce517a106ac7e206731e07cec (patch)
tree9794b896cc9b1478e77f2d95ad49df5e3cd48b8a
parentbc1d56ab7b0c3492f494d016c444157dd42d2dbd (diff)
downloadrpm-848f955d1d4c0c7ce517a106ac7e206731e07cec.tar.gz
rpm-848f955d1d4c0c7ce517a106ac7e206731e07cec.tar.bz2
rpm-848f955d1d4c0c7ce517a106ac7e206731e07cec.zip
Use libxml2*.
-rw-r--r--tools/Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index abfbf1120..97a224e35 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -63,16 +63,18 @@ EXTRA_PROGRAMS += rpmsort
rpmsort_SOURCES = rpmsort.c
#rpmsort_LDFLAGS = $(staticLDFLAGS)
+if LIBXML2
EXTRA_PROGRAMS += rpmtool
rpmtool_SOURCES = rpmtool.c rpmxp.c rpmxp.h
-rpmtool_CFLAGS = -I$(includedir)/libxml2
+rpmtool_CPPFLAGS = $(AM_CPPFLAGS) $(libxml2_CFLAGS)
#rpmtool_LDFLAGS = $(staticLDFLAGS)
-rpmtool_LDADD = ../lib/librpm.la -lxml2
+rpmtool_LDADD = ../lib/librpm.la $(libxml2_LIBS)
EXTRA_PROGRAMS += rpmxml
rpmxml_SOURCES = rpmxml.c rpmxp.h
-rpmxml_CFLAGS = -I$(includedir)/libxml2
+rpmxml_CPPFLAGS = $(AM_CPPFLAGS) $(libxml2_CFLAGS)
#rpmxml_LDFLAGS = $(staticLDFLAGS)
-rpmxml_LDADD = ../lib/librpm.la -lxml2
+rpmxml_LDADD = ../lib/librpm.la $(libxml2_LIBS)
+endif
CLEANFILES = $(EXTRA_PROGRAMS)