Add block test.
[riscv-tests.git] / Makefile.in
1 prefix := @prefix@
2 abs_top_src_dir := @abs_top_srcdir@
3 XLEN := @XLEN@
4 instbasedir := $(DESTDIR)$(prefix)
5 bmarkdir := $(abs_top_src_dir)/benchmarks
6 isa_src_dir := $(abs_top_src_dir)/isa
7
8 all: benchmarks isa
9
10 install: all
11 install -d $(instbasedir)/share/riscv-tests/isa
12 install -d $(instbasedir)/share/riscv-tests/benchmarks
13 install -p -m 644 `find isa -maxdepth 1 -type f` $(instbasedir)/share/riscv-tests/isa
14 install -p -m 644 `find benchmarks -maxdepth 1 -type f` $(instbasedir)/share/riscv-tests/benchmarks
15
16 benchmarks:
17 mkdir -p benchmarks
18 $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) XLEN=$(XLEN)
19
20 isa:
21 mkdir -p isa
22 $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) XLEN=$(XLEN)
23
24 clean:
25 $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) clean
26 $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) clean
27
28 .PHONY: benchmarks isa clean
29