X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2FMakefile.am;h=937335824d07dc879cb2b63f092ec429673f56fc;hb=cf3ff0df41755297543b14f007842e1dc216ec25;hp=08eaa362a293be14028d518775395813e3f0f61e;hpb=d675fdcc2386440425e3d230730378bc96a2664c;p=yaz-moved-to-github.git diff --git a/src/Makefile.am b/src/Makefile.am index 08eaa36..9373358 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.21 2005-04-22 14:59:42 adam Exp $ - -if ISTHR -thrlib=libyazthread.la -endif +## $Id: Makefile.am,v 1.23 2005-09-09 10:34:09 adam Exp $ YAZ_VERSION_INFO=2:0:0 -lib_LTLIBRARIES = libyaz.la $(thrlib) +lib_LTLIBRARIES = libyaz.la dist-hook: test -f $(srcdir)/cql.c || exit 1 @@ -24,22 +20,23 @@ EXTRA_DIST=$(tabdata_DATA) $(illdata_DATA) \ 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) $(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 -marc8.c: charconv.tcl 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 diagbib1.c: csvtobib1.tcl bib1.csv +$(top_srcdir)/include/yaz/diagbib1.h $(srcdir)/diagbib1.c: csvtobib1.tcl bib1.csv cd $(srcdir); ./csvtobib1.tcl -$(top_srcdir)/include/yaz/diagsrw.h diagsrw.c: csvtosrw.tcl srw.csv +$(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 \ @@ -70,10 +67,6 @@ libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \ eventl.h service.c service.h session.h libyaz_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO) -libyazthread_la_SOURCES= -libyazthread_la_LIBADD=thr-nmem.lo thr-statserv.lo thr-eventl.lo -libyazthread_la_LDFLAGS=-version-info $(YAZ_VERSION_INFO) - # Rules for Z39.50 V3 $(srcdir)/z-accdes1.c \ $(srcdir)/z-accform1.c \ @@ -149,13 +142,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 - -