Files
SAE11_2023/snake/Makefile

72 lines
1.0 KiB
Makefile
Raw Normal View History

#Snake : fichier Makefile
### BUT FINAL ###
but : run
### VARIABLES ###
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 \
augmentation_serpent.o \
2023-12-13 17:00:25 +01:00
deplacement.o \
ajout_score.o \
score_init.o \
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
CC = gcc
2023-12-10 00:40:15 +01:00
CFLAGS = -ansi -pedantic -lgraph
### REGLES ESSENTIELLES ###
2023-12-12 17:39:55 +01:00
plateau_init.o : plateau_init.h
2023-12-19 11:49:49 +01:00
fenetre.o : fenetre.h plateau_init.h ecran_lancement.h
ecran_lancement.o : ecran_lancement.h
augmentation_serpent.o : augmentation_serpent.h
2023-12-12 17:39:55 +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-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-12-13 17:00:25 +01:00
### COMMANDES ###
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
### BUT FACTISES ###
.PHONY : but clean
### FIN ###