mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 13:50:38 +02:00
m1/perf/: "spotless" target that also removes the "main" executable
This commit is contained in:
parent
a19a196785
commit
23c7bd6ce1
@ -5,7 +5,8 @@ M1SWLIB_DIR=$(M1)/milkymist/software/libfpvm
|
|||||||
|
|
||||||
#CFLAGS_EXTRA=-DCOMP_DEBUG
|
#CFLAGS_EXTRA=-DCOMP_DEBUG
|
||||||
CFLAGS_EXTRA=
|
CFLAGS_EXTRA=
|
||||||
CFLAGS_COMMON=-Wall -g -pg $(CFLAGS_EXTRA)
|
CFLAGS_PROF=-pg
|
||||||
|
CFLAGS_COMMON=-Wall -g $(CFLAGS_PROF) $(CFLAGS_EXTRA)
|
||||||
CFLAGS=$(CFLAGS_COMMON) \
|
CFLAGS=$(CFLAGS_COMMON) \
|
||||||
-I$(COMPILER_DIR) \
|
-I$(COMPILER_DIR) \
|
||||||
-Ifakes -I$(M1SWINC_DIR)
|
-Ifakes -I$(M1SWINC_DIR)
|
||||||
@ -17,7 +18,7 @@ COMPILER_O = $(COMPILER_DIR)/compiler.o
|
|||||||
LIBFPVM_A = $(M1SWLIB_DIR)/libfpvm.a
|
LIBFPVM_A = $(M1SWLIB_DIR)/libfpvm.a
|
||||||
OBJS = main.o $(COMPILER_O)
|
OBJS = main.o $(COMPILER_O)
|
||||||
|
|
||||||
.PHONY: all clean path
|
.PHONY: all clean spotless path
|
||||||
|
|
||||||
all: main
|
all: main
|
||||||
|
|
||||||
@ -39,5 +40,8 @@ clean:
|
|||||||
rm -f $(M1SWLIB_DIR)/sched.o
|
rm -f $(M1SWLIB_DIR)/sched.o
|
||||||
rm -f $(OBJS)
|
rm -f $(OBJS)
|
||||||
|
|
||||||
|
spotless: clean
|
||||||
|
rm -f main
|
||||||
|
|
||||||
path:
|
path:
|
||||||
@echo $(M1)
|
@echo $(M1)
|
||||||
|
@ -49,7 +49,8 @@ fi
|
|||||||
|
|
||||||
$profile || extra="$extra -DCOMP_DEBUG"
|
$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
|
for n in $M1/flickernoise/patches/*/*.fnp; do
|
||||||
s=`sanitize "$n"`
|
s=`sanitize "$n"`
|
||||||
|
Loading…
Reference in New Issue
Block a user