2016-07-08 10:50:13 -04:00
|
|
|
CXX ?= g++
|
2017-11-04 19:17:21 -04:00
|
|
|
CXXFLAGS = -D_WIN32_WINNT=0x600 -march=native -Wall -Wextra -Wshadow -pedantic -std=gnu++0x -pthread -Wl,--no-as-needed -I../include
|
2016-07-08 10:50:13 -04:00
|
|
|
CXX_RELEASE_FLAGS = -O3
|
|
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o logs/*.txt example example-debug bench bench-debug
|
|
|
|
|
|
|
|
|
|
|
|
rebuild: clean all
|
|
|
|
rebuild-debug: clean debug
|
|
|
|
|
|
|
|
|