spdlog/bench/Makefile

32 lines
769 B
Makefile
Raw Normal View History

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