-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 1.37 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
48
49
50
51
52
53
54
# VoltJS-Bench GNU Makefile
# H. Diedrich
VOLTLEAD := ip-10-84-114-35.ec2.internal
VOLTROOT := /home/voltdb/voltdb
export CLASSPATH :=./:$(VOLTROOT)/lib/*:$(VOLTROOT)/voltdb/*
SRCDIR =./
OBJDIR =./
SOURCES := $(wildcard $(SRCDIR)/*.java)
MODULES := $(SOURCES:$(SRCDIR)/%.java=%)
OBJECTS := $(MODULES:%=$(OBJDIR)/%.class)
all: $(OBJECTS) catalogue
$(OBJDIR)/%.class: $(SRCDIR)/%.java
@ mkdir -p $(OBJDIR)
javac -d $(OBJDIR) -s $(SRCDIR) $<
catalogue: helloworld.jar
helloworld.jar: project.xml
java -Djava.library.path=$(VOLTROOT)/voltdb org.voltdb.compiler.VoltCompiler project.xml helloworld.jar
server: all
@ echo --- running server ---
java -Djava.library.path=$(VOLTROOT)/voltdb org.voltdb.VoltDB catalog helloworld.jar deployment deployment.xml leader $(VOLTLEAD) license /Users/hd/voltdb/voltdb/license.xml
@ echo --- ---
client: all
@ echo --- running client ---
java Client
java Client1 English # same as Client but no inserts and language parameter
@ echo --- ---
clean:
@ rm -rf voltdbroot
@ rm -rf debugoutput
@ rm -rf org
@ rm -f helloworld.jar
@ rm -f *.class
@ rm -f *.DS_Store
# test if VoltDB is running on this machine
up:
ps ax | grep voltb
# create a binary 'up' that tests if VoltDB is running on this machiner
binup:
echo "ps ax | grep voltb" > up && chmod 777 up && sudo mv up /usr/local/bin
.PHONY: all