Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. thisdir = class/System.Data
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. # I have *no idea* why I need to do this.
  5. ifeq ($(PROFILE),atomic)
  6. system = System.dll
  7. else
  8. system = $(topdir)/class/lib/$(PROFILE)/System.dll
  9. endif
  10. ifeq (net_2_0, $(PROFILE))
  11. OTHER_LIB_MCS_FLAGS = -r:System.Configuration.dll
  12. endif
  13. LIBRARY = System.Data.dll
  14. LIB_MCS_FLAGS = \
  15. -nowarn:649 -nowarn:169 -nowarn:219 -nowarn:168 -nowarn:1595 \
  16. -unsafe \
  17. -r:$(corlib) \
  18. -r:$(system) \
  19. -r:System.Xml.dll \
  20. ifeq (net_1_1_java, $(PROFILE))
  21. OTHER_RES = $(RESOURCE_FILES)
  22. LIB_MCS_FLAGS += \
  23. -r:rt.dll \
  24. -r:J2SE.Helpers.dll \
  25. $(OTHER_LIB_MCS_FLAGS) \
  26. $(RESX_RES:%=/res:%)
  27. OLEDBSTRINGS = System.Data.ProviderBase.jvm/System.Data.System.Data.ProviderBase.jvm.OleDbStrings.resources
  28. SQLCLIENTSTRINGS = System.Data.ProviderBase.jvm/System.Data.System.Data.ProviderBase.jvm.SqlClientStrings.resources
  29. SQLCOMMAND = System.Data.SqlClient.jvm/System.Data.SqlClient.SqlCommand.resources
  30. SQLCONNECTION = System.Data.SqlClient.jvm/System.Data.SqlClient.SqlConnection.resources
  31. RESX_RES = \
  32. $(OLEDBSTRINGS) \
  33. $(SQLCLIENTSTRINGS) \
  34. $(SQLCOMMAND) \
  35. $(SQLCONNECTION)
  36. else
  37. LIB_MCS_FLAGS += \
  38. -r:System.EnterpriseServices.dll \
  39. -r:Mono.Data.Tds.dll \
  40. $(OTHER_LIB_MCS_FLAGS)
  41. endif
  42. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
  43. EXTRA_DISTFILES = \
  44. TODO \
  45. Test/System.Data/region.xml \
  46. Test/System.Data/store.xsd \
  47. Test/System.Data/own_schema.xsd \
  48. Test/System.Xml/2books.xml \
  49. Test/System.Xml/region.xml \
  50. Test/System.Xml/region.xsd \
  51. Test/System.Xml/store.xsd \
  52. Mono.Data.SqlExpressions/Parser.jay \
  53. app_test_2.0.config
  54. BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
  55. Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
  56. $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
  57. include ../../build/library.make
  58. $(the_lib) : $(OLEDBSTRINGS) $(SQLCLIENTSTRINGS) $(SQLCOMMAND) $(SQLCONNECTION)
  59. $(OLEDBSTRINGS) : System.Data.ProviderBase.jvm/OleDbStrings.resx
  60. $(RESGEN) $< $@
  61. $(SQLCLIENTSTRINGS) : System.Data.ProviderBase.jvm/SqlClientStrings.resx
  62. $(RESGEN) $< $@
  63. $(SQLCOMMAND) : System.Data.SqlClient.jvm/SqlCommand.resx
  64. $(RESGEN) $< $@
  65. $(SQLCONNECTION) : System.Data.SqlClient.jvm/SqlConnection.resx
  66. $(RESGEN) $< $@
  67. ifeq (net_2_0, $(PROFILE))
  68. $(test_lib): $(test_lib).config
  69. $(test_lib).config: app_test_2.0.config
  70. cp $< $@
  71. endif