diff options
author | Colin Schmidt <colins@eecs.berkeley.edu> | 2016-02-26 15:44:54 -0800 |
---|---|---|
committer | Colin Schmidt <colins@eecs.berkeley.edu> | 2016-02-27 12:03:25 -0800 |
commit | b75c550fda837f41d606d8f0b6e6794d9ef30c41 (patch) | |
tree | d83b250da2bec388a389685df2d0590864c3500c /benchmarks | |
parent | 9ab937b3460e7003856277ddf5dd95ba60245916 (diff) | |
download | riscv-tests-b75c550fda837f41d606d8f0b6e6794d9ef30c41.zip riscv-tests-b75c550fda837f41d606d8f0b6e6794d9ef30c41.tar.gz riscv-tests-b75c550fda837f41d606d8f0b6e6794d9ef30c41.tar.bz2 |
allow make variables to be overwritten update configure
configure now respects the host flag, rather than hardcoding the risc-v
compiler
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 2b71b50..26df2a9 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -46,14 +46,14 @@ bmarks_host = \ HOST_OPTS = -std=gnu99 -DPREALLOCATE=0 -DHOST_DEBUG=1 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_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 +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_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 |