5ab9cc0feaaa450796001b198ebcb5aa3dc063dd
1 #=======================================================================
2 # UCB CS250 Makefile fragment for benchmarks
3 #-----------------------------------------------------------------------
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.
17 spmv_c_objs
= $(patsubst %.c
, %.o
, $(spmv_c_src
))
18 spmv_riscv_objs
= $(patsubst %.S
, %.o
, $(spmv_riscv_src
))
20 spmv_host_bin
= spmv.host
21 $(spmv_host_bin
) : $(spmv_c_src
)
22 $(HOST_COMP
) $^
-o
$(spmv_host_bin
)
24 spmv_riscv_bin
= spmv.riscv
25 $(spmv_riscv_bin
) : $(spmv_c_objs
) $(spmv_riscv_objs
)
26 $(RISCV_LINK
) $(spmv_c_objs
) $(spmv_riscv_objs
) -o
$(spmv_riscv_bin
)
28 junk
+= $(spmv_c_objs
) $(spmv_riscv_objs
) \
29 $(spmv_host_bin
) $(spmv_riscv_bin
)