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 qsort_c_objs
= $(patsubst %.c
, %.o
, $(qsort_c_src
))
18 qsort_riscv_objs
= $(patsubst %.S
, %.o
, $(qsort_riscv_src
))
20 qsort_host_bin
= qsort.host
21 $(qsort_host_bin
) : $(qsort_c_src
)
22 $(HOST_COMP
) $^
-o
$(qsort_host_bin
)
24 qsort_riscv_bin
= qsort.riscv
25 $(qsort_riscv_bin
) : $(qsort_c_objs
) $(qsort_riscv_objs
)
26 $(RISCV_LINK
) $(qsort_c_objs
) $(qsort_riscv_objs
) -o
$(qsort_riscv_bin
)
28 junk
+= $(qsort_c_objs
) $(qsort_riscv_objs
) \
29 $(qsort_host_bin
) $(qsort_riscv_bin
)