+assoc_t_SOURCES = assoc-test.c
+assoc_t_LDADD = libmLib.la
+assoc_t_LDFLAGS = -static
+assoc.test: assoc.t sym.in sym.ref
+ ./assoc.t <sym.in >assoc.out
+ cmp assoc.out sym.ref
+ @echo "assoc tested OK."
+
+bits_t_SOURCES = bits.c
+bits_t_LDADD = libmLib.la
+bits_t_LDFLAGS = -static
+bits.o: bits.c
+ $(COMPILE) -c -DSRCDIR="\"$(srcdir)\"" $(srcdir)/bits.c -o bits.o
+bits.test: bits.t
+ ./bits.t -f $(srcdir)/bits.in
+
+base64.to: base64.c
+ $(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" \
+ $(srcdir)/base64.c -o base64.to
+base64.t: base64.to base64.o libmLib.la
+ $(CC) $(CFLAGS) $(LDFLAGS) \
+ base64.to .libs/libmLib.a $(LIBS) -o base64.t
+base64.test: base64.t base64.in base64.ref
+ ./base64.t <$(srcdir)/base64.in >base64.out
+ cmp base64.out $(srcdir)/base64.ref
+ ./base64.t -d <$(srcdir)/base64.ref >base64.out
+ cmp base64.out $(srcdir)/base64.in
+ @echo "base64 tested OK."
+
+hex.to: hex.c
+ $(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" \
+ $(srcdir)/hex.c -o hex.to
+hex.t: hex.to hex.o libmLib.la
+ $(CC) $(CFLAGS) $(LDFLAGS) \
+ hex.to .libs/libmLib.a $(LIBS) -o hex.t
+hex.test: hex.t hex.in hex.ref
+ ./hex.t <$(srcdir)/hex.in >hex.out
+ cmp hex.out $(srcdir)/hex.ref
+ ./hex.t -d <$(srcdir)/hex.ref >hex.out
+ cmp hex.out $(srcdir)/hex.in
+ @echo "hex tested OK."
+
+unihash.to: unihash.c
+ $(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" \
+ $(srcdir)/unihash.c -o unihash.to
+unihash.t: unihash.to libmLib.la
+ $(CC) $(CFLAGS) $(LDFLAGS) \
+ unihash.to .libs/libmLib.a $(LIBS) -o unihash.t
+unihash.in: unihash-check.pl
+ perl $(srcdir)/unihash-check.pl >unihash.in.new
+ mv unihash.in.new unihash.in
+unihash.test: unihash.t unihash.in
+ ./unihash.t -f unihash.in
+
+TEST_CLEAN = \
+ *.t *.to \
+ da.in da.ref da.out \
+ sym.in sym.ref sym.out \
+ base64.out hex.out unihash.in
+
+TEST_DIST = \
+ da-gtest da-ref \
+ sym-gtest sym-ref \
+ bits.in bits-testgen.c \
+ base64.in base64.ref hex.in hex.ref
+
+## --- Background resolver ---
+##
+## I must (a) build the standalone version, and (b) inform the client library
+## where the standalone version is.
+
+bres$(EXEEXT): bres-stnd.o
+ $(LINK) -o bres bres-stnd.o $(LIBS)
+
+bres-stnd.o: $(srcdir)/bres.c
+ $(COMPILE) -c -DBRES_STANDALONE -o bres-stnd.o $(srcdir)/bres.c
+
+bres.lo: $(srcdir)/bres.c
+ $(LTCOMPILE) -c -DBRES_SERVER="\"$(libexecdir)/$(PACKAGE)/`echo bres|sed '$(transform)'`\"" $(srcdir)/bres.c
+
+## --- Other useful rules ---