-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 1.19 KB
/
Makefile
File metadata and controls
52 lines (42 loc) · 1.19 KB
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
48
49
50
51
52
FILES := SqlException \
util/TableBuilder \
util/SetUtils \
Schema \
data/Datum \
plan/ExprTree \
plan/PlanNode \
plan/ProjectionNode \
plan/UnionNode \
plan/JoinNode \
plan/ScanNode \
plan/SelectionNode \
plan/NullSourceNode \
plan/AggregateNode \
Sql \
test/TestHarness
include Makefile.testspec
SRC := $(patsubst %, src/%.java, $(FILES))
OBJ := $(patsubst %, build/edu/buffalo/cse/sql/%.class, $(FILES))
FLAGS := -Xlint:unchecked
all: build $(patsubst %, src/%.java, $(CC_FILES)) $(OBJ)
build:
mkdir build
clean:
rm -r build
build/edu/buffalo/cse/sql/%.class: src/%.java
javac -cp build -d build $(FLAGS) $<
test: all
@echo "Starting Test (Running to first failure)"
@echo "Relational Algebra Execution Tests"
@for i in $(TEST_CLASSES); do \
for j in src/test/$$i*.java; do \
if java -cp build edu.buffalo.cse.sql.test.$$(basename $$j .java); \
then echo; else exit -1; fi \
done; done
fulltest: all
@echo "Starting Test (Running to completion)"
@echo "Relational Algebra Execution Tests"
@for i in $(TEST_CLASSES); do \
for j in src/test/$$i*.java; do \
java -cp build edu.buffalo.cse.sql.test.$$(basename $$j .java); \
done; done