mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
24 lines
470 B
Plaintext
24 lines
470 B
Plaintext
CXX = clang++
|
|
CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I../include -B/usr/lib/gold-ld/
|
|
CXX_RELEASE_FLAGS = -O3
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
OUTBIN = example-clang
|
|
|
|
all: example.cpp
|
|
$(CXX) example.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
debug: example.cpp
|
|
$(CXX) example.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAFS)
|
|
|
|
|
|
|
|
clean:
|
|
rm -f *.txt $(OUTBIN) $(OUTBIN)-debug
|
|
|
|
rebuild: clean all
|
|
rebuild-debug: clean debug
|
|
|
|
|