2024-10-23 12:56:25 +02:00
|
|
|
# CHAPITRE 1 : BUT FINAL
|
|
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
but : game
|
2024-10-23 12:56:25 +02:00
|
|
|
|
|
|
|
|
# CHAPITRE 2 : VARIABLES
|
|
|
|
|
|
2024-10-29 13:32:57 +01:00
|
|
|
OFILES = taille.o \
|
2024-11-04 15:17:25 +01:00
|
|
|
menu.o \
|
2024-11-04 19:36:24 +01:00
|
|
|
grille.o \
|
2024-11-07 13:16:37 +01:00
|
|
|
nbjoueur.o \
|
|
|
|
|
nbjoueur2.o \
|
2024-11-08 17:39:29 +01:00
|
|
|
boutonJVJ.o \
|
2024-11-11 14:47:28 +01:00
|
|
|
jeu.o \
|
2024-11-04 15:17:25 +01:00
|
|
|
main.o
|
2024-10-29 13:32:57 +01:00
|
|
|
|
|
|
|
|
|
2024-10-23 12:56:25 +02:00
|
|
|
CC = gcc
|
|
|
|
|
|
2024-11-04 15:17:25 +01:00
|
|
|
CFLAGS = -Wall -ansi -pedantic
|
2024-10-23 12:56:25 +02:00
|
|
|
|
|
|
|
|
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
|
|
|
|
|
|
2024-11-12 23:24:16 +01:00
|
|
|
menu.o : taille.h menu.h nbjoueur.h nbjoueur2.h boutonJVJ.h grille.h
|
2024-11-04 15:17:25 +01:00
|
|
|
|
2024-11-12 13:29:32 +01:00
|
|
|
taille.o : taille.h jeu.h
|
2024-11-04 15:17:25 +01:00
|
|
|
|
2024-11-07 13:16:37 +01:00
|
|
|
nbjoueur.o : nbjoueur.h
|
|
|
|
|
|
2024-11-08 17:39:29 +01:00
|
|
|
boutonJVJ.o : boutonJVJ.h
|
|
|
|
|
|
2024-11-07 13:16:37 +01:00
|
|
|
nbjoueur2.o : nbjoueur2.h
|
|
|
|
|
|
2024-11-12 23:24:16 +01:00
|
|
|
grille.o : grille.h
|
2024-10-23 12:56:25 +02:00
|
|
|
|
2024-11-12 23:57:03 +01:00
|
|
|
jeu.o : jeu.h menu.h
|
2024-11-11 14:47:28 +01:00
|
|
|
|
2024-11-12 23:57:03 +01:00
|
|
|
main.o : jeu.h
|
2024-10-24 12:51:17 +02:00
|
|
|
|
|
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
# CHAPITRE 4 : DEPENDANCES AVEC COMMANDES
|
2024-10-24 12:51:17 +02:00
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
game : $(OFILES)
|
2024-10-28 12:07:31 +01:00
|
|
|
$(CC) $(CFLAGS) -o game $(OFILES) -lgraph
|
2024-10-24 12:51:17 +02:00
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
# CHAPITRE 5 : NETTOYAGE DES FICHIERS GENERES
|
2024-10-23 12:56:25 +02:00
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
clean :
|
|
|
|
|
-rm -f $(OFILES) game
|
2024-10-23 12:56:25 +02:00
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
# CHAPITRE 6 : BUTS FACTICES
|
2024-10-23 12:56:25 +02:00
|
|
|
|
2024-10-24 13:40:06 +02:00
|
|
|
.PHONY : but clean
|
2024-10-23 12:56:25 +02:00
|
|
|
|
|
|
|
|
run :
|
2024-10-24 13:40:06 +02:00
|
|
|
./game
|
|
|
|
|
|