blob: 6086a1cf27d247acec7ea5a1429dc1401f263546 [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
Tom Tromeyc19653d1998-08-14 01:22:43 +000016xmlincdir = $(includedir)/gnome-xml
17xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000018 entities.h \
19 parser.h \
20 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000021
Daniel Veillard0dc897e1998-07-26 04:12:22 +000022DEPS = $(top_builddir)/libxml.la
23LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000024
25tester_SOURCES=tester.c
26tester_LDFLAGS =
27tester_DEPENDENCIES = $(DEPS)
28tester_LDADD= $(LDADDS)
29
30tests : tester
31 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
32 if [ ! -d $$i ] ; then \
33 if [ ! -f result/`basename $$i` ] ; then \
34 echo New test file `basename $$i` ; \
35 $$DIR/tester $$i > result/`basename $$i` ; \
36 else \
37 echo Testing `basename $$i` ; \
38 $$DIR/tester $$i > result.`basename $$i` ; \
39 diff result/`basename $$i` result.`basename $$i` ; \
40 rm result.`basename $$i` ; \
41 fi ; fi ; done)
42