64f5d6cd90cf13d37b7d96dcc6f6337aedf778b6
[iot2.git] / benchmarks / drivers / 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
7 JLAYERDIR := ../libs/jlayer_libs
8 JLAYERJARS := $(JLAYERDIR)/jl1.0.1.jar
9 JFLAGS = -d $(BIN_DIR) -cp $(BIN_DIR):$(PHONEJARS):$(BOOFJARS):$(JLAYERJARS)
10 JARFLAGS = cf
11 INTFACE_DIR = iotcode/interfaces
12
13 all: light camera labroom
14
15 # Compile
16 #
17 PHONY += light
18 light:
19         $(JAVAC) $(JFLAGS) LifxLightBulb/*.java
20         cp LifxLightBulb/LifxLightBulb.config $(BIN_DIR)/iotcode/LifxLightBulb
21         cd $(BIN_DIR)/iotcode/LifxLightBulb; $(JAR) $(JARFLAGS) LifxLightBulb.jar ../../iotcode/LifxLightBulb/*.class ../../iotcode/interfaces/LightBulb*.class
22
23 PHONY += camera
24 camera:
25         $(JAVAC) $(JFLAGS) AmcrestCamera/*.java
26         cp AmcrestCamera/AmcrestCamera.config $(BIN_DIR)/iotcode/AmcrestCamera
27         cd $(BIN_DIR)/iotcode/AmcrestCamera; $(JAR) $(JARFLAGS) AmcrestCamera.jar ../../iotcode/AmcrestCamera/*.class ../../iotcode/interfaces/Camera*.class
28
29 PHONY += labroom
30 labroom:
31         $(JAVAC) $(JFLAGS) LabRoom/*.java
32         cp LabRoom/LabRoom.config $(BIN_DIR)/iotcode/LabRoom
33         cd $(BIN_DIR)/iotcode/LabRoom; $(JAR) $(JARFLAGS) LabRoom.jar ../../iotcode/LabRoom/*.class ../../iotcode/interfaces/Room*.class
34
35 .PHONY: $(PHONY)