Ajout du Makefile

This commit is contained in:
morinl 2022-11-29 16:48:55 +01:00
parent e7a3019038
commit d0da4ec550

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
CC=gcc
CFLAGS= -Wall -c -lgraph
LDFLAGS= -Wall -lgraph
EXEC=menu
jeu: main.o images.o menu.o
$(CC) -o jeu main.o images.o menu.o $(LDFLAGS)
main.o: main.c
$(CC) main.c $(CFLAGS)
images.o: images.c
$(CC) images.c $(CFLAGS)
menu.o: main.c
$(CC) menu.c $(CFLAGS)
run:./jeu