Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. thisdir = class/System.ServiceModel
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. RESOURCE_FILES = \
  5. resources/WS-Addressing.schema \
  6. resources/ws-addr.xsd
  7. LIBRARY = System.ServiceModel.dll
  8. LIB_REFS = System System.Xml System.Core System.Runtime.Serialization
  9. LIB_MCS_FLAGS = \
  10. /nowarn:414,169,67,3005,436,219,618 \
  11. /unsafe \
  12. /d:TRACE \
  13. $(RESOURCE_FILES:%=/resource:%)
  14. ifdef XAMMAC_4_5
  15. LIB_REFS += System.ServiceModel.Internals
  16. endif
  17. ifneq (2.1, $(FRAMEWORK_VERSION))
  18. LIB_REFS += System.Configuration System.Data System.Security System.IdentityModel System.IdentityModel.Selectors System.Transactions System.Messaging System.Web.Services Mono.Security
  19. LIB_MCS_FLAGS += /d:NET_3_0
  20. ifndef NO_SYSTEM_WEB_DEPENDENCY
  21. LIB_REFS += System.Web
  22. endif
  23. ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
  24. ifndef NO_SYSTEM_SERVICEMODEL_ACTIVATION_DEPENDENCY
  25. activation = $(the_libdir_base)System.ServiceModel.Activation.dll
  26. servicemodel_deps = $(activation)
  27. ifneq (plainservice/,$(intermediate))
  28. LIB_MCS_FLAGS += -define:HAS_ACTIVATION -r:System.ServiceModel.Activation.dll
  29. endif
  30. endif # NO_SYSTEM_SERVICEMODEL_ACTIVATION_DEPENDENCY
  31. ifndef NO_SYSTEM_WEB_APPSERVICES_DEPENDENCY
  32. LIB_REFS += System.Web.ApplicationServices
  33. endif
  34. endif # (4, $(FRAMEWORK_VERSION_MAJOR))
  35. endif # (2.1, $(FRAMEWORK_VERSION))
  36. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
  37. TEST_EXTRA_FILES = \
  38. System.ServiceModel_test_net_3_0.dll.config \
  39. Test/config/* \
  40. Test/Resources/* \
  41. Test/XmlFiles/* \
  42. Test/System.ServiceModel.Channels/soap-fault*.xml \
  43. Test/System.ServiceModel.Channels/binary-message.raw \
  44. Test/System.ServiceModel.Description/dump.xml \
  45. Test/MetadataTests/Resources/*
  46. EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
  47. # Useful for debugging under Visual Studio 2005
  48. # NO_SIGN_ASSEMBLY = yes
  49. VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
  50. ifndef VALID_PROFILE
  51. LIBRARY_NAME = dummy-System.ServiceModel.dll
  52. NO_INSTALL = yes
  53. NO_SIGN_ASSEMBLY = yes
  54. NO_TEST = yes
  55. endif
  56. include ../../build/library.make
  57. $(the_libdir_base)System.ServiceModel.dll: $(servicemodel_deps)
  58. $(activation):
  59. (cd ../System.ServiceModel.Activation; $(MAKE) $@)
  60. ifneq (plainservice/,$(intermediate))
  61. $(the_libdir_base)plainservice/System.ServiceModel.dll:
  62. $(MAKE) intermediate=plainservice/ $(the_libdir_base)plainservice/System.ServiceModel.dll
  63. endif
  64. .NOTPARALLEL: $(servicemodel_deps)
  65. CLEAN_FILES = $(the_libdir_base)plainservice/System.ServiceModel.dll
  66. ifndef intermediate
  67. csproj-local:
  68. $(MAKE) csproj-local intermediate=plainservice/
  69. endif