X-Git-Url: https://git.ao2.it/experiments/inline-assembly.git/blobdiff_plain/afea09167a73b3ad1a9c41eaf581cb6b88b03044..HEAD:/Makefile diff --git a/Makefile b/Makefile index 1e601a4..b350291 100644 --- a/Makefile +++ b/Makefile @@ -29,11 +29,15 @@ ifneq ($(CC),clang) CFLAGS += -Wunsafe-loop-optimizations endif +EXECUTABLES := inline-asm-sum inline-asm-array-sum -inline-asm-sum: inline-asm-sum.o +all: $(EXECUTABLES) clean: - rm -f *~ *.o inline-asm-sum + rm -f *~ *.o $(EXECUTABLES) -test: inline-asm-sum - valgrind --leak-check=full --show-reachable=yes ./inline-asm-sum +test: $(EXECUTABLES) + @for executable in $?; \ + do \ + valgrind --leak-check=full --show-reachable=yes ./$$executable; \ + done