X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FMakefile.am;h=ff85dc5865e2cc24daf398d7a83a53081a5c7b90;hb=26d07328e36c41d39216d66d742d133cf7512995;hp=be35ba4f30012dedf506cca8efe61391b8c5e2a9;hpb=7dabb33444218a5c5b83cf1a4d9fe386699f872e;p=yaz-moved-to-github.git diff --git a/lib/Makefile.am b/lib/Makefile.am index be35ba4..ff85dc5 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,34 +1,34 @@ -## $Id: Makefile.am,v 1.2 2000-02-28 11:44:39 adam Exp $ +## $Id: Makefile.am,v 1.9 2000-11-23 10:58:32 adam Exp $ -lib_LIBRARIES = libyaz.a +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 .. +EXTRA_libyaz_la_SOURCES=x.c + +# No real sources +libyaz_la_SOURCES= + +libyazthread_la_SOURCES=nmem.c statserv.c + +LDFLAGS=-version-info 1:0:0 + +nmem.c: + ln -s $(srcdir)/../util/nmem.c + +statserv.c: + ln -s $(srcdir)/../server/statserv.c + +INCLUDES =-I$(srcdir)/../include -I$(srcdir)/../server -D_REENTRANT=1 -DHAVE_PTHREAD_H=1 bin_SCRIPTS = yaz-config -libyaz_a_SOURCES= - -LIB=libyaz.a - -YAZLIBS=../odr/libodr.a ../@ASNMODULE@/libasn.a ../comstack/libcomstack.a \ - ../server/libserver.a ../zutil/libzutil.a ../util/libutil.a \ - ../ccl/libccl.a ../retrieval/libret.a @ILLLIB@ - -libyaz.a: $(YAZLIBS) - rm -f $(LIB) - for i in $(YAZLIBS); do echo $$i; ar x $$i; rm -f __*; done - ar qc $(LIB) *.o - rm -f *.o - $(RANLIB) $(LIB) - -# Public libraries and header files -LIBDIR=$(exec_prefix)/lib -INCDIR=$(prefix)/include - -yaz-config: Makefile - @echo "#!/bin/sh" >yaz-config - @echo "# YAZ settings for developers" >>yaz-config - @echo "YAZBIN='$(bindir)'" >>yaz-config - @echo "YAZTAB='$(pkgdatadir)/tab'" >>yaz-config - @echo "YAZLIB='-L$(libdir) -lyaz $(LIBS)'" >>yaz-config - @echo "YAZINC='-I$(includedir)'" >>yaz-config - chmod +x yaz-config +libyaz_la_LIBADD=../odr/libodr.la ../$(ASNMODULE)/libasn.la \ + ../comstack/libcomstack.la ../server/libserver.la \ + ../zutil/libzutil.la ../util/libutil.la ../ccl/libccl.la \ + ../retrieval/libret.la $(ILLLIB)