This repository has been archived on 2022-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
Ecosysteme/Makefile

21 lines
352 B
Makefile

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