mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Add a Makefile to main directory.
It eases the project integration with some IDE applications.
This commit is contained in:
parent
235834b33c
commit
309fca8a72
@ -4,20 +4,20 @@ CXX_RELEASE_FLAGS = -O3 -flto
|
|||||||
CXX_DEBUG_FLAGS= -g
|
CXX_DEBUG_FLAGS= -g
|
||||||
|
|
||||||
|
|
||||||
all: example bench
|
all: test-example test-bench
|
||||||
debug: example-debug bench-debug
|
debug: test-example-debug test-bench-debug
|
||||||
|
|
||||||
example: example.cpp
|
test-example: example.cpp
|
||||||
$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
$(CXX) example.cpp -o example $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
||||||
|
|
||||||
bench: bench.cpp
|
test-bench: bench.cpp
|
||||||
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
$(CXX) bench.cpp -o bench $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
example-debug: example.cpp
|
test-example-debug: example.cpp
|
||||||
$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
$(CXX) example.cpp -o example-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
||||||
|
|
||||||
bench-debug: bench.cpp
|
test-bench-debug: bench.cpp
|
||||||
$(CXX) bench.cpp -o bench-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
$(CXX) bench.cpp -o bench-debug $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user