mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
22 lines
491 B
Makefile
22 lines
491 B
Makefile
CXX = g++
|
|
CXX_FLAGS = -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -I../include
|
|
CXX_RELEASE_FLAGS = -O3 -march=native
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
all: example
|
|
debug: example-debug
|
|
|
|
example: example.cpp
|
|
$(CXX) example.cpp -o example $(CXX_FLAGS) $(CXX_RELEASE_FLAGS) $(CXXFLAGS)
|
|
|
|
|
|
example-debug: example.cpp
|
|
$(CXX) example.cpp -o example-debug $(CXX_FLAGS) $(CXX_DEBUG_FLAGS) $(CXXFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o logs/*.txt example example-debug
|
|
|
|
|
|
rebuild: clean all
|
|
rebuild-debug: clean debug
|