Remove a stale comment
[experiments/inline-assembly.git] / Makefile
index 1e601a4..b350291 100644 (file)
--- 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