1 ## This file is part of the YAZ toolkit.
2 ## Copyright (C) 1995-2008 Index Data
6 lib_LTLIBRARIES = libyaz.la libyaz_server.la libyaz_icu.la
9 test -f $(srcdir)/cql.c || exit 1
11 tabdatadir = $(pkgdatadir)/z39.50
12 tabdata_DATA=datetime.asn esupdate.asn univres.asn z3950v3.asn z.tcl \
13 esadmin.asn charneg-3.asn mterm2.asn oclcui.asn
15 illdatadir=$(pkgdatadir)/ill
16 illdata_DATA=ill9702.asn item-req.asn ill.tcl oclc-ill-req-ext.asn
18 EXTRA_DIST=$(tabdata_DATA) $(illdata_DATA) \
19 charconv.tcl codetables.xml \
20 csvtodiag.tcl csvtobib1.tcl csvtosrw.tcl bib1.csv srw.csv \
21 csvtosru_update.tcl sru_update.csv \
24 YAZCOMP=$(top_srcdir)/util/yaz-asncomp
25 YAZCOMP_Z = $(YAZCOMP) -d $(srcdir)/z.tcl -i yaz -I$(top_srcdir)/include
26 YAZCOMP_I = $(YAZCOMP) -d $(srcdir)/ill.tcl -i yaz -I$(top_srcdir)/include
28 AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(SSL_CFLAGS)
29 libyaz_server_la_CFLAGS = $(PTHREAD_CFLAGS)
30 libyaz_server_la_LIBADD = libyaz.la
31 libyaz_icu_la_CPPFLAGS = $(AM_CPPFLAGS) $(ICU_CPPFLAGS)
32 libyaz_icu_la_LIBADD = libyaz.la $(ICU_LIBS)
36 # MARC8->UTF8 conversion is generated from codetables.xml
37 marc8.c: charconv.tcl codetables.xml
38 $(TCLSH) $(srcdir)/charconv.tcl -p marc8 $(srcdir)/codetables.xml -o marc8.c
40 # UTF-8->MARC8 conversion is generated from codetables.xml
41 marc8r.c: charconv.tcl codetables.xml
42 $(TCLSH) $(srcdir)/charconv.tcl -r -p marc8r $(srcdir)/codetables.xml -o marc8r.c
44 # Generate OID database from CSV
45 oid_std.c $(top_srcdir)/include/yaz/oid_std.h: oidtoc.tcl oid.csv
46 $(TCLSH) $(srcdir)/oidtoc.tcl $(srcdir) $(srcdir)/oid.csv oid_std.c oid_std.h
48 # Generate diagnostics from CSVs
49 diagbib1.c $(top_srcdir)/include/yaz/diagbib1.h: csvtobib1.tcl bib1.csv
50 $(TCLSH) $(srcdir)/csvtobib1.tcl $(srcdir)
52 diagsrw.c $(top_srcdir)/include/yaz/diagsrw.h: csvtosrw.tcl srw.csv
53 $(TCLSH) $(srcdir)/csvtosrw.tcl $(srcdir)
55 diagsru_update.c $(top_srcdir)/include/yaz/diagsru_update.h: csvtosru_update.tcl sru_update.csv
56 $(TCLSH) $(srcdir)/csvtosru_update.tcl $(srcdir)
58 # Auto-generated C-files
59 GEN_FILES = oid_std.c \
61 diagbib1.c diagsrw.c diagsru_update.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 \
68 ill-core.c item-req.c oclc-ill-req-ext.c
70 libyaz_la_SOURCES=version.c options.c log.c \
72 marcdisp.c marc_read_xml.c marc_read_iso2709.c marc_read_line.c \
74 nmemsdup.c xmalloc.c readconf.c tpath.c nmem.c matchstr.c atoin.c \
75 siconv.c iconv-p.h utf8.c ucs4.c iso5428.c advancegreek.c \
76 odr_bool.c ber_bool.c ber_len.c ber_tag.c odr_util.c \
77 odr_null.c ber_null.c odr_int.c ber_int.c odr_tag.c odr_cons.c \
78 odr_seq.c odr_oct.c ber_oct.c odr_bit.c ber_bit.c odr_oid.c \
79 ber_oid.c odr_use.c odr_choice.c odr_any.c ber_any.c odr.c odr_mem.c \
80 dumpber.c odr_enum.c odr-priv.h libxml2_error.c \
81 comstack.c tcpip.c waislen.c unix.c \
84 zget.c yaz-ccl.c diag-entry.c diag-entry.h \
86 otherinfo.c pquery.c sortspec.c charneg.c initopt.c \
87 zoom-c.c zoom-socket.c zoom-opt.c zoom-p.h \
88 grs1disp.c zgdu.c soap.c srw.c srwutil.c \
89 opacdisp.c cclfind.c ccltoken.c cclerrms.c cclqual.c cclptree.c cclp.h \
90 cclqfile.c cclstr.c cclxmlconfig.c ccl_stop_words.c \
91 cql.y cqlstdio.c cqltransform.c cqlutil.c xcqlutil.c cqlstring.c \
92 cqlstrer.c querytowrbuf.c \
95 xmlquery.c xmlerror.c http.c \
96 mime.c mime.h oid_util.c tokenizer.c \
97 record_conv.c retrieval.c elementset.c snprintf.c query-charset.c \
98 copy_types.c match_glob.c poll.c daemon.c \
99 iconv_encode_marc8.c iconv_encode_iso_8859_1.c iconv_encode_wchar.c \
102 libyaz_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO)
104 libyaz_server_la_SOURCES = statserv.c seshigh.c eventl.c \
105 requestq.c eventl.h session.h service.c service.h mutex.c
107 libyaz_server_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO)
109 libyaz_icu_la_SOURCES = icu_I18N.c
110 libyaz_icu_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO)
112 # Rules for Z39.50 V3
134 $(top_srcdir)/include/yaz/z-accdes1.h \
135 $(top_srcdir)/include/yaz/z-core.h: z-core.c
137 z-core.c: $(srcdir)/z.tcl $(srcdir)/z3950v3.asn $(YAZCOMP)
138 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/z3950v3.asn
142 $(top_srcdir)/include/yaz/z-date.h: $(srcdir)/z.tcl $(srcdir)/datetime.asn $(YAZCOMP)
143 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/datetime.asn
147 $(top_srcdir)/include/yaz/z-univ.h: \
148 $(srcdir)/z.tcl $(srcdir)/univres.asn $(YAZCOMP)
149 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/univres.asn
151 # New Update extended service
153 $(top_srcdir)/include/yaz/zes-update.h: \
154 $(srcdir)/z.tcl $(srcdir)/esupdate.asn $(YAZCOMP)
155 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/esupdate.asn
157 # Admin extended service
159 $(top_srcdir)/include/yaz/zes-admin.h: \
160 $(srcdir)/z.tcl $(srcdir)/esadmin.asn $(YAZCOMP)
161 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/esadmin.asn
163 # Charset negotiation
165 $(top_srcdir)/include/yaz/z-charneg.h: \
166 $(srcdir)/z.tcl $(srcdir)/charneg-3.asn $(YAZCOMP)
167 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/charneg-3.asn
169 # UserInfoFormat-multipleSearchTerms-2
171 $(top_srcdir)/include/yaz/z-mterm2.h: \
172 $(srcdir)/z.tcl $(srcdir)/mterm2.asn $(YAZCOMP)
173 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/mterm2.asn
175 # UserInfoFormat-multipleSearchTerms-2
177 $(top_srcdir)/include/yaz/z-oclcui.h: \
178 $(srcdir)/z.tcl $(srcdir)/oclcui.asn $(YAZCOMP)
179 $(TCLSH) $(YAZCOMP_Z) $(srcdir)/oclcui.asn
183 $(top_srcdir)/include/yaz/ill-core.h: \
184 $(srcdir)/ill.tcl $(srcdir)/ill9702.asn $(YAZCOMP)
185 $(TCLSH) $(YAZCOMP_I) $(srcdir)/ill9702.asn
187 # OCLC ILL Request Extension
189 $(top_srcdir)/include/yaz/oclc-ill-req-ext.h: \
190 $(srcdir)/ill.tcl $(srcdir)/oclc-ill-req-ext.asn $(YAZCOMP)
191 $(TCLSH) $(YAZCOMP_I) $(srcdir)/oclc-ill-req-ext.asn
195 $(top_srcdir)/include/yaz/item-req.h: \
196 $(srcdir)/ill.tcl $(srcdir)/item-req.asn $(YAZCOMP)
197 $(TCLSH) $(YAZCOMP_I) $(srcdir)/item-req.asn