spdlog/example/makefile.clang

24 lines
470 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-03-19 01:23:24 +08:00
CXX_RELEASE_FLAGS = -O3
2014-02-13 07:15:58 +08:00
CXX_DEBUG_FLAGS= -g
2014-02-21 04:52:22 +08:00
OUTBIN = example-clang
2014-02-13 07:15:58 +08:00
2014-02-21 04:52:22 +08:00
all: example.cpp
$(CXX) example.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
2014-02-13 07:15:58 +08:00
2014-02-21 04:52:22 +08:00
debug: example.cpp
$(CXX) example.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAFS)
2014-02-13 07:15:58 +08:00
clean:
2014-02-21 04:52:22 +08:00
rm -f *.txt $(OUTBIN) $(OUTBIN)-debug
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