[System*] Throw a PlatformNotSupported exception when using the managed networking...
[mono.git] / mcs / class / System.IdentityModel / Makefile
index 956c2a72ec3b100eba721ef784163c568c22e111..29bb7acd6ee63617f77795f248bccf18f87da3ff 100644 (file)
@@ -2,22 +2,32 @@ thisdir = class/System.IdentityModel
 SUBDIRS = 
 include ../../build/rules.make
 
-ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
-OTHER_LIB_MCS_FLAGS = -r:System.Web.ApplicationServices.dll
+ifndef NO_MONO_SECURITY
+MONO_SECURITY=Mono.Security
 endif
 
 LIBRARY = System.IdentityModel.dll
+LIB_REFS = System System.Xml System.Security $(MONO_SECURITY) System.Runtime.Serialization
 LIB_MCS_FLAGS = \
                /d:NET_3_0      \
-               /r:System.dll \
-               /r:System.Xml.dll \
-               /r:System.Security.dll \
-               /r:System.Web.dll \
-               /r:System.Configuration.dll \
-               /r:Mono.Security.dll \
-               /r:System.Runtime.Serialization.dll \
                $(OTHER_LIB_MCS_FLAGS)
 
+ifneq (2.1, $(FRAMEWORK_VERSION))
+LIB_REFS += System.Configuration
+endif
+
+ifndef NO_SYSTEM_WEB_DEPENDENCY
+ifneq (2.1, $(FRAMEWORK_VERSION))
+LIB_REFS += System.Web
+endif
+endif
+
+ifndef NO_SYSTEM_WEB_APPSERVICES_DEPENDENCY
+ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
+LIB_REFS += System.Web.ApplicationServices
+endif
+endif
+
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = \
@@ -26,12 +36,4 @@ EXTRA_DISTFILES = \
        Test/Resources/test.pfx \
        Test/Resources/test2.pfx
 
-VALID_PROFILE := $(filter net_4_0 net_4_5, $(PROFILE))
-ifndef VALID_PROFILE
-LIBRARY_NAME = dummy-System.IdentityModel.dll
-NO_INSTALL = yes
-NO_SIGN_ASSEMBLY = yes
-NO_TEST = yes
-endif
-
 include ../../build/library.make