2014-06-18 08:47:10 +02:00
|
|
|
CXX = clang++
|
2014-07-04 08:23:06 +02:00
|
|
|
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -Werror -g
|
2014-06-18 08:47:10 +02:00
|
|
|
BUILD_DIR=/tmp
|
2014-07-10 19:40:51 +02:00
|
|
|
IMG=img/lena.ppm
|
2014-06-18 08:47:10 +02:00
|
|
|
|
|
|
|
all: rotation.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $< -o $(BUILD_DIR)/rotation
|
|
|
|
|
|
|
|
clean:
|
2014-07-10 19:40:51 +02:00
|
|
|
@rm -f *~ *.o .*.swp *.ppm cachegrind.out.*
|
2014-07-08 00:15:16 +02:00
|
|
|
|
|
|
|
run: all
|
2014-07-10 19:40:51 +02:00
|
|
|
$(BUILD_DIR)/rotation $(IMG)
|
2014-07-08 00:15:16 +02:00
|
|
|
|
2014-07-12 22:37:15 +02:00
|
|
|
debug: all
|
|
|
|
lldb $(BUILD_DIR)/rotation $(IMG)
|
|
|
|
|
2014-07-08 00:15:16 +02:00
|
|
|
cachegrind: all
|
2014-07-10 19:40:51 +02:00
|
|
|
valgrind --tool=cachegrind $(BUILD_DIR)/rotation $(IMG)
|