1
0
mirror of https://github.com/prirun/p50em.git synced 2026-04-20 00:42:53 +00:00

add clean target, remove extra rm steps

This commit is contained in:
Ryan Blair
2020-04-13 18:51:50 +00:00
parent 4b399e22ca
commit 08e1c7015c

View File

@@ -5,19 +5,15 @@ REV=${shell [ -d .hg ] && hg id -n || git rev-parse --short HEAD}
.PHONY: em emwarn debug trace fixed
em: # normal
rm -rf em.o
$(CC) -DREV=\"${REV}\" -DNOTRACE -DFAST -O -Winline em.c -o em
emwarn: # lots of compiler warnings
rm -rf em.o
$(CC) -DREV=\"${REV}\" -DNOTRACE -DFAST -O -Wall -Wextra -pedantic -Wconversion em.c -o em
debug: # gdb
rm -rf em.o
$(CC) -DREV=\"${REV}\" -DNOTRACE -DFAST -g -O0 em.c -o em
trace: # tracing
rm -rf em.o
$(CC) -DREV=\"${REV}\" -DFAST -O em.c -o em
# the fixed clock rate build is useful for making problems reproduceable.
@@ -27,5 +23,7 @@ trace: # tracing
# failure, then enable tracing a little before that with -trace <IC - 100>
fixed: # fixed clock rate
rm -rf em.o
$(CC) -DREV=\"${REV}\" -DFIXEDCLOCK -DNOIDLE -DFAST -O em.c -o em
clean:
rm -f em.o em