TP_Cpp/TP2/Makefile

53 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2020-05-11 20:30:41 +02:00
CXX = g++
CXXFLAGS = -W -Wall -pedantic -g
all:exercice1.o exercice2.o exercice3.o exercice4.o exercice5.o exercice6.o
$(CXX) $(CXXFLAGS) -o exercice1 exercice1.o exercice2 exercice2.o exercice3 exercice3.o exercice4 exercice4.o exercice5 exercice5.o exercice6 exercice6.o
exercice1:exercice1.o
$(CXX) $(CXXFLAGS) -o exercice1 exercice1.o
exercice2:exercice2.o
$(CXX) $(CXXFLAGS) -o exercice2 exercice2.o
exercice3:exercice3.o
$(CXX) $(CXXFLAGS) -o exercice3 exercice3.o
exercice4:exercice4.o
$(CXX) $(CXXFLAGS) -o exercice4 exercice4.o
exercice5:exercice5.o
$(CXX) $(CXXFLAGS) -o exercice5 exercice5.o
exercice6:exercice6.o
$(CXX) $(CXXFLAGS) -o exercice6 exercice6.o
exercice1.o: exercice1.cpp
$(CXX) $(CXXFLAGS) -c exercice1.cpp
exercice2.o: exercice2.cpp
$(CXX) $(CXXFLAGS) -c exercice2.cpp
exercice3.o: exercice3.cpp
$(CXX) $(CXXFLAGS) -c exercice3.cpp
exercice4.o: exercice4.cpp
$(CXX) $(CXXFLAGS) -c exercice4.cpp
exercice5.o: exercice5.cpp
$(CXX) $(CXXFLAGS) -c exercice5.cpp
exercice6.o: exercice6.cpp
$(CXX) $(CXXFLAGS) -c exercice6.cpp
clean:
-rm exercice1.o exercice2.o exercice3.o exercice4.o exercice5.o exercice6.o