X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FMakefile.am;h=5f4989c09696469d33c253b75becc746d3a60df7;hb=f1173ed21af445eeecf2acf2df3cbef7dfd61cf0;hp=893813229ebce70379846e3afc605f70897c59ef;hpb=b02f404f35f196079a0cd9569dace76d70c3f1c9;p=yaz-moved-to-github.git diff --git a/src/Makefile.am b/src/Makefile.am index 8938132..5f4989c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,14 +1,10 @@ ## This file is part of the YAZ toolkit. ## Copyright (C) 1994-2005, Index Data, All rights reserved. -## $Id: Makefile.am,v 1.22 2005-04-22 15:09:36 adam Exp $ - -if ISTHR -thrlib=libyazthread.la -endif +## $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 dist-hook: test -f $(srcdir)/cql.c || exit 1 @@ -27,9 +23,10 @@ EXTRA_DIST=$(tabdata_DATA) $(illdata_DATA) \ YAZCOMP = ../util/yaz-asncomp YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS) -AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(SSL_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 codetables.xml $(srcdir)/marc8.c: charconv.tcl codetables.xml @@ -65,13 +62,17 @@ libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.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 @@ -149,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 - -