forked from macroxue/2048-ai
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (17 loc) · 643 Bytes
/
Copy pathmakefile
File metadata and controls
23 lines (17 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: 2048 2048b board_test array_test
SOURCES=board.cc
HEADERS=node.h board.h cache.h tuple_move.h tuple.h snake.h plan.h array.h
CC_OPTIONS=-std=c++0x -pthread -Wall
2048: 2048.cc $(SOURCES) $(HEADERS)
g++ $(CC_OPTIONS) -O3 -o $@ 2048.cc $(SOURCES)
2048b: 2048.cc $(SOURCES) $(HEADERS)
g++ $(CC_OPTIONS) -O3 -o $@ 2048.cc $(SOURCES) -DBIG_TUPLES
board_test: board_test.cc board.cc board.h
g++ $(CC_OPTIONS) -g -o $@ board_test.cc board.cc
./$@
array_test: array_test.cc array.h
g++ $(CC_OPTIONS) -g -o $@ array_test.cc
./$@
compact_map_test: compact_map_test.cc compact_map.h
g++ $(CC_OPTIONS) -g -o $@ compact_map_test.cc
./$@