2022-11-29 16:48:55 +01:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS= -Wall -c -lgraph
|
|
|
|
LDFLAGS= -Wall -lgraph
|
|
|
|
EXEC=menu
|
|
|
|
|
2022-11-30 22:19:45 +01:00
|
|
|
jeu: main.o images.o menu.o jeu.o
|
|
|
|
$(CC) -o jeu main.o images.o menu.o jeu.o $(LDFLAGS)
|
2022-11-30 17:25:29 +01:00
|
|
|
main.o: main.c images.h menu.h main.h
|
2022-11-29 16:48:55 +01:00
|
|
|
$(CC) main.c $(CFLAGS)
|
2022-11-30 21:06:30 +01:00
|
|
|
images.o: images.c images.h jeu.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 21:06:30 +01:00
|
|
|
jeu.o: jeu.c jeu.h images.h
|
2022-11-30 17:25:29 +01:00
|
|
|
$(CC) jeu.c $(CFLAGS)
|
2022-11-29 16:48:55 +01:00
|
|
|
run:./jeu
|