j'ai oublier de git add mais maintenant c'est fait
This commit is contained in:
32
Makefile
Normal file
32
Makefile
Normal file
@@ -0,0 +1,32 @@
|
||||
but : snake
|
||||
|
||||
OFILES = main.o \
|
||||
serpent.o \
|
||||
pastille.o \
|
||||
menu_terrain.o\
|
||||
temps_score.o
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS = -Wall -ansi -pedantic -g
|
||||
|
||||
serpent.o : serpent.h menu_terrain.h temps_score.h
|
||||
|
||||
pastille.o : pastille.h menu_terrain.h serpent.h
|
||||
|
||||
main.o : serpent.h pastille.h temps_score.h menu_terrain.h
|
||||
|
||||
temps_score.o : temps_score.h
|
||||
|
||||
menu_terrain.o : menu_terrain.h
|
||||
|
||||
snake : $(OFILES)
|
||||
$(CC) $(CFLAGS) -o snake $(OFILES) -lgraph
|
||||
|
||||
run : snake
|
||||
./snake
|
||||
|
||||
clean :
|
||||
-rm -f $(OFILES) snake
|
||||
|
||||
.PHONY : but clean
|
||||
Reference in New Issue
Block a user