mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
clang
This commit is contained in:
@@ -3,19 +3,19 @@ CXXFLAGS = -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -I
|
||||
CXX_RELEASE_FLAGS = -O3 -flto
|
||||
CXX_DEBUG_FLAGS= -g
|
||||
|
||||
OUTBIN = testme
|
||||
OUTBIN = example
|
||||
|
||||
all: test.cpp
|
||||
$(CXX) test.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
||||
all: example.cpp
|
||||
$(CXX) example.cpp -o $(OUTBIN) $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
||||
|
||||
|
||||
debug: test.cpp
|
||||
$(CXX) test.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAFS)
|
||||
debug: example.cpp
|
||||
$(CXX) example.cpp -o $(OUTBIN)-debug $(CXXFLAGS) $(CXX_DEBUG_FLAFS)
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.text $(OUTBIN) $(OUTBIN)-debug
|
||||
rm -f *.txt $(OUTBIN) $(OUTBIN)-debug
|
||||
|
||||
rebuild: clean all
|
||||
rebuild-debug: clean debug
|
||||
|
Reference in New Issue
Block a user