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

27 lines
462 B
Makefile
Raw Normal View History

CXX = g++
CXXFLAGS = --std=c++17
RM = rm
SOURCES = $(wildcard src/*.cpp)
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
EXE = ecosysteme
%.cpp.o: src/%.cpp
2022-04-04 00:07:28 +02:00
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
main: CXXFLAGS += -O3
main: compilation
debug: CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g
debug: compilation
compilation: $(OBJETS)
$(CXX) -o $(EXE) $(OBJETS)
all:
main
clean:
$(RM) $(OBJETS) $(EXE)