SAE11_2023/SAE_semestre1/Makefile

26 lines
521 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 pastille.o
serpent: $(OBJS)
$(CC) -o serpent $(OBJS) $(CFLAGS)
main.o: serpent.h time.h pastille.h main.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)
pastille.o: pastille.h serpent.h
$(CC) -c pastille.c $(CFLAGS)
terrain.o: terrain.h serpent.h time.h main.h pastille.h
$(CC) -c terrain.c $(CFLAGS)
clean:
rm -f *.0 serpent