72 lines
1.0 KiB
Makefile
Executable File
72 lines
1.0 KiB
Makefile
Executable File
#Snake : fichier Makefile
|
|
|
|
### BUT FINAL ###
|
|
|
|
but : run
|
|
|
|
### VARIABLES ###
|
|
|
|
OFILES = plateau_init.o \
|
|
ecran_lancement.o \
|
|
fenetre.o \
|
|
augmentation_serpent.o \
|
|
deplacement.o \
|
|
ajout_score.o \
|
|
score_init.o \
|
|
supp_queue.o \
|
|
affichage_timer.o \
|
|
ecran_fin.o \
|
|
main.o
|
|
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -ansi -pedantic -lgraph
|
|
|
|
### REGLES ESSENTIELLES ###
|
|
|
|
plateau_init.o : plateau_init.h
|
|
|
|
fenetre.o : fenetre.h plateau_init.h ecran_lancement.h
|
|
|
|
ecran_lancement.o : ecran_lancement.h
|
|
|
|
augmentation_serpent.o : augmentation_serpent.h
|
|
|
|
deplacement.o : deplacement.h supp_queue.h
|
|
|
|
supp_queue.o : supp_queue.h augmentation_serpent.h ajout_score.h
|
|
|
|
ecran_fin.o : ecran_fin.h
|
|
|
|
ajout_score.o : ajout_score.h
|
|
|
|
score_init.o : score_init.h
|
|
|
|
affichage_timer.o : affichage_timer.h
|
|
|
|
main.o : main.c fenetre.h deplacement.h affichage_timer.h ecran_fin.h
|
|
|
|
|
|
|
|
### COMMANDES ###
|
|
|
|
|
|
run : $(OFILES)
|
|
$(CC) $(CFLAGS) -o lancement $(OFILES)
|
|
./lancement
|
|
|
|
### NETTOYAGE DES FICHIERS GENERES ###
|
|
|
|
clean :
|
|
-rm -f $(OFILES) lancement *~ a.out
|
|
|
|
|
|
|
|
### BUT FACTISES ###
|
|
|
|
.PHONY : but clean
|
|
|
|
|
|
### FIN ###
|