mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
CXX ?= g++
|
|
CXXFLAGS = -D_WIN32_WINNT=0x600 -march=native -Wall -Wextra -Wshadow -pedantic -std=gnu++0x -pthread -Wl,--no-as-needed -I../include
|
|
CXX_RELEASE_FLAGS = -O3
|
|
CXX_DEBUG_FLAGS= -g
|
|
|
|
BIN_PATH = bin/
|
|
DEBUG_PATH = $(BIN_PATH)debug/
|
|
|
|
|
|
all: basic_log.exe daily_log.exe rotating_log.exe console_log.exe bench.exe
|
|
debug: console_log-debug.exe basic_log-debug.exe daily_log-debug.exe rotating_log-debug.exe bench-debug.exe
|
|
|
|
basic_log.exe: basic_log.cpp
|
|
$(CXX) $^ -o $(BIN_PATH)$@ $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
daily_log.exe: daily_log.cpp
|
|
$(CXX) $^ -o $(BIN_PATH)$@ $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
rotating_log.exe: rotating_log.cpp
|
|
$(CXX) $^ -o $(BIN_PATH)$@ $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
console_log.exe: console_log.cpp
|
|
$(CXX) $^ -o $(BIN_PATH)$@ $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
bench.exe: bench.cpp
|
|
$(CXX) $^ -o $(BIN_PATH)$@ $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
|
|
|
|
|
basic_log-debug.exe: basic_log.cpp
|
|
$(CXX) $^ -o $(DEBUG_PATH)$@ $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
daily_log-debug.exe: daily_log.cpp
|
|
$(CXX) $^ -o $(DEBUG_PATH)$@ $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
rotating_log-debug.exe: rotating_log.cpp
|
|
$(CXX) $^ -o $(DEBUG_PATH)$@ $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
console_log-debug.exe: console_log.cpp
|
|
$(CXX) $^ -o $(DEBUG_PATH)$@ $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
bench-debug.exe: bench.cpp
|
|
$(CXX) $^ -o $(DEBUG_PATH)$@ $(CXXFLAGS) $(CXX_DEBUG_FLAGS)
|
|
|
|
clean:
|
|
rm -f *.o $(BIN_PATH)logs/* $(DEBUG_PATH)logs/* $(BIN_PATH)*.exe $(DEBUG_PATH)*-debug.exe
|
|
|
|
|
|
rebuild: clean all
|
|
rebuild-debug: clean debug
|
|
|
|
|