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