From 23c7bd6ce1dbc7f64996b5160c158447262ca644 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 21 Sep 2011 17:48:18 -0300 Subject: [PATCH] m1/perf/: "spotless" target that also removes the "main" executable --- m1/perf/Makefile | 8 ++++++-- m1/perf/runs | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/m1/perf/Makefile b/m1/perf/Makefile index 8c85070..8ab0ad1 100644 --- a/m1/perf/Makefile +++ b/m1/perf/Makefile @@ -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) diff --git a/m1/perf/runs b/m1/perf/runs index 9a544dd..ac626e0 100755 --- a/m1/perf/runs +++ b/m1/perf/runs @@ -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"`