-## $Id: Makefile.am,v 1.7 2000-10-11 10:40:56 adam Exp $
+## $Id: Makefile.am,v 1.9 2000-11-23 10:58:32 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 ..
# No real sources
libyaz_la_SOURCES=
-LDFLAGS=-version-info 0:0:0
+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
../comstack/libcomstack.la ../server/libserver.la \
../zutil/libzutil.la ../util/libutil.la ../ccl/libccl.la \
../retrieval/libret.la $(ILLLIB)
+