mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19:02 +08:00
fixed tests under gcc
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
CXX ?= g++
|
||||
CXXFLAGS = -D_WIN32_WINNT=0x600 -march=native -Wall -Wextra -Wshadow -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include
|
||||
LDPFALGS = -pthread
|
||||
|
||||
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 $@ $<
|
||||
|
||||
all: %.cpp
|
||||
$(CXX) $^ -o tests $(CXXFLAGS) $(CXX_RELEASE_FLAGS)
|
||||
clean:
|
||||
rm -f tests *.o logs/*
|
||||
rm -f tests *.o logs/*
|
||||
|
||||
rebuild: clean all
|
||||
|
||||
|
Reference in New Issue
Block a user