Better ODR diagnostics for missing elements which includes additional
[yaz-moved-to-github.git] / odr / Makefile.am
index 37ef25b..eb074bc 100644 (file)
@@ -1,10 +1,21 @@
-## $Id: Makefile.am,v 1.6 2002-07-25 12:51:08 adam Exp $
+## $Id: Makefile.am,v 1.9 2003-05-20 19:55:29 adam Exp $
 
 noinst_LTLIBRARIES = libodr.la
 
 AM_CPPFLAGS=-I$(top_srcdir)/include
 
-LIBS =
+TESTS = tstodr
+
+EXTRA_PROGRAMS = tstodr
+
+EXTRA_DIST = tstodrcodec.c tstodrcodec.h tstodr.asn
+
+tstodr_LDADD = libodr.la ../util/libutil.la
+tstodr_SOURCES = tstodr.c tstodrcodec.c tstodrcodec.h 
+
+# Rule for generating codecs for our small ASN.1 spec
+tstodrcodec.c tstodrcodec.h: $(srcdir)/tstodr.asn $(top_srcdir)/util/yaz-comp
+       cd $(srcdir); $(top_srcdir)/util/yaz-comp tstodr.asn
 
 libodr_la_SOURCES = odr_bool.c ber_bool.c ber_len.c ber_tag.c odr_util.c \
         odr_null.c ber_null.c odr_int.c ber_int.c odr_tag.c odr_cons.c \