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

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

Improving the configuration infrastructure of the coremark application

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