Make sure this compiles even without Libxml2.
[yaz-moved-to-github.git] / test / Makefile.am
1 ## Copyright (C) 1994-2006, Index Data
2 ## All rights reserved.
3 ## $Id: Makefile.am,v 1.11 2006-01-27 17:33:15 adam Exp $
4
5 check_PROGRAMS = tsticonv tstnmem tstmatchstr tstwrbuf tstodr tstccl tstlog \
6  tstsoap1 tstsoap2 tstodrstack tstlogthread tstxmlquery
7 check_SCRIPTS = tstcql.sh tstmarc.sh
8
9 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
10
11 EXTRA_DIST = tstodr.asn tstodrcodec.c tstodrcodec.h cqlsample \
12  $(check_SCRIPTS) \
13  marc1 marc1.xml marc2 marc2.xml marc3 marc3.xml marc4 marc4.xml
14
15 YAZCOMP = ../util/yaz-asncomp
16 YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS)
17
18 AM_CFLAGS=$(THREAD_CFLAGS)
19
20 AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS)
21
22 dist-hook:
23         mkdir -p $(distdir)/cql
24         cp $(srcdir)/cql/*.err $(distdir)/cql
25         cp $(srcdir)/cql/*.out $(distdir)/cql
26
27 # Rule for generating codecs for our small ASN.1 spec
28 tstodrcodec.c tstodrcodec.h: tstodr.asn $(YAZCOMP)
29         cd $(srcdir); $(YAZCOMP) tstodr.asn
30
31 LDADD = ../src/libyaz.la
32
33 tsticonv_SOURCES = tsticonv.c
34 tstnmem_SOURCES = tstnmem.c
35 tstmatchstr_SOURCES = tstmatchstr.c
36 tstwrbuf_SOURCES = tstwrbuf.c
37 tstodr_SOURCES = tstodrcodec.c tstodrcodec.h tstodr.c
38 tstodrstack_SOURCES = tstodrstack.c
39 tstccl_SOURCES = tstccl.c
40 tstlog_SOURCES = tstlog.c
41 tstsoap1_SOURCES = tstsoap1.c
42 tstsoap2_SOURCES = tstsoap2.c
43 tstlogthread_SOURCES = tstlogthread.c
44 tstxmlquery_SOURCES = tstxmlquery.c
45