From bb996596e40a2a752a1f16bbd396d2857c30910d Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Tue, 8 Jul 2014 00:15:16 +0200 Subject: [PATCH] Add commodity targets. - make run - make cachegrind --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3206af0..46fdf7e 100644 --- a/Makefile +++ b/Makefile @@ -6,4 +6,10 @@ all: rotation.cpp $(CXX) $(CXXFLAGS) $< -o $(BUILD_DIR)/rotation clean: - @rm -f *~ *.o .*.swp + @rm -f *~ *.o .*.swp *.ppm + +run: all + $(BUILD_DIR)/rotation img/lena.ppm + +cachegrind: all + valgrind --tool=cachegrind $(BUILD_DIR)/rotation img/lena.ppm