Added TAV sort benchmarks
[riscv-tests.git] / benchmarks / sort / bmark.mk
1
2 sort_c_src = \
3 sort_main.c \
4 sort.c \
5 syscalls.c \
6
7 sort_riscv_src = \
8 crt.S
9
10 sort_c_objs = $(patsubst %.c, %.o, $(sort_c_src))
11 sort_riscv_objs = $(patsubst %.S, %.o, $(sort_riscv_src))
12
13 sort_host_bin = sort.host
14 $(sort_host_bin): $(sort_c_src)
15 $(HOST_COMP) $^ -o $(sort_host_bin)
16
17 sort_riscv_bin = sort.riscv
18 $(sort_riscv_bin): $(sort_c_objs) $(sort_riscv_objs)
19 $(RISCV_LINK) $(sort_c_objs) $(sort_riscv_objs) -o $(sort_riscv_bin) $(RISCV_LINK_OPTS)
20
21 junk += $(sort_c_objs) $(sort_riscv_objs) $(sort_host_bin) $(sort_riscv_bin)