3 include $(BASE)/common.mk
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)
11 INTFACE_DIR = iotcode/interfaces
13 all: light camera labroom greenlawn sprinkler moisture weathergateway
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
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
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
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
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
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/
53 PHONY += 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