X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2FMakefile.am;h=5f4989c09696469d33c253b75becc746d3a60df7;hp=8ba3ba7c78b2dd70f58cad6f90f503ca0720a12d;hb=f1173ed21af445eeecf2acf2df3cbef7dfd61cf0;hpb=95f9f397e64bd7a933482008f7afe647e56648a2 diff --git a/src/Makefile.am b/src/Makefile.am index 8ba3ba7..5f4989c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,16 +1,13 @@ -## Copyright (C) 1994-2004, Index Data -## All rights reserved. -## $Id: Makefile.am,v 1.14 2004-08-07 08:06:57 adam Exp $ - -if ISTHR -thrlib=libyazthread.la -endif +## This file is part of the YAZ toolkit. +## Copyright (C) 1994-2005, Index Data, All rights reserved. +## $Id: Makefile.am,v 1.27 2006-01-27 18:58:58 adam Exp $ YAZ_VERSION_INFO=2:0:0 -lib_LTLIBRARIES = libyaz.la $(thrlib) +lib_LTLIBRARIES = libyaz.la libyazthread.la -TESTS = $(check_PROGRAMS) +dist-hook: + test -f $(srcdir)/cql.c || exit 1 tabdatadir = $(pkgdatadir)/z39.50 tabdata_DATA=datetime.asn esupdate.asn univres.asn z3950v3.asn z.tcl \ @@ -20,19 +17,28 @@ illdatadir=$(pkgdatadir)/ill illdata_DATA=ill9702.asn item-req.asn ill.tcl EXTRA_DIST=$(tabdata_DATA) $(illdata_DATA) \ - charconv.tcl codetables.xml charconv.sgm + charconv.tcl codetables.xml \ + csvtodiag.tcl csvtobib1.tcl csvtosrw.tcl bib1.csv srw.csv -YAZCOMP = $(top_srcdir)/util/yaz-asncomp +YAZCOMP = ../util/yaz-asncomp YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS) -AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) +AM_CFLAGS=$(THREAD_CFLAGS) +AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(SSL_CFLAGS) + AM_YFLAGS=-p cql_ -THREADED_FLAGS = @CFLAGSTHREADS@ -# MARC8 conversion is generated from charconv.sgm + codetables.xml -marc8.c: charconv.tcl charconv.sgm codetables.xml +# MARC8 conversion is generated from codetables.xml +$(srcdir)/marc8.c: charconv.tcl codetables.xml cd $(srcdir); ./charconv.tcl -p marc8 codetables.xml -o marc8.c +# Generate diagnostics from CSVs +$(top_srcdir)/include/yaz/diagbib1.h $(srcdir)/diagbib1.c: csvtobib1.tcl bib1.csv + cd $(srcdir); ./csvtobib1.tcl + +$(top_srcdir)/include/yaz/diagsrw.h $(srcdir)/diagsrw.c: csvtosrw.tcl srw.csv + cd $(srcdir); ./csvtosrw.tcl + libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \ nmemsdup.c xmalloc.c readconf.c tpath.c nmem.c matchstr.c atoin.c \ siconv.c marc8.c \ @@ -50,19 +56,23 @@ libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \ z-charneg.c \ prt-ext.c \ ill-core.c item-req.c ill-get.c \ - zget.c yaz-ccl.c diagbib1.c logrpn.c \ + zget.c yaz-ccl.c diag-entry.c diag-entry.h diagbib1.c diagsrw.c logrpn.c \ otherinfo.c pquery.c sortspec.c z3950oid.c charneg.c initopt.c \ zoom-c.c zoom-opt.c zoom-p.h grs1disp.c zgdu.c soap.c srw.c srwutil.c \ opacdisp.c cclfind.c ccltoken.c cclerrms.c cclqual.c cclptree.c \ cclqfile.c cclstr.c \ cql.y cqlstdio.c cqltransform.c cqlutil.c xcqlutil.c cqlstring.c \ - cqlstrer.c \ + cqlstrer.c querytowrbuf.c \ eventl.c seshigh.c statserv.c requestq.c tcpdchk.c \ - eventl.h service.c service.h session.h + eventl.h service.c service.h session.h test.c \ + xmlquery.c + libyaz_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO) -libyazthread_la_SOURCES= -libyazthread_la_LIBADD=thr-nmem.lo thr-statserv.lo thr-eventl.lo +# This library is only built and installed for backwards +# compatibility (older libs depend on it). The libyaz.la is now threaded +# by itself.. +libyazthread_la_SOURCES=version.c libyazthread_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO) # Rules for Z39.50 V3 @@ -88,8 +98,8 @@ $(srcdir)/zes-pquery.c \ $(srcdir)/zes-psched.c \ $(srcdir)/zes-pset.c \ $(srcdir)/zes-update0.c \ -$(top_srcdir)/include/z-accdes1.h \ -$(top_srcdir)/include/z-core.h: \ +$(top_srcdir)/include/yaz/z-accdes1.h \ +$(top_srcdir)/include/yaz/z-core.h: \ $(srcdir)/z.tcl $(srcdir)/z3950v3.asn $(YAZCOMP) cd $(srcdir); $(YAZCOMPLINE) z3950v3.asn @@ -140,13 +150,3 @@ $(top_srcdir)/include/yaz/item-req.h: \ $(srcdir)/ill.tcl $(srcdir)/item-req.asn $(YAZCOMP) cd $(srcdir); $(YAZCOMP) -d ill.tcl -i yaz -I ../include $(YCFLAGS) item-req.asn -# Threaded versions of objects. -thr-nmem.lo: nmem.c - $(LTCOMPILE) $(THREADED_FLAGS) -c $(srcdir)/nmem.c -o thr-nmem.lo - -thr-statserv.lo: statserv.c - $(LTCOMPILE) $(THREADED_FLAGS) -c $(srcdir)/statserv.c -o thr-statserv.lo -thr-eventl.lo: eventl.c - $(LTCOMPILE) $(THREADED_FLAGS) -c $(srcdir)/eventl.c -o thr-eventl.lo - -