Adjusting back into the original lengthy version of IrrigationController; for testing...
[iot2.git] / benchmarks / Java / SpeakerController / 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 JLAYERDIR := ../../libs/jlayer_libs
8 JLAYERJARS := $(JLAYERDIR)/jl1.0.1.jar
9
10 JFLAGS = -d $(BIN_DIR) -cp $(BOOFJARS):$(BIN_DIR):.:$(JLAYERJARS):$(CHECKERJARS)
11 JARFLAGS = cf 
12
13 # checker option
14 #
15 CHECKER_OPT = -processor iotchecker.IoTJavaChecker -AprintErrorStack
16
17 ASTUBS = -Astubs=../../../checker/astubs/ 
18
19 all: speaker
20
21 check-all: check-speaker
22
23 PHONY += speaker
24 speaker:
25         $(JAVAC) $(JFLAGS) *.java
26         cd  $(BIN_DIR)/SpeakerController; $(JAR) $(JARFLAGS) SpeakerController.jar ../SpeakerController/*.class ../iotcode/interfaces/*.class; mkdir tmp; mv SpeakerController.class ./tmp; rm -rf *.class; mv ./tmp/* ./; rm -rf ./tmp
27         cp SpeakerController.config $(BIN_DIR)/SpeakerController
28         cp SpeakerController.tomoyo $(BIN_DIR)/SpeakerController
29         zip -r SpeakerController.zip ./music
30         mv SpeakerController.zip $(BIN_DIR)/SpeakerController
31
32 PHONY += check-speaker
33 check-speaker:
34         $(JAVAC) $(JFLAGS) $(CHECKER_OPT) $(ASTUBS) *.java
35         cd  $(BIN_DIR)/SpeakerController; $(JAR) $(JARFLAGS) SpeakerController.jar ../SpeakerController/*.class ../iotcode/interfaces/*.class; mkdir tmp; mv SpeakerController.class ./tmp; rm -rf *.class; mv ./tmp/* ./; rm -rf ./tmp
36         cp SpeakerController.config $(BIN_DIR)/SpeakerController
37         cp SpeakerController.tomoyo $(BIN_DIR)/SpeakerController
38         zip -r SpeakerController.zip ./music
39         mv SpeakerController.zip $(BIN_DIR)/SpeakerController
40
41 .PHONY: $(PHONY)