Merge pull request #2768 from lambdageek/dev/monoerror-cominterop
[mono.git] / mcs / class / System.Runtime.Remoting / Makefile
index d4b1d05102b0405f0c6bd4c5ac6bb71fc8f7378e..eeb73d0894eefe4d3fa471d20c063fb544c3abad 100644 (file)
@@ -4,11 +4,18 @@ include ../../build/rules.make
 
 LIBRARY = System.Runtime.Remoting.dll
 
-LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Web.dll \
-       /r:System.Xml.dll /r:System.Runtime.Serialization.Formatters.Soap.dll
+LIB_REFS = System System.Xml System.Runtime.Serialization.Formatters.Soap
+LIB_MCS_FLAGS = /r:$(corlib)
 
-TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /r:System.Runtime.Remoting.dll
+ifndef NO_SYSTEM_WEB_DEPENDENCY
+LIB_REFS += System.Web
+endif
+
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618 /r:System.Runtime.Remoting.dll
+
+TEST_MONO_PATH = .
 
 EXTRA_DISTFILES = Test/corba-example.cs Test/simple-example.cs
 
 include ../../build/library.make
+