Work on yaz-config creation. Added yaz.m4.
[yaz-moved-to-github.git] / lib / Makefile.am
index ac69b41..0d7d94c 100644 (file)
@@ -1,35 +1,19 @@
-## $Id: Makefile.am,v 1.3 2000-04-05 07:39:55 adam Exp $
+## $Id: Makefile.am,v 1.7 2000-10-11 10:40:56 adam Exp $
 
 lib_LTLIBRARIES = libyaz.la
 
-bin_SCRIPTS = yaz-config
-
 # If the line below is omitted the LINK variable is
 # not set in Makefile.in and it will NOT work ..
 EXTRA_libyaz_la_SOURCES=x.c
 
-LIBS =
-
 # No real sources
 libyaz_la_SOURCES=
 
 LDFLAGS=-version-info 0:0:0
 
-libyaz_la_LIBADD=../odr/libodr.la ../@ASNMODULE@/libasn.la \
+bin_SCRIPTS = yaz-config
+
+libyaz_la_LIBADD=../odr/libodr.la ../$(ASNMODULE)/libasn.la \
  ../comstack/libcomstack.la ../server/libserver.la \
  ../zutil/libzutil.la ../util/libutil.la ../ccl/libccl.la \
- ../retrieval/libret.la @ILLLIB@
-
-#  Public libraries and header files
-LIBDIR=$(exec_prefix)/lib
-INCDIR=$(prefix)/include
-
-yaz-config: Makefile
-       @echo "#!/bin/sh" >yaz-config
-       @echo "# YAZ settings for developers" >>yaz-config
-       @echo "YAZBIN='$(bindir)'" >>yaz-config
-       @echo "YAZTAB='$(pkgdatadir)/tab'" >>yaz-config
-       @echo "YAZLIB='-L$(libdir) -lyaz $(LIBS)'" >>yaz-config
-       @echo "YAZINC='-I$(includedir)'" >>yaz-config
-       chmod +x yaz-config
-
+ ../retrieval/libret.la $(ILLLIB)