2023-12-07 14:02:18 +01:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-ansi -pedantic -lgraph
|
2023-12-04 17:01:52 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
all:serpent
|
2023-12-04 17:01:52 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
serpent:main.o scene.o serpent.o timer.o score.o
|
|
|
|
$(CC) $(CFLAGS) -o serpent main.o scene.o serpent.o timer.o score.o
|
2023-12-04 17:01:52 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
main.o:main.c fonction.h
|
|
|
|
$(CC) -c main.c $(CFLAGS)
|
2023-12-04 17:01:52 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
scene.o:scene.c fonction.h
|
|
|
|
$(CC) -c scene.c $(CFLAGS)
|
2023-12-04 17:01:52 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
serpent.o: serpent.c fonction.h
|
|
|
|
$(CC) -c serpent.c $(CFLAGS)
|
2023-12-04 17:01:52 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
timer.o:timer.c fonction.h
|
|
|
|
$(CC) -c timer.c $(CFLAGS)
|
|
|
|
|
|
|
|
score.o:score.c fonction.h
|
|
|
|
$(CC) -c score.c $(CFLAGS)
|
|
|
|
|
|
|
|
clean:-rm -f *.o serpent
|