Réorganisation des fichiers et création du fichier Makefile

This commit is contained in:
2023-11-30 20:50:39 +01:00
parent 9f64e553ce
commit a7e9587cbc
6 changed files with 15 additions and 191 deletions

View File

@@ -1,10 +1,10 @@
#Snake : fichier Makefile
#BUT FINAL
### BUT FINAL ###
but : snake
#VARIABLES
### VARIABLES ###
OFILES = plateau_init.o \
fenetre.o \
@@ -14,7 +14,7 @@ CC = gcc
CFLAGS = -ansi - pedantic -lgraph
#DEPENDANCES (REGLES IMPLICITES)
### REGLES ESSENTIELLES ###
plateau_init.o : plateau_init.h
@@ -23,4 +23,10 @@ fenetre.o : fenetre.h plateau_init.h
main.o : fenetre.h
#DEPENDANCES AVEC COMMANDES
snake : $(OFILES)
$(CC) $(CFLAGS) -o snake $(OFLIES)
clean : -rm -f $(OFLIES) snake
### FIN ###