Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. thisdir = class/System.Web
  2. SUBDIRS = Test
  3. include ../../build/rules.make
  4. ifeq (net_2_0, $(PROFILE))
  5. # Because System.Web.dll and System.Web.Services.dll have a cyclic dependency, we need a two-pass build.
  6. # 1st pass - build System.Web.dll without System.Web.Services.dll reference
  7. # 2nd pass - build System.Web.dll with System.Web.Services.dll reference
  8. WEBSERVICES_DEP := System.Web.Services.dll
  9. WEBSERVICES_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(WEBSERVICES_DEP))
  10. CYCLIC_DEPS := $(WEBSERVICES_DEP)
  11. CYCLIC_DEP_FILES := $(WEBSERVICES_DEP_FILE)
  12. endif
  13. RESOURCE_FILES_1= \
  14. resources/WebUIValidation.js
  15. RESOURCE_FILES_2 = \
  16. resources/arrow_minus.gif \
  17. resources/arrow_noexpand.gif \
  18. resources/arrow_plus.gif \
  19. resources/arrow_up.gif \
  20. resources/arrow_down.gif \
  21. resources/box_full.gif \
  22. resources/box_empty.gif \
  23. resources/box_minus.gif \
  24. resources/box_noexpand.gif \
  25. resources/box_plus.gif \
  26. resources/contact.gif \
  27. resources/dot_empty.gif \
  28. resources/dot_full.gif \
  29. resources/dots.gif \
  30. resources/inbox.gif \
  31. resources/star_empty.gif \
  32. resources/star_full.gif \
  33. resources/warning.gif \
  34. resources/TreeView_noexpand.gif \
  35. resources/TreeView_dash.gif \
  36. resources/TreeView_dashminus.gif \
  37. resources/TreeView_dashplus.gif \
  38. resources/TreeView_i.gif \
  39. resources/TreeView_l.gif \
  40. resources/TreeView_lminus.gif \
  41. resources/TreeView_lplus.gif \
  42. resources/TreeView_minus.gif \
  43. resources/TreeView_plus.gif \
  44. resources/TreeView_r.gif \
  45. resources/TreeView_rminus.gif \
  46. resources/TreeView_rplus.gif \
  47. resources/TreeView_t.gif \
  48. resources/TreeView_tminus.gif \
  49. resources/TreeView_tplus.gif \
  50. resources/callback.js \
  51. resources/webform.js \
  52. System.Web.UI.WebControls/GridView.js \
  53. System.Web.UI.WebControls/TreeView.js \
  54. System.Web.UI.WebControls/Menu.js
  55. OTHER_RES = $(RESOURCE_FILES_1)
  56. ifeq (net_2_0, $(PROFILE))
  57. OTHER_RES += $(RESOURCE_FILES_2)
  58. OTHER_LIB_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_2_0
  59. endif
  60. LIBRARY = System.Web.dll
  61. LIB_MCS_FLAGS = \
  62. -unsafe \
  63. -nowarn:612,649 \
  64. -r:$(corlib) \
  65. -r:System.dll \
  66. -r:System.Drawing.dll \
  67. -r:System.Data.dll \
  68. -r:System.Xml.dll \
  69. -r:System.EnterpriseServices.dll \
  70. $(OTHER_LIB_MCS_FLAGS) \
  71. $(OTHER_RES:%=/resource:%)
  72. ifneq ($(CYCLIC_DEPS:%=../lib/$(PROFILE)/%), $(CYCLIC_DEP_FILES))
  73. NO_SIGN_ASSEMBLY = yes
  74. NO_INSTALL = yes
  75. all-local: echo-warning
  76. .PHONY: echo-warning
  77. ifeq (, $(strip $(CYCLIC_DEP_FILES)))
  78. echo-warning:
  79. @echo "** Warning: System.Web.dll built without parts that depend on: $(CYCLIC_DEPS)"
  80. endif
  81. endif
  82. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:219 -nowarn:169
  83. EXTRA_DISTFILES = $(RESOURCE_FILES_2) $(RESOURCE_FILES_1)
  84. include ../../build/library.make
  85. ifdef WEBSERVICES_DEP_FILE
  86. LIB_MCS_FLAGS += /define:WEBSERVICES_DEP /r:$(WEBSERVICES_DEP)
  87. $(the_lib): $(WEBSERVICES_DEP_FILE)
  88. endif