diff options
author | Yunsup Lee <yunsup@cs.berkeley.edu> | 2014-04-14 21:15:15 -0700 |
---|---|---|
committer | Yunsup Lee <yunsup@cs.berkeley.edu> | 2014-04-14 21:15:15 -0700 |
commit | 83ed3f519de9929b6551b98677047228a8ab4d0c (patch) | |
tree | 186fe4ed156de7b588d0dac720d544df771fe60f /benchmarks/mm/bmark.mk | |
parent | 8f6e2420926471a7bd9a660305ab3d6a22f22dc9 (diff) | |
download | riscv-tests-83ed3f519de9929b6551b98677047228a8ab4d0c.zip riscv-tests-83ed3f519de9929b6551b98677047228a8ab4d0c.tar.gz riscv-tests-83ed3f519de9929b6551b98677047228a8ab4d0c.tar.bz2 |
commit high-performance mm (scalar and vector versions)
Diffstat (limited to 'benchmarks/mm/bmark.mk')
-rw-r--r-- | benchmarks/mm/bmark.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/benchmarks/mm/bmark.mk b/benchmarks/mm/bmark.mk new file mode 100644 index 0000000..bb982a8 --- /dev/null +++ b/benchmarks/mm/bmark.mk @@ -0,0 +1,32 @@ +#======================================================================= +# 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. +# + +mm_c_src = \ + mm_main.c \ + mm.c \ + syscalls.c \ + +mm_riscv_src = \ + hwacha.S \ + crt.S \ + +mm_c_objs = $(patsubst %.c, %.o, $(mm_c_src)) +mm_riscv_objs = $(patsubst %.S, %.o, $(mm_riscv_src)) + +mm_host_bin = mm.host +$(mm_host_bin) : $(mm_c_src) + $(HOST_COMP) $^ -o $(mm_host_bin) + +mm_riscv_bin = mm.riscv +$(mm_riscv_bin) : $(mm_c_objs) $(mm_riscv_objs) + $(RISCV_LINK) $(mm_c_objs) $(mm_riscv_objs) -o $(mm_riscv_bin) $(RISCV_LINK_OPTS) + +junk += $(mm_c_objs) $(mm_riscv_objs) \ + $(mm_host_bin) $(mm_riscv_bin) |