spdlog/example/makefile.clang

33 lines
753 B
Plaintext
Raw Normal View History

2014-02-21 04:52:22 +08:00
CXX = clang++
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include -B/usr/lib/gold-ld/
2014-10-14 10:16:16 +08:00
CXX_RELEASE_FLAGS = -O3 -flto
2014-02-13 07:15:58 +08:00
CXX_DEBUG_FLAGS= -g
2014-10-14 10:16:16 +08:00
all: example bench
debug: example-debug bench-debug
example: example.cpp
$(CXX) example.cpp -o example-clang $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
bench: bench.cpp
$(CXX) bench.cpp -o bench-clang $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
2014-02-13 07:15:58 +08:00
2014-10-14 10:16:16 +08:00
example-debug: example.cpp
$(CXX) example.cpp -o example-clang-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
bench-debug: bench.cpp
$(CXX) bench.cpp -o bench-clang-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
2014-02-13 07:15:58 +08:00
clean:
2014-10-31 22:34:48 +08:00
rm -f *.o logs/*.txt example-clang example-clang-debug bench-clang bench-clang-debug
2014-10-14 10:16:16 +08:00
2014-02-13 07:15:58 +08:00
rebuild: clean all
2014-02-21 04:52:22 +08:00
rebuild-debug: clean debug
2014-02-13 07:15:58 +08:00