e4dd350e8a0a066fe7846673e59618ad58642598
[iot2.git] / benchmarks / Java / SmartLightsController / 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):.
9 JARFLAGS = cf 
10
11 # checker option
12 #
13 CHECKER_OPT = -processor iotchecker.IoTJavaChecker -AprintErrorStack
14
15 ASTUBS = -Astubs=../../../checker/astubs/ 
16
17 all: smartlights
18
19 check-all: check-smartlights
20
21 PHONY += smartlights
22 smartlights:
23         $(JAVAC) $(JFLAGS) *.java
24         cp SmartLightsController.config $(BIN_DIR)/SmartLightsController
25         cp SmartLightsController.tomoyo $(BIN_DIR)/SmartLightsController
26         cd $(BIN_DIR)/SmartLightsController; $(JAR) $(JARFLAGS) SmartLightsController.jar ../SmartLightsController/SmartLightsController*.class ../SmartLightsController/ColorTemperature*.class ../SmartLightsController/MotionDetection*.class ../SmartLightsController/*.class ../iotcode/interfaces/Camera*.class ../iotcode/interfaces/Room*.class ../iotcode/interfaces/LightBulb*.class ../iotcode/interfaces/Resolution*.class
27
28 PHONY += check-smartlights
29 check-smartlights:
30         $(JAVAC) $(JFLAGS) $(CHECKER_OPT) $(ASTUBS) *.java
31         cp SmartLightsController.config $(BIN_DIR)/SmartLightsController
32         cp SmartLightsController.tomoyo $(BIN_DIR)/SmartLightsController
33         cd $(BIN_DIR)/SmartLightsController; $(JAR) $(JARFLAGS) SmartLightsController.jar ../SmartLightsController/SmartLightsController*.class ../SmartLightsController/ColorTemperature*.class ../SmartLightsController/MotionDetection*.class ../SmartLightsController/*.class ../iotcode/interfaces/Camera*.class ../iotcode/interfaces/Room*.class ../iotcode/interfaces/LightBulb*.class ../iotcode/interfaces/Resolution*.class
34
35 .PHONY: $(PHONY)