summaryrefslogtreecommitdiff
path: root/software/coremark/Makefile
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-01-03 18:54:30 -0800
committerAndrew Waterman <andrew@sifive.com>2017-01-03 18:54:30 -0800
commit15dc05331b9821cb449e7bf433a24ddfdfa3c295 (patch)
treeb0f18513126595b9a6e1f512e7b3ba9435694b63 /software/coremark/Makefile
parent628d2b3559be5e9e651801d289a075d68df820e8 (diff)
Add CoreMark build skeleton
Diffstat (limited to 'software/coremark/Makefile')
-rw-r--r--software/coremark/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/software/coremark/Makefile b/software/coremark/Makefile
new file mode 100644
index 0000000..b57151e
--- /dev/null
+++ b/software/coremark/Makefile
@@ -0,0 +1,20 @@
+TARGET := coremark
+
+C_SRCS := \
+ core_list_join.c \
+ core_main.c \
+ core_matrix.c \
+ core_state.c \
+ core_util.c \
+ core_portme.c \
+
+HEADERS := \
+ coremark.h \
+ core_portme.h \
+
+CFLAGS := -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4
+CFLAGS += -DFLAGS_STR=\""$(CFLAGS)"\"
+CFLAGS += -DITERATIONS=10000 -DPERFORMANCE_RUN=1
+
+BSP_BASE = ../../bsp
+include $(BSP_BASE)/env/common.mk