New test for ODR. Demonstrates the use of small ASN.1 spec too.
[yaz-moved-to-github.git] / odr / Makefile.am
index 988eedc..47d8321 100644 (file)
@@ -1,9 +1,22 @@
-## $Id: Makefile.am,v 1.7 2002-09-11 21:25:57 adam Exp $
+## $Id: Makefile.am,v 1.8 2003-05-06 10:08:30 adam Exp $
 
 noinst_LTLIBRARIES = libodr.la
 
 AM_CPPFLAGS=-I$(top_srcdir)/include
 
+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
+       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 \
         odr_seq.c odr_oct.c ber_oct.c odr_bit.c ber_bit.c odr_oid.c \