diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-03-03 11:02:24 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-03-03 11:03:13 -0800 |
commit | 08486cb632ef704709a89fc6bab5842bec4c2547 (patch) | |
tree | a14202e149a7bde47e2019ba4820d44f21ef903b /benchmarks | |
parent | c9022d2f63f50388b2ab1192966f30dbe7819a59 (diff) | |
download | riscv-tests-08486cb632ef704709a89fc6bab5842bec4c2547.zip riscv-tests-08486cb632ef704709a89fc6bab5842bec4c2547.tar.gz riscv-tests-08486cb632ef704709a89fc6bab5842bec4c2547.tar.bz2 |
Fix ./configure in root
This Makefile is still super ghetto!
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 26df2a9..1145fed 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -6,7 +6,7 @@ default: all -bmarkdir = . +src_dir = . instname = riscv-bmarks instbasedir = $(UCB_VLSI_HOME)/install @@ -49,19 +49,19 @@ HOST_COMP = gcc $(HOST_OPTS) RISCV_PREFIX ?= riscv64-unknown-elf- RISCV_GCC ?= $(RISCV_PREFIX)gcc RISCV_GCC_OPTS ?= -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf -RISCV_LINK ?= $(RISCV_GCC) -T $(bmarkdir)/common/test.ld $(incs) -RISCV_LINK_MT ?= $(RISCV_GCC) -T $(bmarkdir)/common/test-mt.ld +RISCV_LINK ?= $(RISCV_GCC) -T $(src_dir)/common/test.ld $(incs) +RISCV_LINK_MT ?= $(RISCV_GCC) -T $(src_dir)/common/test-mt.ld RISCV_LINK_OPTS ?= -nostdlib -nostartfiles -ffast-math -lc -lgcc RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data RISCV_SIM ?= spike -VPATH += $(addprefix $(bmarkdir)/, $(bmarks)) -VPATH += $(bmarkdir)/common +VPATH += $(addprefix $(src_dir)/, $(bmarks)) +VPATH += $(src_dir)/common -incs += -I$(bmarkdir)/../env -I$(bmarkdir)/common $(addprefix -I$(bmarkdir)/, $(bmarks)) +incs += -I$(src_dir)/../env -I$(src_dir)/common $(addprefix -I$(src_dir)/, $(bmarks)) objs := -include $(patsubst %, $(bmarkdir)/%/bmark.mk, $(bmarks)) +include $(patsubst %, $(src_dir)/%/bmark.mk, $(bmarks)) #------------------------------------------------------------ # Build and run benchmarks on riscv simulator |