forked from ri57-sibsutis/hangman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 701 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 701 Bytes
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
36
37
38
39
OBJECTS = obj/main.o obj/hangman.o obj/game.o obj/word_select.o
CC = gcc -std=c99 -Wall
LIBS = `pkg-config --cflags --libs gtk+-3.0` -rdynamic
.PHONY: clean prepare
#############
bin/hangman: prepare ${OBJECTS}
$(CC) -o bin/hangman ${OBJECTS} $(LIBS)
obj/main.o: src/main.c
$(CC) -c src/main.c -o obj/main.o $(LIBS)
obj/hangman.o: src/hangman.c
$(CC) -c src/hangman.c -o obj/hangman.o $(LIBS)
obj/game.o: src/game.c
$(CC) -c src/game.c -o obj/game.o $(LIBS)
obj/word_select.o: src/word_select.c
$(CC) -c src/word_select.c -o obj/word_select.o $(LIBS)
app: bin/hangman
bin/hangman
test: bin/test
bin/test
prepare: bin obj
bin:
mkdir bin
obj:
mkdir obj
clean:
rm -f bin/* obj/*.o