Merge pull request #2799 from BrzVlad/fix-conc-card-clean
[mono.git] / mcs / class / System.Runtime.Remoting / Makefile
index 344d5669236655ba19abb49663689453c3d71af9..eeb73d0894eefe4d3fa471d20c063fb544c3abad 100644 (file)
@@ -4,9 +4,13 @@ include ../../build/rules.make
 
 LIBRARY = System.Runtime.Remoting.dll
 
-LIB_REFS = System System.Web System.Xml System.Runtime.Serialization.Formatters.Soap
+LIB_REFS = System System.Xml System.Runtime.Serialization.Formatters.Soap
 LIB_MCS_FLAGS = /r:$(corlib)
 
+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 = .