Date:2011-09-17 08:24:08 (7 years 11 months ago)
Author:Werner Almesberger
Commit:001ca49cc60a1315ac7bff8bf488fa188f3a10af
Message:m1/perf/: build the patch compiler with gcc and with profiling

Files: m1/perf/Makefile (1 diff)
m1/perf/fakes/bsp (1 diff)
m1/perf/fakes/milkymist_pfpu.h (1 diff)
m1/perf/fakes/rtems.h (0 diffs)

Change Details

m1/perf/Makefile
1M1=/home/qi/m1
2COMPILER_DIR=$(M1)/flickernoise/src
3M1SWINC_DIR=$(M1)/milkymist/software/include
4M1SWLIB_DIR=$(M1)/milkymist/software/libfpvm
5
6CFLAGS_COMMON=-Wall -g -pg # -DCOMP_DEBUG
7CFLAGS=$(CFLAGS_COMMON) \
8       -I$(COMPILER_DIR) \
9       -Ifakes -I$(M1SWINC_DIR)
10LDFLAGS=-pg
11LDLIBS=-L$(M1SWLIB_DIR) -lfpvm
12
13
14COMPILER_O = $(COMPILER_DIR)/compiler.o
15LIBFPVM_A = $(M1SWLIB_DIR)/libfpvm.a
16OBJS = main.o $(COMPILER_O)
17
18all: main
19
20main: $(OBJS) $(LIBFPVM_A)
21
22$(COMPILER_O):
23        $(MAKE) -C $(COMPILER_DIR) CC=gcc \
24            CFLAGS="$(CFLAGS_COMMON) -I$(M1SWINC_DIR) \
25            -I$(shell pwd)/fakes" \
26            compiler.o
27
28$(LIBFPVM_A):
29        $(MAKE) -C $(M1SWLIB_DIR) CC=gcc LD=gcc AR=ar RANLIB=ranlib \
30            CFLAGS='$(CFLAGS_COMMON) $$(INCLUDES)'
31
32clean:
33        $(MAKE) -C $(M1SWLIB_DIR) clean
34        $(MAKE) -C $(COMPILER_DIR) clean
35        rm -f $(OBJS)
m1/perf/fakes/bsp
1.
m1/perf/fakes/milkymist_pfpu.h
1#include "hw/pfpu.h"
m1/perf/fakes/rtems.h

Archive Download the corresponding diff file

Branches:
master



interactive