You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/bench/Makefile

23 lines
489 B
Makefile

10 years ago
CXX ?= g++
CXXFLAGS = -march=native -Wall -Wextra -pedantic -std=c++11 -pthread -I../include
10 years ago
CXX_RELEASE_FLAGS = -O3 -flto -DNDEBUG
binaries=bench spdlog-null-async
10 years ago
all: $(binaries)
bench: bench.cpp
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
10 years ago
spdlog-null-async: spdlog-null-async.cpp
$(CXX) spdlog-null-async.cpp -o spdlog-null-async $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
10 years ago
.PHONY: clean
clean:
rm -f *.o logs/* $(binaries)
rebuild: clean all