b6532614a6416176814903ebb58814208c22231c
[yaz-moved-to-github.git] / lib / Makefile.am
1 ## $Id: Makefile.am,v 1.5 2000-05-02 19:32:16 adam Exp $
2
3 lib_LTLIBRARIES = libyaz.la
4
5 bin_SCRIPTS = yaz-config
6
7 # If the line below is omitted the LINK variable is
8 # not set in Makefile.in and it will NOT work ..
9 EXTRA_libyaz_la_SOURCES=x.c
10
11 # No real sources
12 libyaz_la_SOURCES=
13
14 LDFLAGS=-version-info 0:0:0
15
16 libyaz_la_LIBADD=../odr/libodr.la ../$(ASNMODULE)/libasn.la \
17  ../comstack/libcomstack.la ../server/libserver.la \
18  ../zutil/libzutil.la ../util/libutil.la ../ccl/libccl.la \
19  ../retrieval/libret.la $(ILLLIB)
20
21 #  Public libraries and header files
22 LIBDIR=$(exec_prefix)/lib
23 INCDIR=$(prefix)/include
24
25 yaz-config: Makefile
26         @echo "#!/bin/sh" >yaz-config
27         @echo "# YAZ settings for developers" >>yaz-config
28         @echo "YAZBIN='$(bindir)'" >>yaz-config
29         @echo "YAZTAB='$(pkgdatadir)/tab'" >>yaz-config
30         @echo "YAZLIB='-L$(libdir) -lyaz $(LIBS)'" >>yaz-config
31         @echo "YAZINC='-I$(includedir)'" >>yaz-config
32         chmod +x yaz-config
33