mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
32 lines
758 B
Makefile
32 lines
758 B
Makefile
CXX ?= g++
|
|
CXXFLAGS = -march=native -Wall -Wextra -pedantic -Wconversion -std=c++11 -pthread -I../include -fmax-errors=1
|
|
CXX_RELEASE_FLAGS = -O3 -flto -Wl,--no-as-needed
|
|
|
|
|
|
binaries=bench.cpp async_bench latency padder_bench
|
|
|
|
all: $(binaries)
|
|
|
|
bench: bench.cpp
|
|
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
async_bench: async_bench.cpp
|
|
$(CXX) async_bench.cpp -o async_bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
latency: latency.cpp
|
|
$(CXX) latency.cpp -o latency $(CXXFLAGS) $(CXX_RELEASE_FLAGS) -lbenchmark
|
|
|
|
|
|
padder_bench: padder_bench.cpp
|
|
$(CXX) padder_bench.cpp -o padder_bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS) -lbenchmark
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f *.o logs/* latecy_logs $(binaries)
|
|
|
|
rebuild: clean all
|