source: soft/giet_vm/applications/coremark/Makefile @ 753

Last change on this file since 753 was 753, checked in by cfuguet, 8 years ago

Introducing the coremark benchmark

File size: 988 bytes
Line 
1
2APP_NAME = coremark
3
4OBJS= core_main.o \
5      core_list_join.o \
6      core_matrix.o \
7      core_state.o \
8      core_util.o \
9      mach/core_portme.o
10
11LIBS= -L../../build/libs -luser
12
13INCLUDES = -I. -I./mach  -I../..  -I../../giet_libs  -I../../giet_xml 
14
15DEFS := -DFLAGS_STR="\"${CFLAGS}\"" -DTOTAL_DATA_SIZE=2000
16
17COREMARK ?= RUN1
18ifeq (${COREMARK},RUN1)
19  $(info Coremark Performance Run)
20  DEFS := ${DEFS} -DPERFORMANCE_RUN=1
21endif
22ifeq (${COREMARK},RUN2)
23  $(info Coremark Validation Run)
24  DEFS := ${DEFS} -DVALIDATION_RUN=1
25endif
26ifeq (${COREMARK},RUN3)
27  $(info Coremark Profile Run)
28  DEFS := ${DEFS} -DPROFILE_RUN=1
29endif
30
31#DEFS := ${DEFS} -DCORE_DEBUG=1
32
33LIB_DEPS = ../../build/libs/libuser.a
34
35appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 
36        $(LD) -o $@ -T $(APP_NAME).ld $(OBJS) $(LIBS)
37        $(DU) -D $@ > $@.txt
38
39check_coremark: coremark.md5
40        md5sum -c $<
41
42%.o: %.c
43        $(CC)  $(INCLUDES) $(CFLAGS) ${DEFS} -c -o  $@ $<
44
45clean:
46        rm -f *.o *.elf appli.elf.txt *.pyc core *~
Note: See TracBrowser for help on using the repository browser.