Ajoute un flag pour valgrind

This commit is contained in:
Mylloon 2022-04-04 00:07:28 +02:00
parent 895dd9e083
commit 5b3a6e17f6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,5 +1,6 @@
CXX = g++ CXX = g++
CXXFLAGS = -Wall -Wextra -O3 --std=c++17 CXXFLAGS = -Wall -Wextra -O3 --std=c++17
DEVFLAGS = -g
RM = rm RM = rm
SOURCES = $(wildcard src/*.cpp) SOURCES = $(wildcard src/*.cpp)
@ -8,7 +9,7 @@ OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
EXE = ecosysteme EXE = ecosysteme
%.cpp.o: src/%.cpp %.cpp.o: src/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
main: $(OBJETS) main: $(OBJETS)
$(CXX) -o $(EXE) $(OBJETS) $(CXX) -o $(EXE) $(OBJETS)