feature: add autoconf
[riscv-tests.git] / Makefile.in
diff --git a/Makefile.in b/Makefile.in
new file mode 100644 (file)
index 0000000..f81b394
--- /dev/null
@@ -0,0 +1,18 @@
+prefix          := @prefix@
+abs_top_src_dir := @abs_top_srcdir@
+instbasedir     := $(DESTDIR)$(prefix)
+bmarkdir        := $(abs_top_src_dir)/benchmarks
+isa_src_dir     := $(abs_top_src_dir)/isa
+
+all: benchmarks isa
+
+install: all
+       install -p -m 644 *.hex $(instbasedir)/share/riscv-tests
+
+benchmarks:
+       $(MAKE) -f $(bmarkdir)/Makefile bmarkdir=$(bmarkdir)
+
+isa:
+       $(MAKE) -f $(isa_src_dir)/Makefile isa_src_dir=$(isa_src_dir)
+
+.PHONY: benchmarks isa