Minor fixes regarding packaging.
[yaz-moved-to-github.git] / lib / Makefile.am
1 ## $Id: Makefile.am,v 1.3 2000-04-05 07:39:55 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 LIBS =
12
13 # No real sources
14 libyaz_la_SOURCES=
15
16 LDFLAGS=-version-info 0:0:0
17
18 libyaz_la_LIBADD=../odr/libodr.la ../@ASNMODULE@/libasn.la \
19  ../comstack/libcomstack.la ../server/libserver.la \
20  ../zutil/libzutil.la ../util/libutil.la ../ccl/libccl.la \
21  ../retrieval/libret.la @ILLLIB@
22
23 #  Public libraries and header files
24 LIBDIR=$(exec_prefix)/lib
25 INCDIR=$(prefix)/include
26
27 yaz-config: Makefile
28         @echo "#!/bin/sh" >yaz-config
29         @echo "# YAZ settings for developers" >>yaz-config
30         @echo "YAZBIN='$(bindir)'" >>yaz-config
31         @echo "YAZTAB='$(pkgdatadir)/tab'" >>yaz-config
32         @echo "YAZLIB='-L$(libdir) -lyaz $(LIBS)'" >>yaz-config
33         @echo "YAZINC='-I$(includedir)'" >>yaz-config
34         chmod +x yaz-config
35