include $(BASE)/common.mk
-all: iotparser
+all: iotparsertree iotparser iotcompiler
+
+PHONY += iotparsertree
+iotparsertree:
+ $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotpolicy/tree/*.java
PHONY += iotparser
iotparser:
- $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotparser/*.java
- cp ../config/iotparser/* $(BIN_DIR)/iotparser/
+ $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotpolicy/parser/*.java
+
+PHONY += iotcompiler
+iotcompiler:
+ $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotpolicy/*.java
+ cp ../config/iotpolicy/*.pol $(BIN_DIR)/iotpolicy/
-PHONY += iotparse
-iotparse:
- cd $(BIN_DIR)/iotparser; $(JAVA) -cp .:..:../$(PARSERJARS):../$(BIN_DIR) iotparser.Parser policy.pol out.xml
+PHONY += iotcompilestub
+iotcompilestub:
+ cd $(BIN_DIR)/iotpolicy; $(JAVA) -cp .:..:../$(PARSERJARS):../$(BIN_DIR) iotpolicy.IoTStubCompiler policy.pol
PHONY += doc
doc: iotruntime iotinstaller
- $(JAVADOC) -d $(DOCS_DIR) iotparser/*.java
+ $(JAVADOC) -d $(DOCS_DIR) iotpolicy/*.java
.PHONY: $(PHONY)