GNU threads support.
[yaz-moved-to-github.git] / lib / Makefile.am
1 ## $Id: Makefile.am,v 1.13 2001-10-03 23:55:18 adam Exp $
2
3 if ISTHR
4 extra=libyazthread.la
5 endif
6
7 lib_LTLIBRARIES = libyaz.la $(extra)
8
9 # If the line below is omitted the LINK variable is
10 # not set in Makefile.in and it will NOT work ..
11 EXTRA_libyaz_la_SOURCES=x.c
12
13 # No real sources
14 libyaz_la_SOURCES=
15
16 libyazthread_la_SOURCES=nmem.c statserv.c
17
18 $(srcdir)/nmem.c: $(top_srcdir)/util/nmem.c
19         cp $(top_srcdir)/util/nmem.c $(srcdir)
20
21 $(srcdir)/statserv.c: $(top_srcdir)/server/statserv.c
22         cp $(top_srcdir)/server/statserv.c $(srcdir)
23
24 LDFLAGS=-version-info 1:0:0
25
26 INCLUDES =-I$(top_srcdir)/include -I$(top_srcdir)/server  -D_REENTRANT=1 
27
28 bin_SCRIPTS = yaz-config
29
30 libyaz_la_LIBADD=../odr/libodr.la \
31  ../comstack/libcomstack.la ../server/libserver.la \
32  ../zutil/libzutil.la ../util/libutil.la ../retrieval/libret.la \
33  $(EXTRALIB)
34