This commit is contained in:
2023-12-22 14:07:57 +01:00
parent dc3a592f57
commit a549f7df3a
32 changed files with 605 additions and 234 deletions

29
Makefile~ Normal file
View File

@@ -0,0 +1,29 @@
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
clean :
-rm -f $(OFILES) snake
.PHONY : but clean