Réorganisation des fichiers et création du fichier Makefile
This commit is contained in:
@@ -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 ###
|
||||
|
Reference in New Issue
Block a user