-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 1.62 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
all: out tokenInterface token tokenEngine trafficLightInterface trafficLightServerClient client
out:
mkdir out
cp -r src/* out/
tokenInterface:
cd out && javac tokenInterface/*.java
cd out && jar cvf tokenInterface.jar tokenInterface/*.class
rm -rf out/tokenInterface
token:
cd out && javac -cp tokenInterface.jar token/*.java
cd out && jar cvf token.jar token/*.class
rm -rf out/token
tokenEngine:
cd out && javac -cp tokenInterface.jar tokenEngine/*.java
rm -f out/tokenEngine/*.java
trafficLightInterface:
cd out && javac -cp token.jar trafficLightInterface/*.java
cd out && jar cvf trafficLightInterface.jar trafficLightInterface/*.class
rm -rf out/trafficLightInterface
trafficLightServerClient:
cd out && javac -cp tokenInterface.jar:token.jar:trafficLightInterface.jar trafficLightServerClient/*.java
rm -f out/trafficLightServerClient/*.java
client:
cd out && javac -cp trafficLightInterface.jar client/*.java
rm -f out/client/*.java
run-rmiregistry:
CLASSPATH=out/trafficLightInterface.jar:out/tokenInterface.jar:out/token.jar rmiregistry
run-trafficLightServerClient:
cd out && java -cp .:tokenInterface.jar:token.jar:trafficLightInterface.jar\
-Djava.security.policy=security.policy\
trafficLightServerClient.TrafficLightServerClient ${id} ${n} ${initialDelay} ${bearer}
run-tokenEngine:
cd out && java -cp .:tokenInterface.jar:token.jar\
-Djava.security.policy=security.policy\
tokenEngine.TokenEngine
run-client:
cd out && java -cp .:trafficLightInterface.jar:token.jar:tokenInterface.jar\
-Djava.security.policy=security.policy\
client.ConnectingClient ${n}
clean:
rm -rf out