-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 1.09 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
# =============================================================================
# FileName: Makefile
# Desc: Make file
# Author: YanlongLi
# Email: [email protected]
# HomePage: http://www.yanlongli.me
# Created: 2017-10-14 06:51:07
# Version: 0.0.1
# LastChange: 2017-10-14 06:51:07
# History:
# 0.0.1 | YanlongLi | init
# =============================================================================
CPPFLAGS=-g --std=c++11
breakthrough: Board.o Agent.o MinimaxAgent.o Evaluator.o RandomAgent.o main.o utils.o
@$(CXX) $(CPPFLAGS) $^ -o $@
%.o: %.cpp
$(CXX) $(CPPFLAGS) -c $<
# Board.o: Board.cpp
# @g++ -g -c -std=c++11 Board.cpp
#
# Agent.o: Agent.cpp
# @g++ -g -c -std=c++11 Agent.cpp
#
# MinimaxAgent.o: MinimaxAgent.cpp
# @g++ -g -c -std=c++11 MinimaxAgent.cpp
#
# RandomAgent.o: RandomAgent.cpp
# @g++ -g -c -std=c++11 RandomAgent.cpp
#
# utils.o: utils.cpp
# @g++ -g -c -std=c++11 utils.cpp
#
# main.o: main.cpp
# @g++ -g -c -std=c++11 main.cpp
run: breakthrough
@./breakthrough
clean:
@rm -f *.o breakthrough
.PHONY: run