fixed tests under gcc

This commit is contained in:
gabime
2015-05-15 20:48:38 +03:00
parent 2f81e54568
commit b5eaef81d4
2 changed files with 15 additions and 6 deletions

View File

@@ -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