Ajoute un flag pour valgrind
This commit is contained in:
parent
895dd9e083
commit
5b3a6e17f6
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,5 +1,6 @@
|
|||
CXX = g++
|
||||
CXXFLAGS = -Wall -Wextra -O3 --std=c++17
|
||||
DEVFLAGS = -g
|
||||
RM = rm
|
||||
|
||||
SOURCES = $(wildcard src/*.cpp)
|
||||
|
@ -8,7 +9,7 @@ OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
|
|||
EXE = ecosysteme
|
||||
|
||||
%.cpp.o: src/%.cpp
|
||||
$(CXX) -c -o $@ $< $(CXXFLAGS)
|
||||
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
|
||||
|
||||
main: $(OBJETS)
|
||||
$(CXX) -o $(EXE) $(OBJETS)
|
||||
|
|
Reference in a new issue