SAE11_2023/SAE_semestre1/Makefile

29 lines
542 B
Makefile
Raw Normal View History

2023-12-19 17:27:47 +01:00
2023-11-30 13:44:06 +01:00
CC = gcc
2023-12-19 17:27:47 +01:00
CFLAGS = -ansi -pedantic -lgraph
OBJS = main.o serpent.o time.o terrain.o Oeuf.o
2023-12-19 17:27:47 +01:00
snake: $(OBJS)
$(CC) -o snake $(OBJS) $(CFLAGS)
2023-12-19 17:27:47 +01:00
main.o: serpent.h time.h Oeuf.h main.h menu.h
2023-12-19 17:27:47 +01:00
$(CC) -c main.c $(CFLAGS)
serpent.o: serpent.h
$(CC) -c serpent.c $(CFLAGS)
menu.o: main.h time.h
$(CC) -c menu.c $(CFLAGS)
2023-12-19 17:27:47 +01:00
time.o: time.h serpent.h main.h
$(CC) -c time.c $(CFLAGS)
2023-12-19 17:27:47 +01:00
Oeuf.o: Oeuf.h time.h
$(CC) -c Oeuf.c $(CFLAGS)
terrain.o: terrain.h serpent.h time.h main.h Oeuf.h
2023-12-19 17:27:47 +01:00
$(CC) -c terrain.c $(CFLAGS)
clean:
rm -f *.o snake