Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
  11. OTHER_LIB_MCS_FLAGS = -r:System.Configuration.dll \
  12. -r:System.Transactions.dll
  13. endif
  14. LIBRARY = System.Data.dll
  15. LIB_MCS_FLAGS = \
  16. -nowarn:649 \
  17. -unsafe \
  18. -r:$(corlib) \
  19. -r:$(system) \
  20. -r:System.Xml.dll \
  21. ifeq (net_1_1_java, $(PROFILE))
  22. OTHER_RES = $(RESOURCE_FILES)
  23. LIB_MCS_FLAGS += \
  24. -r:rt.dll \
  25. -r:J2SE.Helpers.dll \
  26. $(OTHER_LIB_MCS_FLAGS)
  27. else
  28. MOBILE := $(filter monotouch monodroid mobile, $(PROFILE))
  29. ifdef MOBILE
  30. LIB_MCS_FLAGS += \
  31. -r:Mono.Data.Tds.dll \
  32. -r:System.Transactions.dll
  33. else
  34. LIB_MCS_FLAGS += \
  35. -r:System.EnterpriseServices.dll \
  36. -r:Mono.Data.Tds.dll \
  37. $(OTHER_LIB_MCS_FLAGS)
  38. endif
  39. endif
  40. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:System.Core.dll -r:Mono.Data.Sqlite.dll -nowarn:618,169,612,219,168
  41. TEST_MONO_PATH = .
  42. EXTRA_DISTFILES = \
  43. TODO \
  44. $(wildcard Test/System.Data/*.xml) \
  45. $(wildcard Test/System.Data/*.xsd) \
  46. $(wildcard Test/System.Xml/*.xml) \
  47. $(wildcard Test/System.Xml/*.xsd) \
  48. Test/System.Data/schemas/ChangeLog \
  49. $(wildcard Test/System.Data/schemas/*.xsd) \
  50. Mono.Data.SqlExpressions/Parser.jay \
  51. app_test_net_2_0.config \
  52. app_test_net_4_5.config \
  53. Test/System.Data/binserialize/*.bin \
  54. SqliteTest.db
  55. BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
  56. Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
  57. $(topdir)/jay/jay -vct < $(topdir)/jay/skeleton.cs $(CURDIR)/$< >$@
  58. rm -f y.output
  59. include ../../build/library.make
  60. $(test_lib): $(test_lib).config
  61. $(test_lib).config: app_test_$(PROFILE).config
  62. cp $< $@