868f832cd65240c08f8a40192e19513c0bd3d53b
[yaz-moved-to-github.git] / lib / Makefile.am
1 ## $Id: Makefile.am,v 1.16 2001-11-13 23:00:42 adam Exp $
2
3 if ISTHR
4 extra=libyazthread.la
5 endif
6
7 lib_LTLIBRARIES = libyaz.la $(extra) libyazmalloc.la
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 libyazmalloc_la_SOURCES=xmalloc.c
19
20 $(srcdir)/nmem.c: $(top_srcdir)/util/nmem.c
21         cp $(top_srcdir)/util/nmem.c $(srcdir)
22
23 $(srcdir)/statserv.c: $(top_srcdir)/server/statserv.c
24         cp $(top_srcdir)/server/statserv.c $(srcdir)
25
26 $(srcdir)/eventl.c: $(top_srcdir)/server/eventl.c
27         cp $(top_srcdir)/server/eventl.c $(srcdir)
28
29 $(srcdir)/xmalloc.c: $(top_srcdir)/util/xmalloc.c
30         cp $(top_srcdir)/util/xmalloc.c $(srcdir)
31
32 LDFLAGS=-version-info 1:0:0
33
34 CFLAGS =-DTRACE_XMALLOC=2 -I$(top_srcdir)/include -I$(top_srcdir)/server @CFLAGSTHREADS@
35
36 bin_SCRIPTS = yaz-config
37
38 libyaz_la_LIBADD=../odr/libodr.la \
39  ../comstack/libcomstack.la ../server/libserver.la \
40  ../util/libutil.la ../retrieval/libret.la \
41  $(EXTRALIB)
42