Clean up benchmarks; support uarch-specific counters
[riscv-tests.git] / benchmarks / vec-cmplxmult / bmark.mk
1 #=======================================================================
2 # UCB CS250 Makefile fragment for benchmarks
3 #-----------------------------------------------------------------------
4 #
5 # Each benchmark directory should have its own fragment which
6 # essentially lists what the source files are and how to link them
7 # into an riscv and/or host executable. All variables should include
8 # the benchmark name as a prefix so that they are unique.
9 #
10
11 vec_cmplxmult_c_src = \
12 vec_cmplxmult_main.c \
13
14 vec_cmplxmult_riscv_src = \
15 crt.S \
16 vec_cmplxmult_asm.S
17
18 vec_cmplxmult_c_objs = $(patsubst %.c, %.o, $(vec_cmplxmult_c_src))
19 vec_cmplxmult_riscv_objs = $(patsubst %.S, %.o, $(vec_cmplxmult_riscv_src))
20
21 vec_cmplxmult_host_bin = vec-cmplxmult.host
22 $(vec_cmplxmult_host_bin) : $(vec_cmplxmult_c_src)
23 $(HOST_COMP) $^ -o $(vec_cmplxmult_host_bin)
24
25 vec_cmplxmult_riscv_bin = vec-cmplxmult.riscv
26 $(vec_cmplxmult_riscv_bin) : $(vec_cmplxmult_c_objs) $(vec_cmplxmult_riscv_objs)
27 $(RISCV_LINK) $(RISCV_LINK_SYSCALL) $(vec_cmplxmult_c_objs) $(vec_cmplxmult_riscv_objs) -o $(vec_cmplxmult_riscv_bin)
28
29 junk += $(vec_cmplxmult_c_objs) $(vec_cmplxmult_riscv_objs) \
30 $(vec_cmplxmult_host_bin) $(vec_cmplxmult_riscv_bin)