1 ## $Id: Makefile.am,v 1.21 2002-03-22 23:44:55 adam Exp $
11 LDFLAGS=-version-info 1:0:0
13 bin_SCRIPTS = yaz-config
15 lib_LTLIBRARIES = libyaz.la $(extra) $(ssllib) libyazmalloc.la
17 # If the line below is omitted the LINK variable is
18 # not set in Makefile.in and it will NOT work ..
19 EXTRA_libyaz_la_SOURCES=x.c
24 libyazthread_la_LIBADD=nmem.lo statserv.lo eventl.lo
25 libyazthread_la_SOURCES=
27 libyazmalloc_la_LIBADD=xmalloc.lo
28 libyazmalloc_la_SOURCES=
30 libyazssl_la_LIBADD=tcpip.lo comstack.lo
33 THREADED_FLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/server @CFLAGSTHREADS@
35 XMALLOC_FLAGS = -DTRACE_XMALLOC=2 -I$(top_srcdir)/include
37 SSL_FLAGS= -I$(top_srcdir)/include $(SSL_DEFS) $(SSL_CFLAGS)
39 nmem.lo: $(top_srcdir)/util/nmem.c
40 $(LTCOMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/util/nmem.c
42 nmem.o: $(top_srcdir)/util/nmem.c
43 $(COMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/util/nmem.c
45 statserv.lo: $(top_srcdir)/server/statserv.c
46 $(LTCOMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/statserv.c
48 statserv.o: $(top_srcdir)/server/statserv.c
49 $(COMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/statserv.c
51 eventl.lo: $(top_srcdir)/server/eventl.c
52 $(LTCOMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/eventl.c
54 eventl.o: $(top_srcdir)/server/eventl.c
55 $(COMPILE) $(THREADED_FLAGS) -c $(top_srcdir)/server/eventl.c
57 xmalloc.lo: $(top_srcdir)/util/xmalloc.c
58 $(LTCOMPILE) $(XMALLOC_FLAGS) -c $(top_srcdir)/util/xmalloc.c
60 xmalloc.o: $(top_srcdir)/util/xmalloc.c
61 $(COMPILE) $(XMALLOC_FLAGS) -c $(top_srcdir)/util/xmalloc.c
63 comstack.lo: $(top_srcdir)/comstack/comstack.c
64 $(LTCOMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/comstack.c
66 comstack.o: $(top_srcdir)/comstack/comstack.c
67 $(COMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/comstack.c
69 tcpip.lo: $(top_srcdir)/comstack/tcpip.c
70 $(LTCOMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/tcpip.c
72 tcpip.o: $(top_srcdir)/comstack/tcpip.c
73 $(COMPILE) $(SSL_FLAGS) -c $(top_srcdir)/comstack/tcpip.c
75 libyaz_la_LIBADD=../odr/libodr.la \
76 ../comstack/libcomstack.la ../server/libserver.la \
77 ../util/libutil.la ../retrieval/libret.la \