Added automatic test procedure to firmjni.
[libfirm] / Makefile.in
index 7efdfbc..9054a7b 100644 (file)
@@ -16,11 +16,6 @@ topdir := .
 # subdirectory under topdir
 subdir := .
 
-prefix := @prefix@
-exec_prefix := @exec_prefix@
-bindir = $(exec_prefix)/bin
-datadir = $(prefix)/lib
-
 subdirs := ir ir/adt ir/debug ir/tv ir/common ir/ident ir/ir ir/tr ir/ana ir/st
 
 SOURCES := Makefile.in MakeRules.in MakeTargets\
@@ -49,19 +44,16 @@ libfirm.a: subdir_all $(XOFILES) $(OFILES)
 
 testprograms:  libfirm.a
        $(MAKE) -C testprograms
+       $(MAKE) -C firmjni
 
 
-# generate program documentation
+# gernerate program documentation
 .PHONY: autodoc
-autodoc: autodoc_xref $(AUTODOCDIR) $(GLOBALXREFFILE) autodoc_html $(INDEXFILE)
-
-$(GLOBALXREFFILE): $(addsuffix /$(LOCALXREFSFILE), $(subdirs)) .xrefs
-#      cat $^ > $@
-       $(RM) $@
-       find $(PWD) -name "*.xref" -print > $@
+autodoc: $(AUTODOCDIR) $(AUTODOCINDEXFILE)
 
-$(INDEXFILE): $(GLOBALXREFFILE)
-       $(AUTODOC) $(GLOBALXREFFILE) $@ INDEX HTML
+.PHONY: $(AUTDOCINDEXFILE)
+$(AUTODOCINDEXFILE): $(CFILES) $(HFILES)
+       $(AUTODOC) $(AUTODOCFILE)
 
 
 #${srcdir}/configure: configure.in aclocal.m4
@@ -82,3 +74,13 @@ stamp-h: config.h.in config.status
 
 config.status: configure
        ./config.status --recheck
+
+test::
+       $(MAKE) -C testprograms test;
+       $(MAKE) -C firmjni test;
+
+test-reference::
+       $(MAKE) -C testprograms reference;
+
+test-clean:
+       $(MAKE) -C testprograms realclean