Fix URL of SRU diagnostics list.
[yaz-moved-to-github.git] / src / Makefile.am
1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) 1994-2005, Index Data, All rights reserved.
3 ## $Id: Makefile.am,v 1.27 2006-01-27 18:58:58 adam Exp $
4
5 YAZ_VERSION_INFO=2:0:0
6
7 lib_LTLIBRARIES = libyaz.la libyazthread.la
8
9 dist-hook:
10         test -f $(srcdir)/cql.c || exit 1
11
12 tabdatadir = $(pkgdatadir)/z39.50
13 tabdata_DATA=datetime.asn esupdate.asn univres.asn z3950v3.asn z.tcl \
14  esadmin.asn charneg-3.asn mterm2.asn oclcui.asn
15
16 illdatadir=$(pkgdatadir)/ill
17 illdata_DATA=ill9702.asn item-req.asn ill.tcl
18
19 EXTRA_DIST=$(tabdata_DATA) $(illdata_DATA) \
20  charconv.tcl codetables.xml \
21  csvtodiag.tcl csvtobib1.tcl csvtosrw.tcl bib1.csv srw.csv
22
23 YAZCOMP = ../util/yaz-asncomp
24 YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS)
25
26 AM_CFLAGS=$(THREAD_CFLAGS)
27 AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(SSL_CFLAGS) 
28
29 AM_YFLAGS=-p cql_
30
31 # MARC8 conversion is generated from codetables.xml
32 $(srcdir)/marc8.c: charconv.tcl codetables.xml
33         cd $(srcdir); ./charconv.tcl -p marc8 codetables.xml -o marc8.c
34
35 # Generate diagnostics from CSVs
36 $(top_srcdir)/include/yaz/diagbib1.h $(srcdir)/diagbib1.c: csvtobib1.tcl bib1.csv
37         cd $(srcdir); ./csvtobib1.tcl
38
39 $(top_srcdir)/include/yaz/diagsrw.h $(srcdir)/diagsrw.c: csvtosrw.tcl srw.csv
40         cd $(srcdir); ./csvtosrw.tcl
41
42 libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \
43   nmemsdup.c xmalloc.c readconf.c tpath.c nmem.c matchstr.c atoin.c \
44   siconv.c marc8.c \
45   odr_bool.c ber_bool.c ber_len.c ber_tag.c odr_util.c \
46   odr_null.c ber_null.c odr_int.c ber_int.c odr_tag.c odr_cons.c \
47   odr_seq.c odr_oct.c ber_oct.c odr_bit.c ber_bit.c odr_oid.c \
48   ber_oid.c odr_use.c odr_choice.c odr_any.c ber_any.c odr.c odr_mem.c \
49   dumpber.c odr_enum.c odr-priv.h \
50   comstack.c tcpip.c waislen.c unix.c \
51   z-accdes1.c z-accform1.c z-acckrb1.c z-core.c \
52   z-diag1.c z-espec1.c z-estask.c z-exp.c z-grs.c z-mterm2.c z-opac.c \
53   z-uifr1.c z-rrf1.c z-rrf2.c z-sum.c z-sutrs.c z-oclcui.c\
54   zes-expi.c zes-exps.c zes-order.c zes-pquery.c zes-psched.c \
55   zes-pset.c zes-update0.c z-date.c z-univ.c zes-update.c zes-admin.c \
56   z-charneg.c \
57   prt-ext.c \
58   ill-core.c item-req.c ill-get.c \
59   zget.c yaz-ccl.c diag-entry.c diag-entry.h diagbib1.c diagsrw.c logrpn.c \
60   otherinfo.c pquery.c sortspec.c z3950oid.c charneg.c initopt.c \
61   zoom-c.c zoom-opt.c zoom-p.h grs1disp.c zgdu.c soap.c srw.c srwutil.c \
62   opacdisp.c cclfind.c ccltoken.c cclerrms.c cclqual.c cclptree.c \
63   cclqfile.c cclstr.c \
64   cql.y cqlstdio.c cqltransform.c cqlutil.c xcqlutil.c cqlstring.c \
65   cqlstrer.c querytowrbuf.c \
66   eventl.c seshigh.c statserv.c requestq.c tcpdchk.c \
67   eventl.h service.c service.h session.h test.c \
68   xmlquery.c
69
70 libyaz_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO)
71
72 # This library is only built and installed for backwards
73 # compatibility (older libs depend on it). The libyaz.la is now threaded
74 # by itself..
75 libyazthread_la_SOURCES=version.c
76 libyazthread_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO)
77
78 # Rules for Z39.50 V3
79 $(srcdir)/z-accdes1.c \
80 $(srcdir)/z-accform1.c \
81 $(srcdir)/z-acckrb1.c \
82 $(srcdir)/z-core.c \
83 $(srcdir)/z-diag1.c \
84 $(srcdir)/z-espec1.c \
85 $(srcdir)/z-estask.c \
86 $(srcdir)/z-exp.c \
87 $(srcdir)/z-grs.c \
88 $(srcdir)/z-opac.c \
89 $(srcdir)/z-uifr1.c \
90 $(srcdir)/z-rrf1.c \
91 $(srcdir)/z-rrf2.c \
92 $(srcdir)/z-sum.c \
93 $(srcdir)/z-sutrs.c \
94 $(srcdir)/zes-expi.c \
95 $(srcdir)/zes-exps.c \
96 $(srcdir)/zes-order.c \
97 $(srcdir)/zes-pquery.c \
98 $(srcdir)/zes-psched.c \
99 $(srcdir)/zes-pset.c \
100 $(srcdir)/zes-update0.c \
101 $(top_srcdir)/include/yaz/z-accdes1.h \
102 $(top_srcdir)/include/yaz/z-core.h: \
103 $(srcdir)/z.tcl $(srcdir)/z3950v3.asn $(YAZCOMP)
104         cd $(srcdir); $(YAZCOMPLINE) z3950v3.asn
105
106 # Date extension
107 $(srcdir)/z-date.c \
108 $(top_srcdir)/include/yaz/z-date.h: $(srcdir)/z.tcl $(srcdir)/datetime.asn $(YAZCOMP)
109         cd $(srcdir); $(YAZCOMPLINE) datetime.asn
110
111 # UNIverse extension
112 $(srcdir)/z-univ.c \
113 $(top_srcdir)/include/yaz/z-univ.h: \
114 $(srcdir)/z.tcl $(srcdir)/univres.asn $(YAZCOMP)
115         cd $(srcdir); $(YAZCOMPLINE) univres.asn
116
117 # New Update extended service
118 $(srcdir)/zes-update.c \
119 $(top_srcdir)/include/yaz/zes-update.h: \
120 $(srcdir)/z.tcl $(srcdir)/esupdate.asn $(YAZCOMP)
121         cd $(srcdir); $(YAZCOMPLINE) esupdate.asn
122
123 # Admin extended service
124 $(srcdir)/zes-admin.c \
125 $(top_srcdir)/include/yaz/zes-admin.h: \
126 $(srcdir)/z.tcl $(srcdir)/esadmin.asn $(YAZCOMP)
127         cd $(srcdir); $(YAZCOMPLINE) esadmin.asn
128
129 # Charset negotiation
130 $(srcdir)/z-charneg.c: $(srcdir)/z.tcl $(srcdir)/charneg-3.asn
131         cd $(srcdir); $(YAZCOMPLINE) $(YCFLAGS) charneg-3.asn
132
133 # UserInfoFormat-multipleSearchTerms-2
134 $(srcdir)/z-mterm2.c: $(srcdir)/z.tcl $(srcdir)/mterm2.asn
135         cd $(srcdir); $(YAZCOMPLINE) mterm2.asn
136
137 # UserInfoFormat-multipleSearchTerms-2
138 $(srcdir)/z-oclcui.c: $(srcdir)/z.tcl $(srcdir)/oclcui.asn
139         cd $(srcdir); $(YAZCOMPLINE) oclcui.asn
140
141 # ILL protocol
142 $(srcdir)/ill-core.c \
143 $(top_srcdir)/include/yaz/ill-core.h: \
144 $(srcdir)/ill.tcl $(srcdir)/ill9702.asn $(YAZCOMP)
145         cd $(srcdir); $(YAZCOMP) -d ill.tcl -i yaz -I ../include $(YCFLAGS) ill9702.asn
146
147 # Item Request
148 $(srcdir)/item-req.c \
149 $(top_srcdir)/include/yaz/item-req.h: \
150 $(srcdir)/ill.tcl $(srcdir)/item-req.asn $(YAZCOMP)
151         cd $(srcdir); $(YAZCOMP) -d ill.tcl -i yaz -I ../include $(YCFLAGS) item-req.asn
152