-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (24 loc) · 952 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TAGS=-Wall -g -c
COMPILER=gcc
.PHONY: build run clean
build: hangman
hangman: hangman.o read.o game.o drawing.o menu.o hiddenExpression.o panel.o
$(COMPILER) hangman.o read.o game.o drawing.o menu.o hiddenExpression.o panel.o -o hangman -lncurses
hangman.o: hangman.c
$(COMPILER) $(TAGS) hangman.c -o hangman.o
hiddenExpression.o: hiddenExpression.c hiddenExpression.h
$(COMPILER) $(TAGS) -g -c hiddenExpression.c -o hiddenExpression.o
drawing.o: drawing.c drawing.h
$(COMPILER) $(TAGS) -g -c drawing.c -o drawing.o
game.o: game.c game.h
$(COMPILER) $(TAGS) -g -c game.c -o game.o
read.o: read.c read.h
$(COMPILER) $(TAGS) -g -c read.c -o read.o
panel.o: panel.c panel.h
$(COMPILER) $(TAGS) -g -c panel.c -o panel.o
menu.o: menu.c menu.h
$(COMPILER) $(TAGS) -g -c menu.c -o menu.o
run: hangman
./hangman README hangman.c Makefile
clean:
rm -f hangman.o hangman read.o game.o drawing.o menu.o hiddenExpression.o panel.o