j'ai oublier de git add mais maintenant c'est fait

This commit is contained in:
2023-12-22 14:08:18 +01:00
parent 0c73a06f68
commit ed6ab539bf
26 changed files with 601 additions and 260 deletions

32
Makefile Normal file
View File

@@ -0,0 +1,32 @@
but : snake
OFILES = main.o \
serpent.o \
pastille.o \
menu_terrain.o\
temps_score.o
CC = gcc
CFLAGS = -Wall -ansi -pedantic -g
serpent.o : serpent.h menu_terrain.h temps_score.h
pastille.o : pastille.h menu_terrain.h serpent.h
main.o : serpent.h pastille.h temps_score.h menu_terrain.h
temps_score.o : temps_score.h
menu_terrain.o : menu_terrain.h
snake : $(OFILES)
$(CC) $(CFLAGS) -o snake $(OFILES) -lgraph
run : snake
./snake
clean :
-rm -f $(OFILES) snake
.PHONY : but clean