CCPP = g++
CFLAGS = -I. -Wall -Wextra -fanalyzer -O3 --std=c++17
CFLAGS2 = #-Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter
SOURCES = $(shell find . -name '*.cpp')
OBJECTS = $(SOURCES:.cpp=.o)
NOM = ecosysteme
%.o: %.cpp
$(CCPP) -c -o $@ $< $(CFLAGS) $(CFLAGS2)
main: $(OBJECTS)
$(CCPP) -o $(NOM) $^ $(CFLAGS) $(CFLAGS2)
all:
main
clean:
rm *.o $(NOM)