-## $Id: Makefile.am,v 1.6 2000-06-19 09:49:35 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
-bin_SCRIPTS = yaz-config
-
-EXTRA_DIST = yaz-config.in
+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
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)
+