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