2022-11-29 16:48:55 +01:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS= -Wall -c -lgraph
|
|
|
|
LDFLAGS= -Wall -lgraph
|
|
|
|
EXEC=menu
|
|
|
|
|
2022-11-30 17:13:06 +01:00
|
|
|
jeu: main.o images.o menu.o temps.o
|
|
|
|
$(CC) -o jeu main.o images.o menu.o temps.o $(LDFLAGS)
|
|
|
|
main.o: main.c images.h menu.h main.h temps.h
|
2022-11-29 16:48:55 +01:00
|
|
|
$(CC) main.c $(CFLAGS)
|
2022-11-29 17:25:00 +01:00
|
|
|
images.o: images.c images.h
|
2022-11-29 16:48:55 +01:00
|
|
|
$(CC) images.c $(CFLAGS)
|
2022-11-29 17:25:00 +01:00
|
|
|
menu.o: menu.c menu.h
|
2022-11-29 16:48:55 +01:00
|
|
|
$(CC) menu.c $(CFLAGS)
|
2022-11-30 17:13:06 +01:00
|
|
|
temps.o: temps.c temps.h
|
|
|
|
$(CC) temps.c $(CFLAGS)
|
2022-11-29 16:48:55 +01:00
|
|
|
run:./jeu
|