-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (35 loc) · 1.46 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
dspomdp-bwc: cassandra-lexer.cpp cassandra-parser.cpp cassandra-driver.h \
cassandra-driver.cpp main.cpp pomdp.h pomdp.cpp cassandra-parser.h \
dsgame.h dsgame.cpp BWCPOMCP.hpp
c++ -O3 -std=c++11 cassandra-lexer.cpp cassandra-parser.cpp \
cassandra-driver.cpp pomdp.cpp dsgame.cpp main.cpp \
-I/usr/local/include \
-I/usr/local/include/eigen3 \
-I/Users/gaperez/AI-Toolbox/include \
-L/usr/local/lib \
-L/Users/gaperez/AI-Toolbox/build \
-lz3 -lAIToolboxMdp -lAIToolboxPOMDP -o dspomdp-bwc
test-sim: cassandra-lexer.cpp cassandra-parser.cpp cassandra-driver.h \
cassandra-driver.cpp test.cpp pomdp.h pomdp.cpp cassandra-parser.h \
dsgame.h dsgame.cpp BWCPOMCP.hpp
c++ -O3 -std=c++11 cassandra-lexer.cpp cassandra-parser.cpp \
cassandra-driver.cpp pomdp.cpp dsgame.cpp test.cpp \
-I/usr/local/include \
-I/usr/local/include/eigen3 \
-I/Users/gaperez/AI-Toolbox/include \
-L/usr/local/lib \
-L/Users/gaperez/AI-Toolbox/build \
-lz3 -lAIToolboxMdp -lAIToolboxPOMDP -o test-sim
all: clean dspomdp-bwc test-sim
cassandra-lexer.cpp: cassandra-parser.h cassandra.l
flex --outfile=cassandra-lexer.cpp cassandra.l
cassandra-parser.h: cassandra.y
bison --defines=cassandra-parser.h \
--output=cassandra-parser.cpp cassandra.y
cassandra-parser.cpp: cassandra.y
bison --defines=cassandra-parser.h \
--output=cassandra-parser.cpp cassandra.y
clean:
rm cassandra-parser.h cassandra-parser.cpp \
cassandra-lexer.cpp location.hh position.hh \
stack.hh dspomdp-bwc