08aca6dcf5bb190b65b7e440c78a969408493f5a
[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 audioroom gpsgateway ihome
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/interfaces/Camera*.class ../../IrrigationController/MotionDetection*.class
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 += audioroom
60 audioroom:
61         $(JAVAC) $(JFLAGS) AudioRoom/*.java
62         cp AudioRoom/AudioRoom.config $(BIN_DIR)/iotcode/AudioRoom
63         cd $(BIN_DIR)/iotcode/AudioRoom; $(JAR) $(JARFLAGS) AudioRoom.jar ../../iotcode/AudioRoom/*.class ../../iotcode/interfaces/Room*.class
64
65 PHONY += gpsgateway
66 gpsgateway:
67         $(JAVAC) $(JFLAGS) GPSPhoneGateway/*.java
68         cp GPSPhoneGateway/GPSPhoneGateway.config $(BIN_DIR)/iotcode/GPSPhoneGateway
69         cd $(BIN_DIR)/iotcode/GPSPhoneGateway; $(JAR) $(JARFLAGS) GPSPhoneGateway.jar ../../iotcode/GPSPhoneGateway/*.class ../../iotcode/interfaces/GPSGateway*.class
70
71 PHONY += ihome
72 ihome:
73         $(JAVAC) $(JFLAGS) IHome/*.java
74         cp IHome/IHome.config $(BIN_DIR)/iotcode/IHome
75         cd $(BIN_DIR)/iotcode/IHome; $(JAR) $(JARFLAGS) IHome.jar ../../iotcode/IHome/*.class ../../iotcode/interfaces/Speaker*.class
76
77 .PHONY: $(PHONY)