mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
fixed warnings and added makefile for bench
This commit is contained in:
parent
a7f046901d
commit
8139d01142
24
example/makefile.bench
Normal file
24
example/makefile.bench
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
CXX = g++
|
||||||
|
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include
|
||||||
|
CXX_RELEASE_FLAGS = -O3 -flto
|
||||||
|
CXX_DEBUG_FLAGS= -g
|
||||||
|
|
||||||
|
OUTBIN = bench
|
||||||
|
|
||||||
|
all: bench.cpp
|
||||||
|
$(CXX) bench.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
debug: bench.cpp
|
||||||
|
$(CXX) bench.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.txt $(OUTBIN) $(OUTBIN)-debug
|
||||||
|
|
||||||
|
|
||||||
|
rebuild: clean all
|
||||||
|
rebuild-debug: clean debug
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user