Make simple memory test errors more readable.
[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 debug_src_dir := $(abs_top_src_dir)/debug
8
9 all: benchmarks isa debug
10
11 install: all
12 install -d $(instbasedir)/share/riscv-tests/isa
13 install -d $(instbasedir)/share/riscv-tests/benchmarks
14 install -p -m 644 `find isa -maxdepth 1 -type f` $(instbasedir)/share/riscv-tests/isa
15 install -p -m 644 `find benchmarks -maxdepth 1 -type f` $(instbasedir)/share/riscv-tests/benchmarks
16
17 benchmarks:
18 mkdir -p benchmarks
19 $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) XLEN=$(XLEN)
20
21 isa:
22 mkdir -p isa
23 $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) XLEN=$(XLEN)
24
25 debug:
26 mkdir -p debug
27 $(MAKE) -C debug -f $(debug_src_dir)/Makefile src_dir=$(debug_src_dir) XLEN=$(XLEN)
28
29 clean:
30 $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) clean
31 $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) clean
32 $(MAKE) -C debug -f $(bmarkdir)/Makefile src_dir=$(debug_src_dir) clean
33
34 .PHONY: benchmarks isa clean
35