Merge pull request #2802 from BrzVlad/feature-evacuation-opt2
[mono.git] / mcs / class / System.IdentityModel / Makefile
index 320f21c9dae6e108cb9202a38ab9cdc13df7a25f..5a8a72c4c50e416866c1a7670beb50a626555741 100644 (file)
@@ -2,22 +2,23 @@ thisdir = class/System.IdentityModel
 SUBDIRS = 
 include ../../build/rules.make
 
-ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
-OTHER_LIB_MCS_FLAGS = -r:System.Web.ApplicationServices.dll
-endif
-
 LIBRARY = System.IdentityModel.dll
+LIB_REFS = System System.Xml System.Security System.Configuration 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)
 
+ifndef NO_SYSTEM_WEB_DEPENDENCY
+LIB_REFS += System.Web
+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 +27,4 @@ EXTRA_DISTFILES = \
        Test/Resources/test.pfx \
        Test/Resources/test2.pfx
 
-VALID_PROFILE := $(filter net_2_0 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