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)
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
......
......@@ -13,9 +13,13 @@ MODULES=LabCommDispatcher \
LabCommReader \
WriterWrapper
all: labcomm.jar labcomm2006.jar
all: labcomm.jar labcomm2013.jar labcomm2006.jar
labcomm.jar: gen/JAVAC
echo $@
cd gen ; jar cf ../$@ se/lth/control/labcomm/*.class se/lth/control/labcomm2006/*.class
labcomm2013.jar: gen/JAVAC
echo $@
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
.PHONY: clean
clean:
rm -rf labcomm.jar gen labcomm2006.jar
rm -rf labcomm.jar labcomm2006.jar labcomm2013.jar gen
Markdown is supported
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