a3e34de03e6f82421b55057ab37890d86612f82d
[yaz-moved-to-github.git] / test / Makefile.am
1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) 1995-2008 Index Data
3
4 check_PROGRAMS = tsticonv tstnmem tstmatchstr tstwrbuf tstodr tstccl tstlog \
5  tstsoap1 tstsoap2 tstodrstack tstlogthread tstxmlquery tstpquery \
6  tst_comstack tst_filepath tst_record_conv tst_retrieval tst_tpath \
7  tst_timing tst_query_charset tst_oid tst_icu_I18N tst_match_glob tst_rpn2cql
8 check_SCRIPTS = tstmarc.sh tstmarccol.sh tstcql2xcql.sh tstcql2pqf.sh tsticu.sh
9
10 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
11
12 EXTRA_DIST = tstodr.asn tstodrcodec.c tstodrcodec.h cql2xcqlsample \
13  cql2pqf-order.txt cql2pqfsample \
14  $(check_SCRIPTS) \
15  marc1.marc marc1.xml marc1.chr marc1.xml.marc \
16  marc2.marc marc2.xml marc2.chr marc2.xml.marc \
17  marc3.marc marc3.xml marc3.chr marc3.xml.marc \
18  marc4.marc marc4.xml marc4.chr marc4.xml.marc \
19  marc5.marc marc5.xml marc5.chr marc5.xml.marc \
20  marc6.marc marc6.xml marc6.chr marc6.xml.marc \
21  marc7.marc marc7.xml marc7.chr marc7.xml.marc \
22  marc8.marc marc8.xml marc8.chr marc8.xml.marc \
23  marc9.marc marc9.xml marc9.chr marc9.xml.marc \
24  marccol1.u8.marc marccol1.u8.1.lst marccol1.u8.2.lst \
25  marccol2.u8.marc marccol2.u8.1.lst marccol2.u8.2.lst \
26  marccol3.u8.marc marccol3.u8.1.lst marccol3.u8.2.lst \
27  marccol4.u8.marc marccol4.u8.1.lst marccol4.u8.2.lst \
28  marccol5.u8.marc marccol5.u8.1.lst marccol5.u8.2.lst \
29  tsticu-0.xml tsticu-0.input tsticu-0.output \
30  tsticu-1.xml tsticu-1.input tsticu-1.output \
31  tst_record_conv.xsl 
32
33 YAZCOMP = ../util/yaz-asncomp
34 YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS)
35
36 AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(ICU_CPPFLAGS)
37
38 dist-hook:
39         mkdir -p $(distdir)/cql
40         cp $(srcdir)/cql/*.err $(srcdir)/cql/*.out $(distdir)/cql
41         mkdir -p $(distdir)/cql2pqf
42         cp $(srcdir)/cql2pqf/*.err $(srcdir)/cql2pqf/*.out $(distdir)/cql2pqf
43
44 # Rule for generating codecs for our small ASN.1 spec
45 tstodrcodec.c tstodrcodec.h: tstodr.asn $(YAZCOMP)
46         cd $(srcdir); $(YAZCOMP) tstodr.asn
47
48 LDADD = ../src/libyaz.la
49 tst_icu_I18N_LDADD = ../src/libyaz_icu.la $(ICU_LIBS)
50
51 CONFIG_CLEAN_FILES=*.log
52
53 tsticonv_SOURCES = tsticonv.c
54 tstnmem_SOURCES = tstnmem.c
55 tstmatchstr_SOURCES = tstmatchstr.c
56 tstwrbuf_SOURCES = tstwrbuf.c
57 tstodr_SOURCES = tstodrcodec.c tstodrcodec.h tstodr.c
58 tstodrstack_SOURCES = tstodrstack.c
59 tstccl_SOURCES = tstccl.c
60 tstlog_SOURCES = tstlog.c
61 tstsoap1_SOURCES = tstsoap1.c
62 tstsoap2_SOURCES = tstsoap2.c
63 tstlogthread_SOURCES = tstlogthread.c
64 tstxmlquery_SOURCES = tstxmlquery.c
65 tstpquery_SOURCES = tstpquery.c
66 tst_comstack_SOURCES = tst_comstack.c
67 tst_filepath_SOURCES = tst_filepath.c
68 tst_oid_SOURCES = tst_oid.c
69 tst_record_conv_SOURCES = tst_record_conv.c
70 tst_retrieval_SOURCES = tst_retrieval.c
71 tst_tpath_SOURCES = tst_tpath.c
72 tst_timing_SOURCES = tst_timing.c
73 tst_query_charset_SOURCES = tst_query_charset.c
74 tst_icu_I18N_SOURCES = tst_icu_I18N.c
75 tst_match_glob_SOURCES = tst_match_glob.c
76 tst_rpn2cql_SOURCES = tst_rpn2cql.c