1 ## $Id: Makefile.am,v 1.25 2003-01-06 08:20:27 adam Exp $
4 libsrw=../srw/libsrw.la
17 LDFLAGS=-version-info 1:0:0
19 bin_SCRIPTS = yaz-config
21 lib_LTLIBRARIES = libyaz.la $(extra) $(ssllib) libyazmalloc.la
23 # If the line below is omitted the LINK variable is
24 # not set in Makefile.in and it will NOT work ..
25 EXTRA_libyaz_la_SOURCES=x.c
30 libyazthread_la_LIBADD=nmem.lo statserv.lo eventl.lo
31 libyazthread_la_SOURCES=
33 libyazmalloc_la_LIBADD=xmalloc.lo
34 libyazmalloc_la_SOURCES=
36 libyazssl_la_LIBADD=tcpip.lo comstack.lo
39 THREADED_FLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/server @CFLAGSTHREADS@
41 XMALLOC_FLAGS = -DTRACE_XMALLOC=2 -I$(top_srcdir)/include
43 SSL_FLAGS= -I$(top_srcdir)/include $(SSL_DEFS) $(SSL_CFLAGS)
45 nmem.lo: $(top_srcdir)/util/nmem.c
46 $(LTCOMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/util/nmem.c
48 nmem.o: $(top_srcdir)/util/nmem.c
49 $(COMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/util/nmem.c
51 statserv.lo: $(top_srcdir)/server/statserv.c
52 $(LTCOMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/statserv.c
54 statserv.o: $(top_srcdir)/server/statserv.c
55 $(COMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/statserv.c
57 eventl.lo: $(top_srcdir)/server/eventl.c
58 $(LTCOMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/eventl.c
60 eventl.o: $(top_srcdir)/server/eventl.c
61 $(COMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/eventl.c
63 xmalloc.lo: $(top_srcdir)/util/xmalloc.c
64 $(LTCOMPILE) $(XMALLOC_FLAGS) -c $(top_srcdir)/util/xmalloc.c
66 xmalloc.o: $(top_srcdir)/util/xmalloc.c
67 $(COMPILE) $(XMALLOC_FLAGS) -c $(top_srcdir)/util/xmalloc.c
69 comstack.lo: $(top_srcdir)/comstack/comstack.c
70 $(LTCOMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/comstack.c
72 comstack.o: $(top_srcdir)/comstack/comstack.c
73 $(COMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/comstack.c
75 tcpip.lo: $(top_srcdir)/comstack/tcpip.c
76 $(LTCOMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/tcpip.c
78 tcpip.o: $(top_srcdir)/comstack/tcpip.c
79 $(COMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/tcpip.c
81 libyaz_la_LIBADD=../odr/libodr.la \
82 ../comstack/libcomstack.la ../server/libserver.la \
83 ../util/libutil.la ../ccl/libccl.la ../cql/libcql.la ../zutil/libzutil.la \
84 ../ill/libill.la ../z39.50/libz39.50.la $(libsrw)