SAE11_2023/JEUX_SERPENT/Makefile

28 lines
487 B
Makefile
Raw Normal View History

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:08:27 +01:00
all:Jeux
2023-12-04 17:01:52 +01:00
2023-12-10 11:29:26 +01:00
run:Jeux
./Jeux
2023-12-07 14:08:27 +01:00
Jeux:main.o scene.o serpent.o timer.o score.o
$(CC) $(CFLAGS) -o Jeux 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)
2023-12-07 14:08:27 +01:00
clean:-rm -f *.o Jeux