fix: allow changing iterations from make
This commit is contained in:
parent
addb491e30
commit
1d5fb08be1
|
@ -1,3 +1,7 @@
|
|||
NAME = coremark
|
||||
SRCS = $(shell find -L ./src/ -name "*.c")
|
||||
ifdef ITERATIONS
|
||||
CFLAGS += -DITERATIONS=$(ITERATIONS)
|
||||
endif
|
||||
|
||||
include $(AM_HOME)/Makefile.app
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
|
||||
#include <klib.h>
|
||||
|
||||
#ifndef ITERATIONS
|
||||
#define ITERATIONS 10
|
||||
#endif
|
||||
#define MEM_METHOD MEM_STATIC
|
||||
|
||||
/************************/
|
||||
|
|
Loading…
Reference in New Issue