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)