blob: bbc78de3926ddaa260148c7a92b77c2786e337c9 [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 Veillard260a68f1998-08-13 03:39:55 +00008 SAX.c \
9 entities.c \
10 error.c \
11 parser.c \
12 tester.c \
13 tree.c
14
Daniel Veillard01791d51998-07-24 19:24:09 +000015
16include_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000017 entities.h \
18 parser.h \
19 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000020
Daniel Veillard0dc897e1998-07-26 04:12:22 +000021DEPS = $(top_builddir)/libxml.la
22LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000023
24tester_SOURCES=tester.c
25tester_LDFLAGS =
26tester_DEPENDENCIES = $(DEPS)
27tester_LDADD= $(LDADDS)
28
29tests : tester
30 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
31 if [ ! -d $$i ] ; then \
32 if [ ! -f result/`basename $$i` ] ; then \
33 echo New test file `basename $$i` ; \
34 $$DIR/tester $$i > result/`basename $$i` ; \
35 else \
36 echo Testing `basename $$i` ; \
37 $$DIR/tester $$i > result.`basename $$i` ; \
38 diff result/`basename $$i` result.`basename $$i` ; \
39 rm result.`basename $$i` ; \
40 fi ; fi ; done)
41