1998-07-25 03:24:09 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
1999-02-07 02:12:01 +08:00
|
|
|
SUBDIRS = doc
|
|
|
|
|
1999-06-23 05:49:07 +08:00
|
|
|
INCLUDES = -I@srcdir@ @CORBA_CFLAGS@ $(VERSION_FLAGS)
|
|
|
|
|
|
|
|
VERSION_FLAGS = -DLIBXML_VERSION=\"@LIBXML_VERSION@\"
|
1998-10-17 14:47:46 +08:00
|
|
|
|
1999-07-06 00:50:46 +08:00
|
|
|
noinst_PROGRAMS=tester testSAX testHTML
|
1998-07-25 03:24:09 +08:00
|
|
|
|
1998-10-04 22:41:05 +08:00
|
|
|
bin_SCRIPTS=xml-config
|
|
|
|
|
1998-07-26 12:12:22 +08:00
|
|
|
lib_LTLIBRARIES = libxml.la
|
1998-07-25 03:24:09 +08:00
|
|
|
|
1999-06-23 05:49:07 +08:00
|
|
|
libxml_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@
|
|
|
|
|
1998-07-26 12:12:22 +08:00
|
|
|
libxml_la_SOURCES = \
|
1998-08-13 11:39:55 +08:00
|
|
|
SAX.c \
|
|
|
|
entities.c \
|
1998-10-19 08:43:02 +08:00
|
|
|
encoding.c \
|
1998-08-13 11:39:55 +08:00
|
|
|
error.c \
|
|
|
|
parser.c \
|
1999-07-06 00:50:46 +08:00
|
|
|
HTMLparser.c \
|
1998-10-28 06:56:57 +08:00
|
|
|
debugXML.c \
|
1999-01-18 03:11:59 +08:00
|
|
|
tree.c \
|
1999-07-07 06:25:25 +08:00
|
|
|
HTMLtree.c \
|
1999-01-18 03:11:59 +08:00
|
|
|
valid.c
|
1998-08-13 11:39:55 +08:00
|
|
|
|
1998-08-14 09:22:43 +08:00
|
|
|
xmlincdir = $(includedir)/gnome-xml
|
|
|
|
xmlinc_HEADERS = \
|
1998-08-13 11:39:55 +08:00
|
|
|
entities.h \
|
1998-10-19 08:43:02 +08:00
|
|
|
encoding.h \
|
1998-08-13 11:39:55 +08:00
|
|
|
parser.h \
|
1999-07-07 06:25:25 +08:00
|
|
|
HTMLparser.h \
|
1999-02-25 16:46:07 +08:00
|
|
|
parserInternals.h \
|
1998-10-28 06:56:57 +08:00
|
|
|
debugXML.h \
|
1999-03-05 14:26:45 +08:00
|
|
|
xml-error.h \
|
1999-01-18 03:11:59 +08:00
|
|
|
tree.h \
|
1999-06-23 05:49:07 +08:00
|
|
|
xmlIO.h \
|
1999-01-18 03:11:59 +08:00
|
|
|
valid.h
|
1998-07-25 03:24:09 +08:00
|
|
|
|
1998-07-26 12:12:22 +08:00
|
|
|
DEPS = $(top_builddir)/libxml.la
|
|
|
|
LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
|
1998-07-25 03:24:09 +08:00
|
|
|
|
|
|
|
tester_SOURCES=tester.c
|
|
|
|
tester_LDFLAGS =
|
|
|
|
tester_DEPENDENCIES = $(DEPS)
|
|
|
|
tester_LDADD= $(LDADDS)
|
|
|
|
|
1999-06-03 01:44:04 +08:00
|
|
|
testSAX_SOURCES=testSAX.c
|
|
|
|
testSAX_LDFLAGS =
|
|
|
|
testSAX_DEPENDENCIES = $(DEPS)
|
|
|
|
testSAX_LDADD= $(LDADDS)
|
|
|
|
|
1999-07-06 00:50:46 +08:00
|
|
|
testHTML_SOURCES=testHTML.c
|
|
|
|
testHTML_LDFLAGS =
|
|
|
|
testHTML_DEPENDENCIES = $(DEPS)
|
|
|
|
testHTML_LDADD= $(LDADDS)
|
|
|
|
|
1999-03-06 06:14:01 +08:00
|
|
|
check-local: tests
|
|
|
|
|
1999-06-03 01:44:04 +08:00
|
|
|
testall : tests SVGtests SAXtests
|
|
|
|
|
1998-07-25 03:24:09 +08:00
|
|
|
tests : tester
|
1999-06-03 01:44:04 +08:00
|
|
|
@(DIR=`pwd`; cd $(srcdir) ; \
|
|
|
|
for i in test/* ; do \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f result/`basename $$i` ] ; then \
|
|
|
|
echo New test file `basename $$i` ; \
|
|
|
|
$$DIR/tester $$i > result/`basename $$i` ; \
|
|
|
|
else \
|
|
|
|
echo Testing `basename $$i` ; \
|
|
|
|
$$DIR/tester $$i > result.`basename $$i` ; \
|
|
|
|
diff result/`basename $$i` result.`basename $$i` ; \
|
|
|
|
$$DIR/tester result.`basename $$i` > result2.`basename $$i` ; \
|
|
|
|
diff result.`basename $$i` result2.`basename $$i` ; \
|
|
|
|
rm result.`basename $$i` result2.`basename $$i` ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
|
|
|
SVGtests : tester
|
|
|
|
@(DIR=`pwd`; cd $(srcdir) ; \
|
|
|
|
for i in test/SVG/* ; do \
|
1998-07-25 03:24:09 +08:00
|
|
|
if [ ! -d $$i ] ; then \
|
1999-06-03 01:44:04 +08:00
|
|
|
if [ ! -f result/SVG/`basename $$i` ] ; then \
|
|
|
|
echo New test file `basename $$i` ; \
|
|
|
|
$$DIR/tester $$i > result/SVG/`basename $$i` ; \
|
1998-07-25 03:24:09 +08:00
|
|
|
else \
|
1999-06-03 01:44:04 +08:00
|
|
|
echo Testing `basename $$i` ; \
|
|
|
|
$$DIR/tester $$i > result.`basename $$i` ; \
|
|
|
|
diff result/SVG/`basename $$i` result.`basename $$i` ; \
|
|
|
|
$$DIR/tester result.`basename $$i` > result2.`basename $$i` ; \
|
|
|
|
diff result.`basename $$i` result2.`basename $$i` ; \
|
|
|
|
rm result.`basename $$i` result2.`basename $$i` ; \
|
1998-07-25 03:24:09 +08:00
|
|
|
fi ; fi ; done)
|
|
|
|
|
1999-06-03 01:44:04 +08:00
|
|
|
SAXtests : testSAX
|
|
|
|
@(DIR=`pwd`; cd $(srcdir) ; \
|
|
|
|
for i in test/* ; do \
|
|
|
|
if [ ! -d $$i ] ; then \
|
|
|
|
if [ ! -f SAXresult/`basename $$i` ] ; then \
|
|
|
|
echo New test file `basename $$i` ; \
|
|
|
|
$$DIR/testSAX $$i > SAXresult/`basename $$i` ; \
|
|
|
|
else \
|
|
|
|
echo Testing `basename $$i` ; \
|
|
|
|
$$DIR/testSAX $$i > result.`basename $$i` ; \
|
|
|
|
diff SAXresult/`basename $$i` result.`basename $$i` ; \
|
|
|
|
rm result.`basename $$i` ; \
|
|
|
|
fi ; fi ; done)
|
|
|
|
|
|
|
|
#tests : tester
|
|
|
|
# @(for i in $(srcdir)/test/* ; do \
|
|
|
|
# if [ ! -d $$i ] ; then \
|
|
|
|
# j=`echo $$i | sed -e 's,^.*/,,'`; \
|
|
|
|
# if [ ! -f $(srcdir)/result/$$j ] ; then \
|
|
|
|
# echo New test file $$j ; \
|
|
|
|
# ./tester $$i > $(srcdir)/result/$$j ; \
|
|
|
|
# else \
|
|
|
|
# echo Testing $$j ; \
|
|
|
|
# ./tester $$i > result.$$j ; \
|
|
|
|
# diff $(srcdir)/result/$$j result.$$j ; \
|
|
|
|
# rm result.$$j ; \
|
|
|
|
# fi ; fi ; done)
|
|
|
|
|
1998-09-08 01:27:57 +08:00
|
|
|
## Put `exec' in the name because this should be installed by
|
|
|
|
## `install-exec', not `install-data'.
|
|
|
|
|
|
|
|
confexecdir=$(libdir)
|
|
|
|
confexec_DATA = xmlConf.sh
|
|
|
|
|
1999-06-03 01:44:04 +08:00
|
|
|
EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result SAXresult
|
1998-09-08 01:27:57 +08:00
|
|
|
|
1999-02-22 05:20:12 +08:00
|
|
|
dist-hook:
|
|
|
|
cp libxml.spec $(distdir)
|
|
|
|
|
1998-09-08 01:27:57 +08:00
|
|
|
## We create xmlConf.sh here and not from configure because we want
|
|
|
|
## to get the paths expanded correctly. Macros like srcdir are given
|
|
|
|
## the value NONE in configure if the user doesn't specify them (this
|
|
|
|
## is an autoconf feature, not a bug).
|
|
|
|
|
|
|
|
xmlConf.sh: xmlConf.sh.in Makefile
|
|
|
|
## Use sed and then mv to avoid problems if the user interrupts.
|
1998-10-01 03:28:59 +08:00
|
|
|
sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
|
|
|
|
-e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
|
|
|
|
-e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
|
1998-09-08 01:27:57 +08:00
|
|
|
< $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
|
|
|
|
&& mv xmlConf.tmp xmlConf.sh
|