spdlog/example/Makefile

33 lines
694 B
Makefile
Raw Normal View History

2014-11-01 09:44:22 +08:00
CXX = g++
2014-12-02 08:24:30 +08:00
CXXFLAGS = -march=native -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include
2014-05-08 07:23:07 +08:00
CXX_RELEASE_FLAGS = -O3 -flto
2014-02-21 03:39:58 +08:00
CXX_DEBUG_FLAGS= -g
all: bench
2014-10-14 10:16:16 +08:00
debug: example-debug bench-debug
example: example.cpp
$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
bench: bench.cpp
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
2014-02-21 03:39:58 +08:00
2014-10-14 10:16:16 +08:00
example-debug: example.cpp
$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
bench-debug: bench.cpp
$(CXX) bench.cpp -o bench-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
2014-02-21 03:39:58 +08:00
clean:
2014-10-31 22:34:48 +08:00
rm -f *.o logs/*.txt example example-debug bench bench-debug
2014-03-22 20:03:09 +08:00
2014-02-21 03:39:58 +08:00
rebuild: clean all
rebuild-debug: clean debug