ajout du makefile

This commit is contained in:
Mylloon 2021-03-24 20:12:47 +01:00
parent 6bd8ad1627
commit 456ca92e2b

16
makefile Normal file
View file

@ -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)