Add commodity targets.

- make run
- make cachegrind
master
Fabien Freling 2014-07-08 00:15:16 +02:00
parent 54e35ff8d0
commit bb996596e4
1 changed files with 7 additions and 1 deletions

View File

@ -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