Preparing files, stubs, and skeletons for 2nd benchmark
[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 greenlawn sprinkler moisture weathergateway
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 ../../iotcode/interfaces/Resolution*.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 += greenlawn
36 greenlawn:
37         $(JAVAC) $(JFLAGS) GreenLawn/*.java
38         cp GreenLawn/GreenLawn.config $(BIN_DIR)/iotcode/GreenLawn
39         cd $(BIN_DIR)/iotcode/GreenLawn; $(JAR) $(JARFLAGS) GreenLawn.jar ../../iotcode/GreenLawn/*.class ../../iotcode/interfaces/Lawn*.class
40
41 PHONY += sprinkler
42 sprinkler:
43         $(JAVAC) $(JFLAGS) EspSprinkler/*.java
44         cp EspSprinkler/EspSprinkler.config $(BIN_DIR)/iotcode/EspSprinkler
45         cd $(BIN_DIR)/iotcode/EspSprinkler; $(JAR) $(JARFLAGS) EspSprinkler.jar ../../iotcode/EspSprinkler/*.class ../../iotcode/interfaces/Sprinkler*.class ../../iotcode/interfaces/ZoneState*.class
46
47 PHONY += moisture
48 moisture:
49         $(JAVAC) $(JFLAGS) SpruceSensor/*.java
50         cp SpruceSensor/SpruceSensor.config $(BIN_DIR)/iotcode/SpruceSensor
51         cd $(BIN_DIR)/iotcode/SpruceSensor; $(JAR) $(JARFLAGS) SpruceSensor.jar ../../iotcode/SpruceSensor/*.class ../../iotcode/interfaces/MoistureSensor*.class ../../iotcode/
52
53 PHONY += weathergateway
54 weathergateway:
55         $(JAVAC) $(JFLAGS) WeatherPhoneGateway/*.java
56         cp WeatherPhoneGateway/WeatherPhoneGateway.config $(BIN_DIR)/iotcode/WeatherPhoneGateway
57         cd $(BIN_DIR)/iotcode/WeatherPhoneGateway; $(JAR) $(JARFLAGS) WeatherPhoneGateway.jar ../../iotcode/WeatherPhoneGateway/*.class ../../iotcode/interfaces/WeatherGateway*.class
58
59 .PHONY: $(PHONY)