diff options
Diffstat (limited to 'benchmarks/median/bmark.mk')
-rw-r--r-- | benchmarks/median/bmark.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/benchmarks/median/bmark.mk b/benchmarks/median/bmark.mk new file mode 100644 index 0000000..31c853a --- /dev/null +++ b/benchmarks/median/bmark.mk @@ -0,0 +1,30 @@ +#======================================================================= +# UCB CS250 Makefile fragment for benchmarks +#----------------------------------------------------------------------- +# +# Each benchmark directory should have its own fragment which +# essentially lists what the source files are and how to link them +# into an riscv and/or host executable. All variables should include +# the benchmark name as a prefix so that they are unique. +# + +median_c_src = \ + median_main.c \ + median.c \ + +median_riscv_src = \ + crt.S \ + +median_c_objs = $(patsubst %.c, %.o, $(median_c_src)) +median_riscv_objs = $(patsubst %.S, %.o, $(median_riscv_src)) + +median_host_bin = median.host +$(median_host_bin): $(median_c_src) + $(HOST_COMP) $^ -o $(median_host_bin) + +median_riscv_bin = median.riscv +$(median_riscv_bin): $(median_c_objs) $(median_riscv_objs) + $(RISCV_LINK) $(median_c_objs) $(median_riscv_objs) -o $(median_riscv_bin) + +junk += $(median_c_objs) $(median_riscv_objs) \ + $(median_host_bin) $(median_riscv_bin) |