Add commodity targets.
- make run - make cachegrind
This commit is contained in:
parent
54e35ff8d0
commit
bb996596e4
8
Makefile
8
Makefile
|
@ -6,4 +6,10 @@ all: rotation.cpp
|
||||||
$(CXX) $(CXXFLAGS) $< -o $(BUILD_DIR)/rotation
|
$(CXX) $(CXXFLAGS) $< -o $(BUILD_DIR)/rotation
|
||||||
|
|
||||||
clean:
|
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
|
||||||
|
|
Loading…
Reference in a new issue