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
