spdlog/tests/Makefile
2015-05-15 21:45:10 +03:00

22 lines
368 B
Makefile

CXX ?= g++
CXXFLAGS = -Wall -pedantic -std=c++11 -pthread -Wl,--no-as-needed -O2
LDPFALGS = -pthread -flto
CPP_FILES := $(wildcard *.cpp)
OBJ_FILES := $(addprefix ./,$(notdir $(CPP_FILES:.cpp=.o)))
tests: $(OBJ_FILES)
$(CXX) $(CXXFLAGS) $(LDPFALGS) -o $@ $^
%.o: %.cpp
g++ $(CXXFLAGS) -c -o $@ $<
clean:
rm -f tests *.o logs/*
rebuild: clean tests