Commit 72af701b authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

generate three jar files for java lib; labcomm.jar with both versions, and...

generate three jar files for java lib; labcomm.jar with both versions, and separate jars for only 2013 and 2006
parent e07ee97b
(cd ../..; make all) (cd ../..; make all)
mkdir -p gen mkdir -p gen
java -jar ../../compiler/labComm.jar --java=gen --c=gen/simple.c --h=gen/simple.h --python=gen/simple.py simple.lc java -jar ../../compiler/labComm.jar --ver=2013 --java=gen --c=gen/simple.c --h=gen/simple.h --python=gen/simple.py simple.lc
javac -cp ../../lib/java:. gen/*.java Encoder.java Decoder.java javac -cp ../../lib/java:. gen/*.java Encoder.java Decoder.java
......
...@@ -13,9 +13,13 @@ MODULES=LabCommDispatcher \ ...@@ -13,9 +13,13 @@ MODULES=LabCommDispatcher \
LabCommReader \ LabCommReader \
WriterWrapper WriterWrapper
all: labcomm.jar labcomm2006.jar all: labcomm.jar labcomm2013.jar labcomm2006.jar
labcomm.jar: gen/JAVAC labcomm.jar: gen/JAVAC
echo $@
cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class se/lth/control/labcomm2006/*.class
labcomm2013.jar: gen/JAVAC
echo $@ echo $@
cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class
...@@ -34,5 +38,5 @@ gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) $(MODULES:%=se/lth/control ...@@ -34,5 +38,5 @@ gen/JAVAC: $(MODULES:%=se/lth/control/labcomm/%.java) $(MODULES:%=se/lth/control
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf labcomm.jar gen labcomm2006.jar rm -rf labcomm.jar labcomm2006.jar labcomm2013.jar gen
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment