From 456ca92e2ba2fd9c16150fc763861264c0261930 Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Wed, 24 Mar 2021 20:12:47 +0100 Subject: [PATCH] ajout du makefile --- makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..0c0f301 --- /dev/null +++ b/makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS = -Wall -Wextra +ALL = blackjack +CLEAN = rm -f *.o + +all: $(ALL) + +blackjack: blackjack.o + $(CC) $^ -o blackjack -lncurses + $(CLEAN) + +%.o: %.c + $(CC) $(CFLAGS) -c $< + +clean: + $(CLEAN) $(ALL)