From 5b97cd63bf877e083b03cb38602af4279ee202a5 Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Tue, 3 Mar 2015 18:39:11 +0100
Subject: [PATCH] Renamed C# to labcomm2014

---
 compiler/2014/CS_CodeGen.jrag                 |   2 +-
 examples/robot/Program.cs                     |   2 +-
 examples/user_types/.gitignore                |   2 +-
 examples/user_types/ExampleDecoder.cs         | 174 +++++++++---------
 examples/user_types/ExampleEncoder.cs         | 170 ++++++++---------
 examples/user_types/Makefile                  |  12 +-
 lib/csharp/.gitignore                         |   2 +-
 lib/csharp/Makefile                           |   6 +-
 .../{labcomm => labcomm2014}/Constant.cs      |   2 +-
 .../{labcomm => labcomm2014}/Decoder.cs       |   2 +-
 .../DecoderChannel.cs                         |   2 +-
 .../DecoderRegistry.cs                        |   2 +-
 .../{labcomm => labcomm2014}/Encoder.cs       |   2 +-
 .../EncoderChannel.cs                         |   2 +-
 .../EncoderRegistry.cs                        |   2 +-
 .../{labcomm => labcomm2014}/Sample.cs        |   2 +-
 .../SampleDispatcher.cs                       |   2 +-
 .../{labcomm => labcomm2014}/SampleHandler.cs |   2 +-
 .../{labcomm => labcomm2014}/SampleType.cs    |   0
 test/Makefile                                 |  10 +-
 test/relay_gen_cs.py                          |   2 +-
 21 files changed, 201 insertions(+), 201 deletions(-)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/Constant.cs (96%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/Decoder.cs (91%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/DecoderChannel.cs (99%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/DecoderRegistry.cs (98%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/Encoder.cs (93%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/EncoderChannel.cs (98%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/EncoderRegistry.cs (96%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/Sample.cs (66%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/SampleDispatcher.cs (85%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/SampleHandler.cs (51%)
 rename lib/csharp/se/lth/control/{labcomm => labcomm2014}/SampleType.cs (100%)

diff --git a/compiler/2014/CS_CodeGen.jrag b/compiler/2014/CS_CodeGen.jrag
index e1da497..69f50b6 100644
--- a/compiler/2014/CS_CodeGen.jrag
+++ b/compiler/2014/CS_CodeGen.jrag
@@ -210,7 +210,7 @@ aspect CS_CodeGen {
       env.indent();
     }
     env.println("using System;");
-    env.println("using se.lth.control.labcomm;");
+    env.println("using se.lth.control.labcomm2014;");
     for (int i = 0; i < getNumDecl(); i++) {
       Decl d = getDecl(i);
       try {
diff --git a/examples/robot/Program.cs b/examples/robot/Program.cs
index 56cfb27..49a0a92 100644
--- a/examples/robot/Program.cs
+++ b/examples/robot/Program.cs
@@ -1,4 +1,4 @@
-using se.lth.control.labcomm;
+using se.lth.control.labcomm2014;
 using System;
 using System.Collections.Generic;
 using System.Linq;
diff --git a/examples/user_types/.gitignore b/examples/user_types/.gitignore
index 30cd253..711968f 100644
--- a/examples/user_types/.gitignore
+++ b/examples/user_types/.gitignore
@@ -1,5 +1,5 @@
 gen
-labcomm.dll
+labcomm2014.dll
 ExampleDecoder.exe
 ExampleEncoder.exe
 encoded_data_c
diff --git a/examples/user_types/ExampleDecoder.cs b/examples/user_types/ExampleDecoder.cs
index 95b1fca..7766672 100644
--- a/examples/user_types/ExampleDecoder.cs
+++ b/examples/user_types/ExampleDecoder.cs
@@ -1,87 +1,87 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.IO;
-using se.lth.control.labcomm;
-
-namespace user_types
-{
-    class Decoder : twoLines.Handler, 
-                    twoInts.Handler, 
-                    theFirstInt.Handler, 
-                    theSecondInt.Handler,
-                    doavoid.Handler,
-                    intAndRef.Handler
-    {
-        DecoderChannel dec;
-
-        public Decoder(Stream stream)
-        {
-            dec = new DecoderChannel(stream);
-            twoLines.register(dec, this);
-            twoInts.register(dec, this);
-            theFirstInt.register(dec, this);
-            theSecondInt.register(dec, this);
-            doavoid.register(dec, this);
-            intAndRef.register(dec, this);
-            doavoid.registerSampleRef(dec);
-            try
-            {
-                Console.WriteLine("Running decoder.");
-                dec.run();
-            }
-            catch (EndOfStreamException)
-            {
-                Console.WriteLine("EOF reached");
-            }
-        }
-
-        private string genPoint(point p)
-        {
-            return "(" + p.x.val + ", " + p.y.val + ")";
-        }
-        private String genLine(line l)
-        {
-            return "Line from " + genPoint(l.start) + " to " + genPoint(l.end);
-        }
-        public void handle(twoLines d)
-        {
-            Console.WriteLine("Got twoLines: ");
-            Console.WriteLine("Line l1: "+genLine(d.l1));
-            Console.WriteLine("Line l2: " + genLine(d.l2));
-        }
-
-        public void handle(twoInts d)
-        {
-            Console.WriteLine("Got twoInts: ");
-            Console.WriteLine("a: "+d.a);
-            Console.WriteLine("b: "+d.b);
-        }
-
-        void theFirstInt.Handler.handle(int d)
-        {
-            Console.WriteLine("Got theFirstInt: "+d);
-        }
-
-        void theSecondInt.Handler.handle(int d)
-        {
-            Console.WriteLine("Got theSecondInt: "+d);
-        }
-
-        void doavoid.Handler.handle()
-        {
-            Console.WriteLine("Got a void.");
-        }
-
-        void intAndRef.Handler.handle(intAndRef d)
-        {
-            Console.WriteLine("Got intAndRef: "+d.x+" : "+d.reference);
-        }
-
-        static void Main(string[] args)
-        {
-            new Decoder(new FileStream(args[0], FileMode.Open));
-        }
-    }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+using se.lth.control.labcomm2014;
+
+namespace user_types
+{
+    class Decoder : twoLines.Handler, 
+                    twoInts.Handler, 
+                    theFirstInt.Handler, 
+                    theSecondInt.Handler,
+                    doavoid.Handler,
+                    intAndRef.Handler
+    {
+        DecoderChannel dec;
+
+        public Decoder(Stream stream)
+        {
+            dec = new DecoderChannel(stream);
+            twoLines.register(dec, this);
+            twoInts.register(dec, this);
+            theFirstInt.register(dec, this);
+            theSecondInt.register(dec, this);
+            doavoid.register(dec, this);
+            intAndRef.register(dec, this);
+            doavoid.registerSampleRef(dec);
+            try
+            {
+                Console.WriteLine("Running decoder.");
+                dec.run();
+            }
+            catch (EndOfStreamException)
+            {
+                Console.WriteLine("EOF reached");
+            }
+        }
+
+        private string genPoint(point p)
+        {
+            return "(" + p.x.val + ", " + p.y.val + ")";
+        }
+        private String genLine(line l)
+        {
+            return "Line from " + genPoint(l.start) + " to " + genPoint(l.end);
+        }
+        public void handle(twoLines d)
+        {
+            Console.WriteLine("Got twoLines: ");
+            Console.WriteLine("Line l1: "+genLine(d.l1));
+            Console.WriteLine("Line l2: " + genLine(d.l2));
+        }
+
+        public void handle(twoInts d)
+        {
+            Console.WriteLine("Got twoInts: ");
+            Console.WriteLine("a: "+d.a);
+            Console.WriteLine("b: "+d.b);
+        }
+
+        void theFirstInt.Handler.handle(int d)
+        {
+            Console.WriteLine("Got theFirstInt: "+d);
+        }
+
+        void theSecondInt.Handler.handle(int d)
+        {
+            Console.WriteLine("Got theSecondInt: "+d);
+        }
+
+        void doavoid.Handler.handle()
+        {
+            Console.WriteLine("Got a void.");
+        }
+
+        void intAndRef.Handler.handle(intAndRef d)
+        {
+            Console.WriteLine("Got intAndRef: "+d.x+" : "+d.reference);
+        }
+
+        static void Main(string[] args)
+        {
+            new Decoder(new FileStream(args[0], FileMode.Open));
+        }
+    }
+}
diff --git a/examples/user_types/ExampleEncoder.cs b/examples/user_types/ExampleEncoder.cs
index c2e2fa9..d9cfc77 100644
--- a/examples/user_types/ExampleEncoder.cs
+++ b/examples/user_types/ExampleEncoder.cs
@@ -1,85 +1,85 @@
-using System;
-using System.IO;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using se.lth.control.labcomm;
-
-namespace user_types
-{
-    public class Encoder
-    {
-        private EncoderChannel enc;
-        public Encoder(Stream stream)
-        {
-            enc = new EncoderChannel(stream);
-            twoLines.register(enc);
-        }
-
-        public void doEncode()
-        {
-            twoLines x = new twoLines();
-            line l1 = new line();
-            point p11 = new point();
-            coord c11x = new coord();
-            coord c11y = new coord();
-            c11x.val = 11;
-            c11y.val = 99;
-            p11.x = c11x;
-            p11.y = c11y;
-
-            l1.start = p11;
-
-            point p12 = new point();
-            coord c12x = new coord();
-            coord c12y = new coord();
-            c12x.val = 22;
-            c12y.val = 88;
-            p12.x = c12x;
-            p12.y = c12y;
-
-            l1.end = p12;
-
-            line l2 = new line();
-            point p21 = new point();
-            coord c21x = new coord();
-            coord c21y = new coord();
-            c21x.val = 17;
-            c21y.val = 42;
-            p21.x = c21x;
-            p21.y = c21y;
-
-            l2.start = p21;
-
-            point p22 = new point();
-            coord c22x = new coord();
-            coord c22y = new coord();
-            c22x.val = 13;
-            c22y.val = 37;
-            p22.x = c22x;
-            p22.y = c22y;
-
-            l2.end = p22;
-
-            foo f = new foo();
-            f.a = 10;
-            f.b = 20;
-            f.c = false;
-
-            x.l1 = l1;
-            x.l2 = l2;
-            x.f = f;
-
-            Console.WriteLine("Encoding theTwoLines");
-            twoLines.encode(enc, x);
-        }
-
-        static void Main(string[] args)
-        {
-            FileStream stream = new FileStream(args[0],FileMode.Create);
-            Encoder example = new Encoder(stream);
-            example.doEncode();
-            stream.Close();
-        }
-    }
-}
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using se.lth.control.labcomm2014;
+
+namespace user_types
+{
+    public class Encoder
+    {
+        private EncoderChannel enc;
+        public Encoder(Stream stream)
+        {
+            enc = new EncoderChannel(stream);
+            twoLines.register(enc);
+        }
+
+        public void doEncode()
+        {
+            twoLines x = new twoLines();
+            line l1 = new line();
+            point p11 = new point();
+            coord c11x = new coord();
+            coord c11y = new coord();
+            c11x.val = 11;
+            c11y.val = 99;
+            p11.x = c11x;
+            p11.y = c11y;
+
+            l1.start = p11;
+
+            point p12 = new point();
+            coord c12x = new coord();
+            coord c12y = new coord();
+            c12x.val = 22;
+            c12y.val = 88;
+            p12.x = c12x;
+            p12.y = c12y;
+
+            l1.end = p12;
+
+            line l2 = new line();
+            point p21 = new point();
+            coord c21x = new coord();
+            coord c21y = new coord();
+            c21x.val = 17;
+            c21y.val = 42;
+            p21.x = c21x;
+            p21.y = c21y;
+
+            l2.start = p21;
+
+            point p22 = new point();
+            coord c22x = new coord();
+            coord c22y = new coord();
+            c22x.val = 13;
+            c22y.val = 37;
+            p22.x = c22x;
+            p22.y = c22y;
+
+            l2.end = p22;
+
+            foo f = new foo();
+            f.a = 10;
+            f.b = 20;
+            f.c = false;
+
+            x.l1 = l1;
+            x.l2 = l2;
+            x.f = f;
+
+            Console.WriteLine("Encoding theTwoLines");
+            twoLines.encode(enc, x);
+        }
+
+        static void Main(string[] args)
+        {
+            FileStream stream = new FileStream(args[0],FileMode.Create);
+            Encoder example = new Encoder(stream);
+            example.doEncode();
+            stream.Close();
+        }
+    }
+}
diff --git a/examples/user_types/Makefile b/examples/user_types/Makefile
index 7603ffd..3edbeea 100644
--- a/examples/user_types/Makefile
+++ b/examples/user_types/Makefile
@@ -34,15 +34,15 @@ ${LCLJAR} :
 
 cleanbuild: clean build
 
-labcomm.dll:
-	ln -sf ../../lib/csharp/labcomm.dll $@
+labcomm2014.dll:
+	ln -sf ../../lib/csharp/labcomm2014.dll $@
 
-ExampleEncoder.exe: ExampleEncoder.cs gen/test.cs labcomm.dll Makefile
-	mcs -out:$@ $(filter %.cs, $^) -lib:../../lib/csharp/ -r:labcomm
+ExampleEncoder.exe: ExampleEncoder.cs gen/test.cs labcomm2014.dll Makefile
+	mcs -out:$@ $(filter %.cs, $^) -lib:../../lib/csharp/ -r:labcomm2014
 	chmod a+x $@
 
-ExampleDecoder.exe: ExampleDecoder.cs gen/test.cs labcomm.dll Makefile
-	mcs -out:$@ $(filter %.cs, $^) -lib:../../lib/csharp/ -r:labcomm
+ExampleDecoder.exe: ExampleDecoder.cs gen/test.cs labcomm2014.dll Makefile
+	mcs -out:$@ $(filter %.cs, $^) -lib:../../lib/csharp/ -r:labcomm2014
 	chmod a+x $@
 
 build : 
diff --git a/lib/csharp/.gitignore b/lib/csharp/.gitignore
index 7252dda..75dc324 100644
--- a/lib/csharp/.gitignore
+++ b/lib/csharp/.gitignore
@@ -1 +1 @@
-labcomm.dll
+labcomm2014.dll
diff --git a/lib/csharp/Makefile b/lib/csharp/Makefile
index 7dfb2de..c689902 100644
--- a/lib/csharp/Makefile
+++ b/lib/csharp/Makefile
@@ -11,9 +11,9 @@ MODULES=Constant\
 	SampleType 
 
 .PHONY: all
-all: labcomm.dll
+all: labcomm2014.dll
 
-labcomm.dll: $(MODULES:%=se/lth/control/labcomm/%.cs) Makefile
+labcomm2014.dll: $(MODULES:%=se/lth/control/labcomm2014/%.cs) Makefile
 	mcs -out:$@ -target:library $(filter %.cs, $^)
 
 .PHONY: test
@@ -24,4 +24,4 @@ clean:
 
 .PHONY: distclean
 distclean:
-	rm -f labcomm.dll
+	rm -f labcomm2014.dll
diff --git a/lib/csharp/se/lth/control/labcomm/Constant.cs b/lib/csharp/se/lth/control/labcomm2014/Constant.cs
similarity index 96%
rename from lib/csharp/se/lth/control/labcomm/Constant.cs
rename to lib/csharp/se/lth/control/labcomm2014/Constant.cs
index 3761544..19f18ad 100644
--- a/lib/csharp/se/lth/control/labcomm/Constant.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/Constant.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   public class Constant {
 
diff --git a/lib/csharp/se/lth/control/labcomm/Decoder.cs b/lib/csharp/se/lth/control/labcomm2014/Decoder.cs
similarity index 91%
rename from lib/csharp/se/lth/control/labcomm/Decoder.cs
rename to lib/csharp/se/lth/control/labcomm2014/Decoder.cs
index 4e8868f..ddc3b59 100644
--- a/lib/csharp/se/lth/control/labcomm/Decoder.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/Decoder.cs
@@ -1,6 +1,6 @@
 using System;
 
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   public interface Decoder {
 
diff --git a/lib/csharp/se/lth/control/labcomm/DecoderChannel.cs b/lib/csharp/se/lth/control/labcomm2014/DecoderChannel.cs
similarity index 99%
rename from lib/csharp/se/lth/control/labcomm/DecoderChannel.cs
rename to lib/csharp/se/lth/control/labcomm2014/DecoderChannel.cs
index 99e17fb..a56a604 100644
--- a/lib/csharp/se/lth/control/labcomm/DecoderChannel.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/DecoderChannel.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   using System;
   using System.IO;
diff --git a/lib/csharp/se/lth/control/labcomm/DecoderRegistry.cs b/lib/csharp/se/lth/control/labcomm2014/DecoderRegistry.cs
similarity index 98%
rename from lib/csharp/se/lth/control/labcomm/DecoderRegistry.cs
rename to lib/csharp/se/lth/control/labcomm2014/DecoderRegistry.cs
index 132e37b..bebcff2 100644
--- a/lib/csharp/se/lth/control/labcomm/DecoderRegistry.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/DecoderRegistry.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   using System;
   using System.Collections.Generic;
diff --git a/lib/csharp/se/lth/control/labcomm/Encoder.cs b/lib/csharp/se/lth/control/labcomm2014/Encoder.cs
similarity index 93%
rename from lib/csharp/se/lth/control/labcomm/Encoder.cs
rename to lib/csharp/se/lth/control/labcomm2014/Encoder.cs
index 1deb1b7..4aac7b3 100644
--- a/lib/csharp/se/lth/control/labcomm/Encoder.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/Encoder.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   using System;
 
diff --git a/lib/csharp/se/lth/control/labcomm/EncoderChannel.cs b/lib/csharp/se/lth/control/labcomm2014/EncoderChannel.cs
similarity index 98%
rename from lib/csharp/se/lth/control/labcomm/EncoderChannel.cs
rename to lib/csharp/se/lth/control/labcomm2014/EncoderChannel.cs
index 2f3da1c..20536e4 100644
--- a/lib/csharp/se/lth/control/labcomm/EncoderChannel.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/EncoderChannel.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   using System;
   using System.IO;
diff --git a/lib/csharp/se/lth/control/labcomm/EncoderRegistry.cs b/lib/csharp/se/lth/control/labcomm2014/EncoderRegistry.cs
similarity index 96%
rename from lib/csharp/se/lth/control/labcomm/EncoderRegistry.cs
rename to lib/csharp/se/lth/control/labcomm2014/EncoderRegistry.cs
index 9c40028..6c29929 100644
--- a/lib/csharp/se/lth/control/labcomm/EncoderRegistry.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/EncoderRegistry.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   using System;
   using System.Collections.Generic;
diff --git a/lib/csharp/se/lth/control/labcomm/Sample.cs b/lib/csharp/se/lth/control/labcomm2014/Sample.cs
similarity index 66%
rename from lib/csharp/se/lth/control/labcomm/Sample.cs
rename to lib/csharp/se/lth/control/labcomm2014/Sample.cs
index c9ea7fd..5162c93 100644
--- a/lib/csharp/se/lth/control/labcomm/Sample.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/Sample.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   public interface Sample {
 
diff --git a/lib/csharp/se/lth/control/labcomm/SampleDispatcher.cs b/lib/csharp/se/lth/control/labcomm2014/SampleDispatcher.cs
similarity index 85%
rename from lib/csharp/se/lth/control/labcomm/SampleDispatcher.cs
rename to lib/csharp/se/lth/control/labcomm2014/SampleDispatcher.cs
index 23d39ed..b7104d1 100644
--- a/lib/csharp/se/lth/control/labcomm/SampleDispatcher.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/SampleDispatcher.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   using System;
 
diff --git a/lib/csharp/se/lth/control/labcomm/SampleHandler.cs b/lib/csharp/se/lth/control/labcomm2014/SampleHandler.cs
similarity index 51%
rename from lib/csharp/se/lth/control/labcomm/SampleHandler.cs
rename to lib/csharp/se/lth/control/labcomm2014/SampleHandler.cs
index d30cd26..fa6e9a3 100644
--- a/lib/csharp/se/lth/control/labcomm/SampleHandler.cs
+++ b/lib/csharp/se/lth/control/labcomm2014/SampleHandler.cs
@@ -1,4 +1,4 @@
-namespace se.lth.control.labcomm {
+namespace se.lth.control.labcomm2014 {
 
   public interface SampleHandler {
   }
diff --git a/lib/csharp/se/lth/control/labcomm/SampleType.cs b/lib/csharp/se/lth/control/labcomm2014/SampleType.cs
similarity index 100%
rename from lib/csharp/se/lth/control/labcomm/SampleType.cs
rename to lib/csharp/se/lth/control/labcomm2014/SampleType.cs
diff --git a/test/Makefile b/test/Makefile
index 106810b..57e8684 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,5 +1,5 @@
 TESTS=basic simple nested ref
-LABCOMM_JAR=../compiler/labcomm_compiler.jar
+LABCOMM_JAR=../compiler/labcomm2014_compiler.jar
 LABCOMM=java -jar $(LABCOMM_JAR)
 
 include ../lib/c/os_compat.mk
@@ -78,13 +78,13 @@ gen/%/cs_relay.cs:  gen/%/typeinfo relay_gen_cs.py Makefile
 	./relay_gen_cs.py $< > $@
 
 .PRECIOUS: gen/%/labcomm.dll
-gen/%/labcomm.dll:
-	ln -s ../../../lib/csharp/labcomm.dll $@
+gen/%/labcomm2014.dll:
+	ln -s ../../../lib/csharp/labcomm2014.dll $@
 
 .PRECIOUS: gen/%/cs_relay.exe
 gen/%/cs_relay.exe: gen/%/cs_relay.cs gen/%/cs_code.cs \
-		    gen/%/labcomm.dll Makefile
-	mcs -out:$@ $(filter %.cs, $^) -lib:../lib/csharp/ -r:labcomm
+		    gen/%/labcomm2014.dll Makefile
+	mcs -out:$@ $(filter %.cs, $^) -lib:../lib/csharp/ -r:labcomm2014
 
 # Java relay test rules
 .PRECIOUS: gen/%/java_code
diff --git a/test/relay_gen_cs.py b/test/relay_gen_cs.py
index 8cd9043..e5698aa 100755
--- a/test/relay_gen_cs.py
+++ b/test/relay_gen_cs.py
@@ -30,7 +30,7 @@ if __name__ == '__main__':
     result.extend(split_match('^[^|]*\|(.*)$', """
       |using System;
       |using System.IO;
-      |using se.lth.control.labcomm;
+      |using se.lth.control.labcomm2014;
       |
       |public class cs_relay :
     """))
-- 
GitLab