aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 002426c2f4e0e7661042bda1c5e69cb82567ef1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 -d $(instbasedir)/share/riscv-tests
	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)

clean:
	$(MAKE) -f $(isa_src_dir)/Makefile isa_src_dir=$(isa_src_dir) clean
	$(MAKE) -f $(bmarkdir)/Makefile bmarkdir=$(bmarkdir) clean

.PHONY: benchmarks isa clean