Makefile terminé
This commit is contained in:
parent
100b99bd99
commit
c63415562d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user