-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
35 lines (23 loc) · 822 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
CC = clang++ -std=gnu++17
#CC = clang++ -std=gnu++17 -g -O0
#CC = g++
hpINC = graph.h dPath.h bfs.h dfs.h HexPlayer.h
hbINC = ${hpINC} HexBoard.h
geINC = ${hbINC} HexUI.h HexConsoleUI.h HexGameEngine.h
all: hex
hex: main.o dPath.o HexBoard.o ComputerPlayer.o HexConsoleUI.o HexGameEngine.o
${CC} main.o dPath.o HexBoard.o ComputerPlayer.o HexConsoleUI.o HexGameEngine.o -o hex
main.o: ${geINC} main.cpp
${CC} -c main.cpp
dPath.o: graph.h dPath.h dPath.cpp
${CC} -c dPath.cpp
HexBoard.o: ${hbINC} HexBoard.cpp
${CC} -c HexBoard.cpp
HexConsoleUI.o: ${hbINC} HexUI.h HexConsoleUI.h HexGameEngine.h HexConsoleUI.cpp
${CC} -c HexConsoleUI.cpp
ComputerPlayer.o: ${geINC} ComputerPlayer.cpp
${CC} -c ComputerPlayer.cpp
HexGameEngine.o: ${geINC} HexGameEngine.cpp
${CC} -c HexGameEngine.cpp
clean:
rm hex *.o