2014-11-01 03:44:22 +02:00
|
|
|
CXX = g++
|
2014-11-29 19:58:32 +02:00
|
|
|
CXXFLAGS = -march=native -Wall -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include
|
2014-05-08 02:23:07 +03:00
|
|
|
CXX_RELEASE_FLAGS = -O3 -flto
|
2014-02-20 21:39:58 +02:00
|
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
|
|
|
|
|
2014-10-14 05:16:16 +03:00
|
|
|
all: example bench
|
|
|
|
debug: example-debug bench-debug
|
|
|
|
|
|
|
|
example: example.cpp
|
|
|
|
$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
|
|
bench: bench.cpp
|
|
|
|
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
2014-02-20 21:39:58 +02:00
|
|
|
|
|
|
|
|
2014-10-14 05:16:16 +03:00
|
|
|
example-debug: example.cpp
|
|
|
|
$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
|
|
|
|
bench-debug: bench.cpp
|
|
|
|
$(CXX) bench.cpp -o bench-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
2014-02-20 21:39:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2014-10-31 16:34:48 +02:00
|
|
|
rm -f *.o logs/*.txt example example-debug bench bench-debug
|
2014-03-22 14:03:09 +02:00
|
|
|
|
|
|
|
|
2014-02-20 21:39:58 +02:00
|
|
|
rebuild: clean all
|
|
|
|
rebuild-debug: clean debug
|
|
|
|
|
|
|
|
|