Makefile Opérationnel + dérangement des fichiers
This commit is contained in:
@@ -1,26 +1,29 @@
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -ansi -pedantic -lgraph
|
||||
OBJS = main.o serpent.o time.o terrain.o pastille.o
|
||||
OBJS = main.o serpent.o time.o terrain.o Oeuf.o
|
||||
|
||||
|
||||
serpent: $(OBJS)
|
||||
$(CC) -o serpent $(OBJS) $(CFLAGS)
|
||||
snake: $(OBJS)
|
||||
$(CC) -o snake $(OBJS) $(CFLAGS)
|
||||
|
||||
main.o: serpent.h time.h pastille.h main.h
|
||||
main.o: serpent.h time.h Oeuf.h main.h menu.h
|
||||
$(CC) -c main.c $(CFLAGS)
|
||||
|
||||
serpent.o: serpent.h
|
||||
$(CC) -c serpent.c $(CFLAGS)
|
||||
|
||||
timer.o: timer.h serpent.h main.h
|
||||
$(CC) -c timer.c $(CFLAGS)
|
||||
menu.o: main.h time.h
|
||||
$(CC) -c menu.c $(CFLAGS)
|
||||
|
||||
pastille.o: pastille.h serpent.h
|
||||
$(CC) -c pastille.c $(CFLAGS)
|
||||
time.o: time.h serpent.h main.h
|
||||
$(CC) -c time.c $(CFLAGS)
|
||||
|
||||
terrain.o: terrain.h serpent.h time.h main.h pastille.h
|
||||
Oeuf.o: Oeuf.h time.h
|
||||
$(CC) -c Oeuf.c $(CFLAGS)
|
||||
|
||||
terrain.o: terrain.h serpent.h time.h main.h Oeuf.h
|
||||
$(CC) -c terrain.c $(CFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.0 serpent
|
||||
rm -f *.o snake
|
Reference in New Issue
Block a user