rotate-me-fast/Makefile

21 lines
432 B
Makefile
Raw Normal View History

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