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