From 5af7f227642f2e8f26211a4d8ca05ec1c420258e Mon Sep 17 00:00:00 2001
From: ABBAS IBRAHIM p2311569 <ibrahim.abbas@etu.univ-lyon1.fr>
Date: Thu, 20 Feb 2025 12:47:40 +0000
Subject: [PATCH] Edit Makefile

---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index cc068f4..8233edc 100644
--- a/Makefile
+++ b/Makefile
@@ -3,22 +3,22 @@ all: bin/test bin/exemple doc/doxy bin/affichage
 bin/affichage:obj/affichage.o obj/Image.o obj/ImageViewer.o obj/Pixel.o
 	g++ -g obj/affichage.o obj/Pixel.o obj/Image.o obj/ImageViewer.o  -o bin/affichage -lSDL2 -lSDL2_ttf -lSDL2_image
 
-obj/affichage.o:src/Image.h src/mainAffichage.cpp  src/ImageViewer.h
+obj/affichage.o:src/Image.h src/mainAffichage.cpp  src/ImageViewer.h src/Pixel.h
 	g++ -Wall -I/usr/include/SDL2 -c src/mainAffichage.cpp -o obj/affichage.o
 
-obj/ImageViewer.o: src/Image.h src/ImageViewer.cpp src/ImageViewer.h
+obj/ImageViewer.o: src/Image.h src/ImageViewer.cpp src/ImageViewer.h src/Pixel.h
 	g++ -Wall -I/usr/include/SDL2 -c src/ImageViewer.cpp -o obj/ImageViewer.o
 
 bin/test: obj/mainTest.o obj/Pixel.o obj/Image.o
 	g++ -g obj/mainTest.o obj/Pixel.o obj/Image.o -o bin/test
 
-obj/mainTest.o: src/mainTest.cpp src/Image.h 
+obj/mainTest.o: src/mainTest.cpp src/Image.h src/Pixel.h
 	g++ -g -Wall -c src/mainTest.cpp -o obj/mainTest.o
 
 obj/Pixel.o: src/Pixel.cpp src/Pixel.h
 	g++ -g -Wall -c src/Pixel.cpp -o obj/Pixel.o
 	
-obj/Image.o: src/Image.cpp src/Image.h
+obj/Image.o: src/Image.cpp src/Image.h src/Pixel.h
 	g++ -g -Wall -c src/Image.cpp -o obj/Image.o
 	
 bin/exemple: obj/exemple.o obj/Pixel.o obj/Image.o
-- 
GitLab