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