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

Last change on this file since 784 was 756, checked in by cfuguet, 9 years ago

Improving the configuration infrastructure of the coremark application

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