CXX = g++
CXXFLAGS = -std=c++14 -Wall -O2
HDRS = row.hpp sort_algorithms.hpp

all: test benchmark

test: test.cpp $(HDRS)
	$(CXX) $(CXXFLAGS) test.cpp -o test

benchmark: benchmark.cpp $(HDRS)
	$(CXX) $(CXXFLAGS) benchmark.cpp -lboost_chrono -lboost_system -o benchmark

run_test: test
	./test

run_benchmark: benchmark
	./benchmark

clean:
	rm -f test benchmark *.o
