Makefile terminé

This commit is contained in:
Matis ROHAUT 2023-12-07 14:08:27 +01:00
parent 100b99bd99
commit c63415562d
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
CC=gcc CC=gcc
CFLAGS=-ansi -pedantic -lgraph CFLAGS=-ansi -pedantic -lgraph
all:serpent all:Jeux
serpent:main.o scene.o serpent.o timer.o score.o Jeux:main.o scene.o serpent.o timer.o score.o
$(CC) $(CFLAGS) -o serpent main.o scene.o serpent.o timer.o score.o $(CC) $(CFLAGS) -o Jeux main.o scene.o serpent.o timer.o score.o
main.o:main.c fonction.h main.o:main.c fonction.h
$(CC) -c main.c $(CFLAGS) $(CC) -c main.c $(CFLAGS)
@ -21,4 +21,4 @@ timer.o:timer.c fonction.h
score.o:score.c fonction.h score.o:score.c fonction.h
$(CC) -c score.c $(CFLAGS) $(CC) -c score.c $(CFLAGS)
clean:-rm -f *.o serpent clean:-rm -f *.o Jeux