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