voila
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
but : snake
|
||||
|
||||
OFILES = main.o \
|
||||
serpent.o \
|
||||
pomme.o \
|
||||
terrain.o\
|
||||
temps_et_score.o
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS = -Wall -ansi -pedantic -g
|
||||
|
||||
serpent.o : serpent.h terrain.h temps_et_score.h
|
||||
|
||||
pomme.o : pomme.h terrain.h serpent.h
|
||||
|
||||
main.o : serpent.h pomme.h temps_et_score.h terrain.h
|
||||
|
||||
temps_et_score.o : temps_score.h
|
||||
|
||||
terrain.o : menu_terrain.h
|
||||
|
||||
snake : $(OFILES)
|
||||
$(CC) $(CFLAGS) -o snake $(OFILES) -lgraph
|
||||
|
||||
clean :
|
||||
-rm -f $(OFILES) snake
|
||||
|
||||
.PHONY : but clean
|
Reference in New Issue
Block a user