spdlog/example/Makefile

33 lines
742 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: test-example test-bench
debug: test-example-debug test-bench-debug
2014-10-14 10:16:16 +08:00
test-example: example.cpp
2014-10-14 10:16:16 +08:00
$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
test-bench: bench.cpp
2014-10-14 10:16:16 +08:00
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
2014-02-21 03:39:58 +08:00
test-example-debug: example.cpp
2014-10-14 10:16:16 +08:00
$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
test-bench-debug: bench.cpp
2014-10-14 10:16:16 +08:00
$(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