a6a4f57611d943cf774ad22248060f6d04d4323d
[yaz-moved-to-github.git] / lib / Makefile.am
1 ## $Id: Makefile.am,v 1.14 2001-10-05 13:55:17 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 eventl.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 $(srcdir)/eventl.c: $(top_srcdir)/server/eventl.c
25         cp $(top_srcdir)/server/eventl.c $(srcdir)
26
27 LDFLAGS=-version-info 1:0:0
28
29 INCLUDES =-I$(top_srcdir)/include -I$(top_srcdir)/server  @CFLAGSTHREADS@
30
31 bin_SCRIPTS = yaz-config
32
33 libyaz_la_LIBADD=../odr/libodr.la \
34  ../comstack/libcomstack.la ../server/libserver.la \
35  ../zutil/libzutil.la ../util/libutil.la ../retrieval/libret.la \
36  $(EXTRALIB)
37