mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
28 lines
591 B
Makefile
28 lines
591 B
Makefile
CXX ?= g++
|
|
CXXFLAGS = -march=native -Wall -Wextra -pedantic -std=c++11 -pthread -I../include -fmax-errors=1
|
|
CXX_RELEASE_FLAGS = -Ofast -flto -Wl,--no-as-needed
|
|
|
|
|
|
binaries=bench latency async_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)
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f *.o logs/* $(binaries)
|
|
|
|
rebuild: clean all
|