2010-01-04 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / class / System.ServiceModel / Makefile
index 9b22de08c8c2c9a98adb72c541b5e1baf2f6811e..88a4aff090fec2ee175cb8e96d25f98c4a5eb271 100755 (executable)
@@ -30,7 +30,7 @@ LIB_MCS_FLAGS += /d:NET_3_0   \
                        /r:Mono.Security.dll
 endif
 
-ifeq (2.1, $(FRAMEWORK_VERSION))
+ifeq (net_2_1_raw, $(PROFILE))
 LIB_MCS_FLAGS += /r:System.Net
 endif
 
@@ -47,7 +47,7 @@ EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
 # Useful for debugging under Visual Studio 2005
 # NO_SIGN_ASSEMBLY = yes
 
-VALID_PROFILE := $(filter net_2_0 net_2_1_raw, $(PROFILE))
+VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ServiceModel.dll
 NO_INSTALL = yes