1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-19 13:12:29 +02:00

m1/perf/: "spotless" target that also removes the "main" executable

This commit is contained in:
Werner Almesberger 2011-09-21 17:48:18 -03:00
parent a19a196785
commit 23c7bd6ce1
2 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,8 @@ M1SWLIB_DIR=$(M1)/milkymist/software/libfpvm
#CFLAGS_EXTRA=-DCOMP_DEBUG
CFLAGS_EXTRA=
CFLAGS_COMMON=-Wall -g -pg $(CFLAGS_EXTRA)
CFLAGS_PROF=-pg
CFLAGS_COMMON=-Wall -g $(CFLAGS_PROF) $(CFLAGS_EXTRA)
CFLAGS=$(CFLAGS_COMMON) \
-I$(COMPILER_DIR) \
-Ifakes -I$(M1SWINC_DIR)
@ -17,7 +18,7 @@ COMPILER_O = $(COMPILER_DIR)/compiler.o
LIBFPVM_A = $(M1SWLIB_DIR)/libfpvm.a
OBJS = main.o $(COMPILER_O)
.PHONY: all clean path
.PHONY: all clean spotless path
all: main
@ -39,5 +40,8 @@ clean:
rm -f $(M1SWLIB_DIR)/sched.o
rm -f $(OBJS)
spotless: clean
rm -f main
path:
@echo $(M1)

View File

@ -49,7 +49,8 @@ fi
$profile || extra="$extra -DCOMP_DEBUG"
make CFLAGS_EXTRA="$extra" $sched clean all
make spotless
make CFLAGS_EXTRA="$extra" $sched all
for n in $M1/flickernoise/patches/*/*.fnp; do
s=`sanitize "$n"`