mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
23 lines
436 B
Makefile
23 lines
436 B
Makefile
CXX ?= g++
|
|
CXXFLAGS = -Wall -pedantic -std=c++11 -pthread -Wconversion -O3 -I../include -fmax-errors=1
|
|
LDPFALGS = -pthread
|
|
|
|
CPP_FILES := $(wildcard *.cpp)
|
|
OBJ_FILES := $(addprefix ./,$(notdir $(CPP_FILES:.cpp=.o)))
|
|
|
|
|
|
tests: $(OBJ_FILES)
|
|
$(CXX) $(CXXFLAGS) $(LDPFALGS) -o $@ $^
|
|
mkdir -p logs
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -f tests *.o logs/*.txt
|
|
|
|
rebuild: clean tests
|
|
|
|
|
|
|