X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=lib%2FMakefile.am;h=a6a4f57611d943cf774ad22248060f6d04d4323d;hp=3f934cfe0c86a50363ef9a1a63fed97eea95c080;hb=9158f8e318f25cb16171433742950236cae96d36;hpb=5682310668a3e9607b5cc55f2ebeac402213f38f diff --git a/lib/Makefile.am b/lib/Makefile.am index 3f934cf..a6a4f57 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,6 +1,10 @@ -## $Id: Makefile.am,v 1.8 2000-10-11 11:36:15 adam Exp $ +## $Id: Makefile.am,v 1.14 2001-10-05 13:55:17 adam Exp $ -lib_LTLIBRARIES = libyaz.la +if ISTHR +extra=libyazthread.la +endif + +lib_LTLIBRARIES = libyaz.la $(extra) # If the line below is omitted the LINK variable is # not set in Makefile.in and it will NOT work .. @@ -9,11 +13,25 @@ EXTRA_libyaz_la_SOURCES=x.c # No real sources libyaz_la_SOURCES= +libyazthread_la_SOURCES=nmem.c statserv.c eventl.c + +$(srcdir)/nmem.c: $(top_srcdir)/util/nmem.c + cp $(top_srcdir)/util/nmem.c $(srcdir) + +$(srcdir)/statserv.c: $(top_srcdir)/server/statserv.c + cp $(top_srcdir)/server/statserv.c $(srcdir) + +$(srcdir)/eventl.c: $(top_srcdir)/server/eventl.c + cp $(top_srcdir)/server/eventl.c $(srcdir) + LDFLAGS=-version-info 1:0:0 +INCLUDES =-I$(top_srcdir)/include -I$(top_srcdir)/server @CFLAGSTHREADS@ + bin_SCRIPTS = yaz-config -libyaz_la_LIBADD=../odr/libodr.la ../$(ASNMODULE)/libasn.la \ +libyaz_la_LIBADD=../odr/libodr.la \ ../comstack/libcomstack.la ../server/libserver.la \ - ../zutil/libzutil.la ../util/libutil.la ../ccl/libccl.la \ - ../retrieval/libret.la $(ILLLIB) + ../zutil/libzutil.la ../util/libutil.la ../retrieval/libret.la \ + $(EXTRALIB) +