Changeset 756 for soft/giet_vm/applications/coremark/Makefile
- Timestamp:
- Jan 14, 2016, 10:13:09 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/coremark/Makefile
r753 r756 1 1 2 2 APP_NAME = coremark 3 TARGET = appli.elf 3 4 4 5 OBJS= core_main.o \ … … 10 11 11 12 LIBS= -L../../build/libs -luser 13 INCLUDES = -I. -I./mach -I../.. -I../../giet_libs -I../../giet_xml 12 14 13 INCLUDES = -I. -I./mach -I../.. -I../../giet_libs -I../../giet_xml 14 15 DEFS := -DFLAGS_STR="\"${CFLAGS}\"" -DTOTAL_DATA_SIZE=2000 15 LIBS := $(LIBS) $(XLIBS) 16 CFLAGS := $(CFLAGS) $(XCFLAGS) 16 17 17 18 COREMARK ?= RUN1 18 ifeq ($ {COREMARK},RUN1)19 ifeq ($(COREMARK),RUN1) 19 20 $(info Coremark Performance Run) 20 DEFS := ${DEFS}-DPERFORMANCE_RUN=121 CFLAGS := $(CFLAGS) -DPERFORMANCE_RUN=1 21 22 endif 22 ifeq ($ {COREMARK},RUN2)23 ifeq ($(COREMARK),RUN2) 23 24 $(info Coremark Validation Run) 24 DEFS := ${DEFS}-DVALIDATION_RUN=125 CFLAGS := $(CFLAGS) -DVALIDATION_RUN=1 25 26 endif 26 ifeq ($ {COREMARK},RUN3)27 ifeq ($(COREMARK),RUN3) 27 28 $(info Coremark Profile Run) 28 DEFS := ${DEFS}-DPROFILE_RUN=129 CFLAGS := $(CFLAGS) -DPROFILE_RUN=1 29 30 endif 30 31 31 #DEFS := ${DEFS} -DCORE_DEBUG=1 32 CFLAGS := $(CFLAGS) -DFLAGS_STR="\"$(CFLAGS)\"" 33 LDFLAGS := -Wl,-T $(APP_NAME).ld $(CFLAGS) 32 34 33 35 LIB_DEPS = ../../build/libs/libuser.a 34 36 35 appli.elf: $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 36 $( LD) -o $@ -T $(APP_NAME).ld$(OBJS) $(LIBS)37 $(TARGET): $(OBJS) $(APP_NAME).ld $(LIBS_DEPS) 38 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) 37 39 $(DU) -D $@ > $@.txt 38 40 39 41 check_coremark: coremark.md5 40 md5sum -c $< 42 md5sum -c $< 41 43 42 %.o: %.c 43 $(CC) $(INCLUDES) $(CFLAGS) ${DEFS}-c -o $@ $<44 %.o: %.c 45 $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< 44 46 45 47 clean: 46 rm -f *.o *.elf appli.elf.txt *.pyc core *~48 rm -f $(OBJS) $(TARGET) $(TARGET).txt $(APP_NAME).pyc
Note: See TracChangeset
for help on using the changeset viewer.