ajout du makefile
This commit is contained in:
parent
6bd8ad1627
commit
456ca92e2b
1 changed files with 16 additions and 0 deletions
16
makefile
Normal file
16
makefile
Normal 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)
|
Reference in a new issue