blob: 02a6bd891d863bfe4cdac16a2955acfc12cdd49b [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001## Process this file with automake to produce Makefile.in
2
3noinst_PROGRAMS=tester
4
Daniel Veillard0dc897e1998-07-26 04:12:22 +00005lib_LTLIBRARIES = libxml.la
Daniel Veillard01791d51998-07-24 19:24:09 +00006
Daniel Veillard0dc897e1998-07-26 04:12:22 +00007libxml_la_SOURCES = \
Daniel Veillard01791d51998-07-24 19:24:09 +00008 xml_entities.c \
9 xml_parser.c \
10 xml_tree.c
11
12include_HEADERS = \
13 xml_entities.h \
14 xml_parser.h \
15 xml_tree.h
16
Daniel Veillard0dc897e1998-07-26 04:12:22 +000017DEPS = $(top_builddir)/libxml.la
18LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000019
20tester_SOURCES=tester.c
21tester_LDFLAGS =
22tester_DEPENDENCIES = $(DEPS)
23tester_LDADD= $(LDADDS)
24
25tests : tester
26 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
27 if [ ! -d $$i ] ; then \
28 if [ ! -f result/`basename $$i` ] ; then \
29 echo New test file `basename $$i` ; \
30 $$DIR/tester $$i > result/`basename $$i` ; \
31 else \
32 echo Testing `basename $$i` ; \
33 $$DIR/tester $$i > result.`basename $$i` ; \
34 diff result/`basename $$i` result.`basename $$i` ; \
35 rm result.`basename $$i` ; \
36 fi ; fi ; done)
37