Changement de certain fichier après discussions avec soraya pour une meilleurs compréhention

This commit is contained in:
2024-10-24 13:40:06 +02:00
parent 932a945780
commit ff2c5b00b3
17 changed files with 22 additions and 243 deletions

View File

@@ -1,16 +1,15 @@
# CHAPITRE 1 : BUT FINAL
but : jeu
but : game
# CHAPITRE 2 : VARIABLES
OFILES = main.o \
menu.o \
board.o \
player.o \
graphics.o \
ia.o \
game_logic.o
interface.o \
game.o \
ai.o \
graphics.o \
events.o
CC = gcc
@@ -18,40 +17,32 @@ CFLAGS = -Wall -ansi -pedantic -g -lgraph
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
main.o : interface.h game.h graphics.h ai.h events.h
interface.o : interface.h graphics.h game.h
main.o: main.c menu.h game_logic.h graphics.h board.h player.h
game.o : game.h interface.h graphics.h
menu.o: menu.c menu.h graphics.h
ai.o : ai.h game.h interface.h
board.o: board.c board.h player.h game_logic.h
graphics.o : graphics.h game.h
player.o: player.c player.h board.h
events.o : events.h game.h interface.h
graphics.o: graphics.c graphics.h
# CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
ia.o: ia.c ia.h game_logic.h board.h
game : $(OFILES)
$(CC) $(CFLAGS) -o game $(OFILES)
game_logic.o: game_logic.c game_logic.h board.h player.h
# CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
clean :
-rm -f $(OFILES) game
# CHAPITRE 6 : BUTS FACTICES
#CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
jeu : $(OFILES)
$(CC) $(CFLAGS) -o jeu $(OFILES)
#CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
clear :
-rm -f $(OFILES) jeu
#CHAPITRE 6 : BUTS FACTICES
.PHONY : jeu clear
.PHONY : but clean
run :
./jeu
./game