fix: allow changing iterations from make

This commit is contained in:
xuzefan 2023-10-27 10:07:32 +08:00
parent addb491e30
commit 1d5fb08be1
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
NAME = coremark
SRCS = $(shell find -L ./src/ -name "*.c")
ifdef ITERATIONS
CFLAGS += -DITERATIONS=$(ITERATIONS)
endif
include $(AM_HOME)/Makefile.app

View File

@ -8,7 +8,9 @@
#include <klib.h>
#ifndef ITERATIONS
#define ITERATIONS 10
#endif
#define MEM_METHOD MEM_STATIC
/************************/