1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# définition des cibles particulières
.PHONY:
clean
#mrproper
# désactivation des règles implicites
.SUFFIXES:
CXX = g++
CXXFLAGS = -Wall -g
# all
all: main.o circuit.o Ville.o
$(CXX) $^ -o Programme $(CXXFLAGS)
main.o: main.cpp circuit.hpp Ville.hpp
$(CXX) -c $< -o $@ $(CXXFLAGS)
# fonctions.o: fonctions.cpp
# $(CXX) -c $< -o $@ $(CXXFLAGS)
circuit.o: circuit.cpp circuit.hpp
$(CXX) -c $< -o $@ $(CXXFLAGS)
#Carte.o: Carte.cpp Ville.hpp
# $(CXX) -c $< -o $@ $(CXXFLAGS)
Ville.o: Ville.cpp Ville.hpp circuit.hpp
$(CXX) -c $< -o $@ $(CXXFLAGS)
# clean
clean:
rm Programme rm *.o
# mrproper
#mrproper: clean
# rm -rf Programme |