Changement de certain fichier après discussions avec soraya pour une meilleurs compréhention
This commit is contained in:
53
Makefile
53
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user