24 lines
448 B
Makefile
24 lines
448 B
Makefile
CXX = g++
|
|
CXXFLAGS = -march=native -Wall -Wextra -pedantic -std=c++11 -pthread -I../include -fmax-errors=1
|
|
CXX_RELEASE_FLAGS = -O3 -flto
|
|
|
|
|
|
binaries=bench latency
|
|
|
|
all: $(binaries)
|
|
|
|
bench: bench.cpp
|
|
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
latency: latency.cpp
|
|
$(CXX) latency.cpp -o latency $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f *.o logs/* $(binaries)
|
|
|
|
rebuild: clean all
|