mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
29 lines
545 B
Makefile
29 lines
545 B
Makefile
|
CXX ?= g++
|
||
|
CXXFLAGS = -march=native -Wall -std=c++11 -pthread
|
||
|
CXX_RELEASE_FLAGS = -Ofast -DNDEBUG
|
||
|
|
||
|
|
||
|
binaries=spdlog-latency g3log-latency
|
||
|
|
||
|
all: $(binaries)
|
||
|
|
||
|
spdlog-latency: spdlog-latency.cpp
|
||
|
$(CXX) spdlog-latency.cpp -o spdlog-latency $(CXXFLAGS) $(CXX_RELEASE_FLAGS) -I../../include
|
||
|
|
||
|
|
||
|
|
||
|
g3log-latency: g3log-latency.cpp
|
||
|
$(CXX) g3log-latency.cpp -o g3log-latency $(CXXFLAGS) $(CXX_RELEASE_FLAGS) -I../../../g3log/src -L. -lg3logger
|
||
|
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o *.log $(binaries)
|
||
|
|
||
|
|
||
|
rebuild: clean all
|
||
|
|
||
|
|
||
|
|