2018-08-04 17:14:01 -04:00
|
|
|
CXX ?= g++
|
2018-11-12 04:07:51 -05:00
|
|
|
CXXFLAGS = -march=native -Wall -Wextra -pedantic -Wconversion -std=c++11 -pthread -I../include -fmax-errors=1
|
2018-11-10 17:52:21 -05:00
|
|
|
CXX_RELEASE_FLAGS = -O3 -flto -Wl,--no-as-needed
|
2016-04-02 19:14:54 -04:00
|
|
|
|
|
|
|
|
2018-11-12 09:13:52 -05:00
|
|
|
binaries=bench async_bench latency formatter-bench
|
2016-04-02 19:14:54 -04:00
|
|
|
|
|
|
|
all: $(binaries)
|
|
|
|
|
2018-06-01 10:50:59 -04:00
|
|
|
bench: bench.cpp
|
|
|
|
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
2018-11-12 04:07:51 -05:00
|
|
|
|
2018-08-04 17:14:01 -04:00
|
|
|
|
|
|
|
async_bench: async_bench.cpp
|
|
|
|
$(CXX) async_bench.cpp -o async_bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
2018-11-12 04:07:51 -05:00
|
|
|
|
|
|
|
|
2018-07-09 14:06:15 -04:00
|
|
|
latency: latency.cpp
|
2018-10-24 15:31:50 -04:00
|
|
|
$(CXX) latency.cpp -o latency $(CXXFLAGS) $(CXX_RELEASE_FLAGS) -lbenchmark
|
2018-11-10 17:52:21 -05:00
|
|
|
|
|
|
|
|
2018-11-12 09:13:52 -05:00
|
|
|
formatter-bench: formatter-bench.cpp
|
|
|
|
$(CXX) formatter-bench.cpp -o formatter-bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS) -lbenchmark
|
2018-11-12 04:07:51 -05:00
|
|
|
|
2018-03-21 09:46:52 -04:00
|
|
|
|
2016-04-02 19:14:54 -04:00
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2018-10-29 18:11:29 -04:00
|
|
|
rm -f *.o logs/* latecy_logs $(binaries)
|
2016-04-02 19:14:54 -04:00
|
|
|
|
|
|
|
rebuild: clean all
|