Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. MOBILE := $(filter monotouch monodroid xammac mobile mobile_static, $(PROFILE))
  22. ifdef MOBILE
  23. LIB_MCS_FLAGS += \
  24. -r:Mono.Data.Tds.dll \
  25. -r:System.Transactions.dll
  26. else
  27. LIB_MCS_FLAGS += \
  28. -r:System.EnterpriseServices.dll \
  29. -r:Mono.Data.Tds.dll \
  30. $(OTHER_LIB_MCS_FLAGS)
  31. endif
  32. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:System.Core.dll -r:Mono.Data.Sqlite.dll -nowarn:618,169,612,219,168
  33. TEST_MONO_PATH = .
  34. EXTRA_DISTFILES = \
  35. TODO \
  36. $(wildcard Test/System.Data/*.xml) \
  37. $(wildcard Test/System.Data/*.xsd) \
  38. $(wildcard Test/System.Xml/*.xml) \
  39. $(wildcard Test/System.Xml/*.xsd) \
  40. Test/System.Data/schemas/ChangeLog \
  41. $(wildcard Test/System.Data/schemas/*.xsd) \
  42. Mono.Data.SqlExpressions/Parser.jay \
  43. app_test_net_2_0.config \
  44. app_test_net_4_5.config \
  45. Test/System.Data/binserialize/*.bin \
  46. SqliteTest.db
  47. BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
  48. Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
  49. $(topdir)/jay/jay -vct < $(topdir)/jay/skeleton.cs $(CURDIR)/$< >$@
  50. rm -f y.output
  51. include ../../build/library.make
  52. $(test_lib): $(test_lib).config
  53. $(test_lib).config: app_test_$(PROFILE).config
  54. cp $< $@