get rid of empty asm test
[riscv-tests.git] / benchmarks / empty / 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 empty_c_src = \
12 empty_main.c \
13 syscalls.c \
14
15 empty_riscv_src = \
16 crt.S \
17
18 empty_c_objs = $(patsubst %.c, %.o, $(empty_c_src))
19 empty_riscv_objs = $(patsubst %.S, %.o, $(empty_riscv_src))
20
21 empty_host_bin = empty.host
22 $(empty_host_bin): $(empty_c_src)
23 $(HOST_COMP) $^ -o $(empty_host_bin)
24
25 empty_riscv_bin = empty.riscv
26 $(empty_riscv_bin): $(empty_c_objs) $(empty_riscv_objs)
27 $(RISCV_LINK) $(empty_c_objs) $(empty_riscv_objs) -o $(empty_riscv_bin) $(RISCV_LINK_OPTS)
28
29 junk += $(empty_c_objs) $(empty_riscv_objs) \
30 $(empty_host_bin) $(empty_riscv_bin)