472b4b3df119822753f7d3667fdc4d3aca8bd001
[iot2.git] / benchmarks / Java / HomeSecurityController / Makefile
1 BASE = ../../..
2
3 include $(BASE)/common.mk
4
5 BOOFDIR := ../../libs/boofcv_libs
6 BOOFJARS := $(BOOFDIR)/BoofCV-feature-0.21.jar:$(BOOFDIR)/BoofCV-io-0.21.jar:$(BOOFDIR)/BoofCV-visualize-0.21.jar:$(BOOFDIR)/BoofCV-ip-0.21.jar:$(CHECKERJARS)
7
8 JFLAGS = -d $(BIN_DIR) -cp $(BOOFJARS):$(BIN_DIR):$(CHECKERJARS):$(IOTCLOUDJARS):.
9 JARFLAGS = cf 
10
11 # checker option
12 #
13 CHECKER_OPT = -processor iotchecker.IoTJavaChecker -AprintErrorStack
14
15 ASTUBS = -Astubs=../../../checker/astubs/ 
16
17 all: homesecurity
18
19 check-all: check-homesecurity
20
21 PHONY += homesecurity
22 homesecurity:
23         $(JAVAC) $(JFLAGS) *.java
24         cp HomeSecurityController.config $(BIN_DIR)/HomeSecurityController
25         #cp HomeSecurityController.tomoyo $(BIN_DIR)/HomeSecurityController
26         cd $(BIN_DIR)/HomeSecurityController; $(JAR) $(JARFLAGS) HomeSecurityController.jar ../HomeSecurityController/HomeSecurityController*.class ../HomeSecurityController/*.class ../iotcode/interfaces/SmartthingsSensor*.class ../iotcode/interfaces/SmartthingsActuator*.class ../iotcode/interfaces/Camera*.class ../iotcode/interfaces/Alarm*.class ../iotcode/interfaces/Room*.class  ../iotcode/interfaces/ZoneState*.class ../iotcode/interfaces/Resolution*.class; mkdir tmp; mv HomeSecurityController.class ./tmp; rm -rf *.class; mv ./tmp/* ./; rm -rf ./tmp
27
28 PHONY += check-homesecurity
29 check-homesecurity:
30         $(JAVAC) $(JFLAGS) $(CHECKER_OPT) $(ASTUBS) *.java
31         cp HomeSecurityController.config $(BIN_DIR)/HomeSecurityController
32         #cp HomeSecurityController.tomoyo $(BIN_DIR)/HomeSecurityController
33         cd $(BIN_DIR)/HomeSecurityController; $(JAR) $(JARFLAGS) HomeSecurityController.jar ../HomeSecurityController/HomeSecurityController*.class ../HomeSecurityController/*.class ../iotcode/interfaces/SmartthingsSensor*.class ../iotcode/interfaces/SmartthingsActuator*.class ../iotcode/interfaces/Camera*.class ../iotcode/interfaces/Alarm*.class ../iotcode/interfaces/Room*.class  ../iotcode/interfaces/ZoneState*.class ../iotcode/interfaces/Resolution*.class; mkdir tmp; mv HomeSecurityController.class ./tmp; rm -rf *.class; mv ./tmp/* ./; rm -rf ./tmp
34
35 .PHONY: $(PHONY)