Merge pull request #3028 from lateralusX/jlorenss/threadpool_warning
[mono.git] / mcs / class / System.Web.Services / Makefile
index d809d8c83173d3d01559d6281f593e8a37937473..0170bcddc5c8f4348d94161cd400df69dd3f0113 100644 (file)
@@ -3,32 +3,32 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Web.Services.dll
-MOBILE := $(filter monotouch monodroid xammac mobile mobile_static, $(PROFILE))
-ifdef MOBILE
+ifdef MOBILE_PROFILE
 LIB_REFS = System System.Xml
 LIB_MCS_FLAGS = \
        -nowarn:649 -nowarn:169                 \
-       -r:$(corlib)                            \
-       -r:System.dll                           \
-       -r:System.Xml.dll                       \
        -resource:System.Web.Services.Description/wsdl-1.1.xsd,wsdl-1.1.xsd \
        -resource:System.Web.Services.Description/wsdl-1.1-soap.xsd,wsdl-1.1-soap.xsd \
        -resource:System.Web.Services.Description/web-reference.xsd,web-reference.xsd
 else
-LIB_REFS = System System.EnterpriseServices System.Xml System.Web
-LIB_MCS_FLAGS = \
-       -nowarn:649 -nowarn:169                 \
-       -r:$(corlib)                            \
-       -r:System.dll                           \
-       -r:System.EnterpriseServices.dll        \
-       -r:System.Xml.dll                       \
-       -r:System.Web.dll
+LIB_REFS = System System.EnterpriseServices System.Xml System.Data
+LIB_MCS_FLAGS = -nowarn:168,169,219,414,612,649 -d:MONO_BROKEN_CONFIGURATION_DLL
+
+ifndef NO_SYSTEM_WEB_DEPENDENCY
+plainweb = $(the_libdir_base)plainweb/System.Web.dll
+system_web_deps = $(plainweb)
+LIB_REFS += plainweb/System.Web
+endif
 
-plainweb_dir = $(the_libdir_base)plainweb
-LOCAL_MCS_FLAGS = -lib:$(plainweb_dir)
+ifndef NO_SYSTEM_DESIGN_DEPENDENCY
+plaindesign = $(the_libdir_base)plaindesign/System.Design.dll
+system_design_deps = $(plaindesign)
+LIB_REFS += plaindesign/System.Design
+endif
 
-plainweb = $(plainweb_dir)/System.Web.dll
-system_web_services_deps = $(plainweb)
+ifndef NO_SYSTEM_DIRECTORY_SERVICES_DEPENDENCY
+LIB_REFS += System.DirectoryServices
+endif
 
 LIB_REFS += System.Configuration
 LIB_MCS_FLAGS += \
@@ -39,6 +39,14 @@ endif
 
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
 
+ifndef NO_THREAD_ABORT
+TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
+endif
+
+ifndef NO_THREAD_SUSPEND_RESUME
+TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
+endif
+
 EXTRA_DISTFILES = \
        System.Web.Services.Description/web-reference.xsd       \
        System.Web.Services.Description/wsdl-1.1.xsd            \
@@ -48,9 +56,15 @@ EXTRA_DISTFILES = \
 
 include ../../build/library.make
 
-$(the_libdir_base)$(LIBRARY): $(system_web_services_deps)
+$(the_libdir_base)$(LIBRARY): $(system_web_deps) $(system_design_deps) t
+
+t:
+       echo $(plaindesign)
 
 $(plainweb):
        (cd ../System.Web; $(MAKE) $@)
 
-.NOTPARALLEL: $(plainweb)
+$(plaindesign):
+       (cd ../System.Design; $(MAKE) $@)
+
+.NOTPARALLEL: $(plainweb) $(plaindesign)