JARFLAGS = cf
INTFACE_DIR = iotcode/interfaces
-all: light
+all: light camera labroom
# Compile
#
cp LifxLightBulb/LifxLightBulb.config $(BIN_DIR)/iotcode/LifxLightBulb
cd $(BIN_DIR)/iotcode/LifxLightBulb; $(JAR) $(JARFLAGS) LifxLightBulb.jar ../../iotcode/LifxLightBulb/*.class ../../iotcode/interfaces/LightBulb*.class
+PHONY += camera
+camera:
+ $(JAVAC) $(JFLAGS) AmcrestCamera/*.java
+ cp AmcrestCamera/AmcrestCamera.config $(BIN_DIR)/iotcode/AmcrestCamera
+ cd $(BIN_DIR)/iotcode/AmcrestCamera; $(JAR) $(JARFLAGS) AmcrestCamera.jar ../../iotcode/AmcrestCamera/*.class ../../iotcode/interfaces/Camera*.class
+
+PHONY += labroom
+labroom:
+ $(JAVAC) $(JFLAGS) LabRoom/*.java
+ cp LabRoom/LabRoom.config $(BIN_DIR)/iotcode/LabRoom
+ cd $(BIN_DIR)/iotcode/LabRoom; $(JAR) $(JARFLAGS) LabRoom.jar ../../iotcode/LabRoom/*.class ../../iotcode/interfaces/Room*.class
+
.PHONY: $(PHONY)