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.
spdlog/tests/Makefile

22 lines
368 B
Makefile

CXX ?= g++
10 years ago
CXXFLAGS = -Wall -pedantic -std=c++11 -pthread -Wl,--no-as-needed -O2
10 years ago
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/*
10 years ago
rebuild: clean tests