45 lines
526 B
Makefile
Executable File
45 lines
526 B
Makefile
Executable File
#Snake : fichier Makefile
|
|
|
|
### BUT FINAL ###
|
|
|
|
but : run
|
|
|
|
### VARIABLES ###
|
|
|
|
OFILES = plateau_init.o \
|
|
fenetre.o \
|
|
main.o
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -ansi -pedantic -lgraph
|
|
|
|
### REGLES ESSENTIELLES ###
|
|
|
|
plateau_init.o : plateau_init.h
|
|
|
|
fenetre.o : fenetre.h plateau_init.h
|
|
|
|
main.o : main.c fenetre.h
|
|
|
|
### COMMANDES ###
|
|
|
|
|
|
run : $(OFILES)
|
|
$(CC) $(CFLAGS) -o lancement $(OFILES)
|
|
./lancement
|
|
|
|
### NETTOYAGE DES FICHIERS GENERES ###
|
|
|
|
clean :
|
|
-rm -f $(OFILES) lancement *~
|
|
|
|
|
|
|
|
### BUT FACTISES ###
|
|
|
|
.PHONY : but clean
|
|
|
|
|
|
### FIN ###
|