2023-12-22 14:07:57 +01:00
|
|
|
but : snake
|
|
|
|
|
|
|
|
OFILES = main.o \
|
|
|
|
serpent.o \
|
|
|
|
pomme.o \
|
|
|
|
terrain.o\
|
|
|
|
temps_et_score.o
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
CFLAGS = -Wall -ansi -pedantic -g
|
|
|
|
|
|
|
|
serpent.o : serpent.h terrain.h temps_et_score.h
|
|
|
|
|
|
|
|
pomme.o : pomme.h terrain.h serpent.h
|
|
|
|
|
|
|
|
main.o : serpent.h pomme.h temps_et_score.h terrain.h
|
|
|
|
|
2023-12-22 14:40:59 +01:00
|
|
|
temps_et_score.o : temps_et_score.h
|
2023-12-22 14:07:57 +01:00
|
|
|
|
2023-12-22 14:40:59 +01:00
|
|
|
terrain.o : terrain.h
|
2023-12-22 14:07:57 +01:00
|
|
|
|
|
|
|
snake : $(OFILES)
|
|
|
|
$(CC) $(CFLAGS) -o snake $(OFILES) -lgraph
|
|
|
|
|
|
|
|
clean :
|
|
|
|
-rm -f $(OFILES) snake
|
|
|
|
|
|
|
|
.PHONY : but clean
|