Last change
on this file since 825 was
756,
checked in by cfuguet, 9 years ago
|
Improving the configuration infrastructure of the coremark application
|
File size:
1.0 KB
|
Rev | Line | |
---|
[753] | 1 | |
---|
| 2 | APP_NAME = coremark |
---|
[756] | 3 | TARGET = appli.elf |
---|
[753] | 4 | |
---|
| 5 | OBJS= 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 | |
---|
| 12 | LIBS= -L../../build/libs -luser |
---|
[756] | 13 | INCLUDES = -I. -I./mach -I../.. -I../../giet_libs -I../../giet_xml |
---|
[753] | 14 | |
---|
[756] | 15 | LIBS := $(LIBS) $(XLIBS) |
---|
| 16 | CFLAGS := $(CFLAGS) $(XCFLAGS) |
---|
[753] | 17 | |
---|
| 18 | COREMARK ?= RUN1 |
---|
[756] | 19 | ifeq ($(COREMARK),RUN1) |
---|
[753] | 20 | $(info Coremark Performance Run) |
---|
[756] | 21 | CFLAGS := $(CFLAGS) -DPERFORMANCE_RUN=1 |
---|
[753] | 22 | endif |
---|
[756] | 23 | ifeq ($(COREMARK),RUN2) |
---|
[753] | 24 | $(info Coremark Validation Run) |
---|
[756] | 25 | CFLAGS := $(CFLAGS) -DVALIDATION_RUN=1 |
---|
[753] | 26 | endif |
---|
[756] | 27 | ifeq ($(COREMARK),RUN3) |
---|
[753] | 28 | $(info Coremark Profile Run) |
---|
[756] | 29 | CFLAGS := $(CFLAGS) -DPROFILE_RUN=1 |
---|
[753] | 30 | endif |
---|
| 31 | |
---|
[756] | 32 | CFLAGS := $(CFLAGS) -DFLAGS_STR="\"$(CFLAGS)\"" |
---|
| 33 | LDFLAGS := -Wl,-T $(APP_NAME).ld $(CFLAGS) |
---|
[753] | 34 | |
---|
| 35 | LIB_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 | |
---|
| 41 | check_coremark: coremark.md5 |
---|
[756] | 42 | md5sum -c $< |
---|
[753] | 43 | |
---|
[756] | 44 | %.o: %.c |
---|
| 45 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
[753] | 46 | |
---|
| 47 | clean: |
---|
[756] | 48 | rm -f $(OBJS) $(TARGET) $(TARGET).txt $(APP_NAME).pyc |
---|
Note: See
TracBrowser
for help on using the repository browser.