25 lines
635 B
Makefile
25 lines
635 B
Makefile
TARGET := dhrystone
|
|
ISA?=imc
|
|
ITERATIONS?=50000 # 20000 for TGC
|
|
|
|
ASM_SRCS :=
|
|
C_SRCS := dhry_stubs.c dhry_1.c dhry_2.c
|
|
HEADERS := dhry.h
|
|
|
|
BOARD?=iss
|
|
LINK_TARGET=link
|
|
RISCV_ARCH:=rv32$(ISA)
|
|
ifneq (,$(findstring e,$(ISA)))
|
|
RISCV_ABI:=ilp32e
|
|
else
|
|
RISCV_ABI:=ilp32
|
|
endif
|
|
# '-lgcc -lm' are needed to add softfloat routines
|
|
CFLAGS := -g -O3 -DITERATIONS=$(ITERATIONS) -DHZ=32768 -DTIME -DNO_INIT -fno-inline -fno-builtin-printf -fno-common -Wno-implicit \
|
|
-funroll-loops -fpeel-loops -fgcse-sm -fgcse-las
|
|
LDFLAGS := -Wl,--wrap=scanf
|
|
TOOL_DIR=$(dir $(compiler))
|
|
|
|
BSP_BASE = ../../bare-metal-bsp
|
|
include $(BSP_BASE)/env/common-gcc.mk
|