2014-02-20 15:52:22 -05:00
|
|
|
CXX = clang++
|
2014-12-17 00:10:46 -05:00
|
|
|
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include
|
|
|
|
CXX_RELEASE_FLAGS = -O2
|
2014-02-12 18:15:58 -05:00
|
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
|
|
|
|
|
2014-10-13 22:16:16 -04:00
|
|
|
all: example bench
|
|
|
|
debug: example-debug bench-debug
|
|
|
|
|
|
|
|
example: example.cpp
|
|
|
|
$(CXX) example.cpp -o example-clang $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
bench: bench.cpp
|
|
|
|
$(CXX) bench.cpp -o bench-clang $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
2014-02-12 18:15:58 -05:00
|
|
|
|
|
|
|
|
2014-10-13 22:16:16 -04:00
|
|
|
example-debug: example.cpp
|
|
|
|
$(CXX) example.cpp -o example-clang-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
|
|
|
|
bench-debug: bench.cpp
|
|
|
|
$(CXX) bench.cpp -o bench-clang-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
2014-02-12 18:15:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2014-10-31 10:34:48 -04:00
|
|
|
rm -f *.o logs/*.txt example-clang example-clang-debug bench-clang bench-clang-debug
|
2014-10-13 22:16:16 -04:00
|
|
|
|
|
|
|
|
2014-02-12 18:15:58 -05:00
|
|
|
rebuild: clean all
|
2014-02-20 15:52:22 -05:00
|
|
|
rebuild-debug: clean debug
|
|
|
|
|
2014-02-12 18:15:58 -05:00
|
|
|
|