## Process this file with automake to produce Makefile.in
-SUBDIRS = prune
+SUBDIRS = prune diffimg
EXTRA_DIST = INDEX dotmcl.pl gprof2dot.awk webdot.cgi Makefile.old \
lefty-grace dirgraph diffimg
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+VERSION=0.2
+
+AM_CPPFLAGS = -DVERSION="$(VERSION)" @GD_INCLUDES@
+
+noinst_PROGRAMS = diffimg
+
+diffimg_SOURCES = diffimg.c
+
+diffimg_LDADD = @GD_LIBS@
+
+GRAPH = "digraph G { hello -> world }"
+
+test: diffimg
+ echo $(GRAPH) | dot -Tpng:cg >hello1.png
+ echo $(GRAPH) | dot -Tpng:cg >hello2.png
+ if `./diffimg hello1.png hello2.png >test1.png`;then echo same;else echo different;fi
+ echo $(GRAPH) | dot -Grankdir=LR -Tpng:cg >hello2.png
+ if `./diffimg hello1.png hello2.png >test2.png`;then echo same;else echo different;fi
+
+CLEANFILES = *.png
+