SAE11_2023/SAE_semestre1/Makefile

26 lines
521 B
Makefile
Executable File

CC = gcc
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