Makefile terminé
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
CC=gcc
|
||||
CFLAGS=-ansi -pedantic -lgraph
|
||||
|
||||
all:serpent
|
||||
all:Jeux
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
main.o:main.c fonction.h
|
||||
$(CC) -c main.c $(CFLAGS)
|
||||
@@ -21,4 +21,4 @@ timer.o:timer.c fonction.h
|
||||
score.o:score.c fonction.h
|
||||
$(CC) -c score.c $(CFLAGS)
|
||||
|
||||
clean:-rm -f *.o serpent
|
||||
clean:-rm -f *.o Jeux
|
||||
|
Reference in New Issue
Block a user