2023-11-30 14:48:19 +01:00
|
|
|
#Snake : fichier Makefile
|
|
|
|
|
2023-11-30 20:50:39 +01:00
|
|
|
### BUT FINAL ###
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-12-01 19:06:10 +01:00
|
|
|
but : run
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-11-30 20:50:39 +01:00
|
|
|
### VARIABLES ###
|
2023-11-30 14:48:19 +01:00
|
|
|
|
|
|
|
OFILES = plateau_init.o \
|
2023-12-19 11:49:49 +01:00
|
|
|
ecran_lancement.o \
|
2023-12-13 17:00:25 +01:00
|
|
|
fenetre.o \
|
2023-12-18 23:40:33 +01:00
|
|
|
augmentation_serpent.o \
|
2023-12-13 17:00:25 +01:00
|
|
|
deplacement.o \
|
|
|
|
ajout_score.o \
|
|
|
|
score_init.o \
|
2023-12-14 01:07:57 +01:00
|
|
|
supp_queue.o \
|
2023-12-24 20:21:24 +01:00
|
|
|
affichage_timer.o \
|
|
|
|
ecran_fin.o \
|
2023-12-13 17:00:25 +01:00
|
|
|
main.o
|
2023-12-14 01:07:57 +01:00
|
|
|
|
2023-11-30 14:48:19 +01:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
2023-12-10 00:40:15 +01:00
|
|
|
CFLAGS = -ansi -pedantic -lgraph
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-11-30 20:50:39 +01:00
|
|
|
### REGLES ESSENTIELLES ###
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-12-12 17:39:55 +01:00
|
|
|
plateau_init.o : plateau_init.h
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-12-19 11:49:49 +01:00
|
|
|
fenetre.o : fenetre.h plateau_init.h ecran_lancement.h
|
|
|
|
|
|
|
|
ecran_lancement.o : ecran_lancement.h
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-12-18 23:40:33 +01:00
|
|
|
augmentation_serpent.o : augmentation_serpent.h
|
2023-12-12 17:39:55 +01:00
|
|
|
|
2023-12-18 23:40:33 +01:00
|
|
|
deplacement.o : deplacement.h supp_queue.h
|
|
|
|
|
2023-12-24 20:21:24 +01:00
|
|
|
supp_queue.o : supp_queue.h augmentation_serpent.h ajout_score.h
|
|
|
|
|
|
|
|
ecran_fin.o : ecran_fin.h
|
2023-12-14 01:07:57 +01:00
|
|
|
|
2023-12-13 17:00:25 +01:00
|
|
|
ajout_score.o : ajout_score.h
|
|
|
|
|
|
|
|
score_init.o : score_init.h
|
|
|
|
|
2023-12-24 20:21:24 +01:00
|
|
|
affichage_timer.o : affichage_timer.h
|
|
|
|
|
|
|
|
main.o : main.c fenetre.h deplacement.h affichage_timer.h ecran_fin.h
|
2023-12-10 22:51:36 +01:00
|
|
|
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-12-13 17:00:25 +01:00
|
|
|
|
2023-12-01 19:06:10 +01:00
|
|
|
### COMMANDES ###
|
2023-11-30 14:48:19 +01:00
|
|
|
|
2023-11-30 20:50:39 +01:00
|
|
|
|
2023-12-01 19:06:10 +01:00
|
|
|
run : $(OFILES)
|
|
|
|
$(CC) $(CFLAGS) -o lancement $(OFILES)
|
|
|
|
./lancement
|
|
|
|
|
|
|
|
### NETTOYAGE DES FICHIERS GENERES ###
|
|
|
|
|
|
|
|
clean :
|
2023-12-10 00:36:22 +01:00
|
|
|
-rm -f $(OFILES) lancement *~ a.out
|
2023-12-01 19:06:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### BUT FACTISES ###
|
|
|
|
|
|
|
|
.PHONY : but clean
|
2023-11-30 20:50:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
### FIN ###
|