Defined log level bits app2 and app3
[yaz-moved-to-github.git] / util / Makefile.am
index 36c69e1..8fb85d8 100644 (file)
@@ -1,12 +1,47 @@
-## Copyright (C) 1994-2000, Index Data
+## Copyright (C) 1994-2003, Index Data
 ## All rights reserved.
-## $Id: Makefile.am,v 1.4 2000-03-02 08:48:20 adam Exp $
+## $Id: Makefile.am,v 1.18 2003-05-06 10:07:33 adam Exp $
 
-noinst_LIBRARIES = libutil.a
+noinst_LTLIBRARIES = libutil.la
 
-bin_SCRIPTS=yaz-comp
+TESTS = tsticonv tstnmem tstmatchstr tstwrbuf
 
-INCLUDES=-I../include
+bin_SCRIPTS = yaz-comp
+
+EXTRA_DIST = yaz-comp cvs-date.tcl charconv.tcl charconv.sgm
+
+AM_CPPFLAGS=-I$(top_srcdir)/include
+
+noinst_PROGRAMS = marcdump yaziconv
+
+EXTRA_PROGRAMS = tsticonv tstnmem tstmatchstr tstwrbuf
+
+# MARC dumper utility
+marcdump_LDADD = libutil.la 
+marcdump_SOURCES = marcdump.c
+
+# YAZ Iconv utility
+yaziconv_LDADD = libutil.la 
+yaziconv_SOURCES = yaziconv.c
+
+# Tests..
+tsticonv_LDADD = libutil.la
+tsticonv_SOURCES = tsticonv.c
+
+tstnmem_LDADD = libutil.la
+tstnmem_SOURCES = tstnmem.c
+
+tstmatchstr_LDADD = libutil.la
+tstmatchstr_SOURCES = tstmatchstr.c
+
+tstwrbuf_LDADD = libutil.la
+tstwrbuf_SOURCES = tstwrbuf.c
+
+# MARC8 C conversion is generated from charconv.sgm
+marc8.c: charconv.sgm charconv.tcl
+       cd $(srcdir); ./charconv.tcl -p marc8 -s 50 charconv.sgm marc8.c
+
+libutil_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \
+   nmemsdup.c xmalloc.c readconf.c tpath.c nmem.c matchstr.c atoin.c \
+   siconv.c marc8.c
 
-libutil_a_SOURCES=options.c log.c marcdisp.c oid.c wrbuf.c nmemsdup.c \
-   xmalloc.c readconf.c tpath.c nmem.c matchstr.c atoin.c