Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. thisdir = class/System.Core
  2. SUBDIRS =
  3. include ../../build/rules.make
  4. LIBRARY = System.Core.dll
  5. ifeq ($(PROFILE),build)
  6. CSC_RUNTIME_FLAGS=--profile=aot:output=$(topdir)/class/lib/$(PROFILE)/csc.$(LIBRARY).aotprofile
  7. endif
  8. REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,PFX_LEGACY_3_5,FEATURE_NETCORE
  9. LIB_REFS = System
  10. LIB_MCS_FLAGS = $(REFERENCE_SOURCES_FLAGS) -d:INSIDE_SYSCORE -d:LIBC -unsafe -nowarn:436
  11. TXT_RESOURCE_STRINGS = ../referencesource/System.Core/System.Core.txt
  12. RESX_RESOURCE_STRING = \
  13. ../../../external/corefx/src/System.Linq.Expressions/src/Resources/Strings.resx \
  14. ../../../external/corefx/src/System.Linq/src/Resources/Strings.resx \
  15. ../../../external/corefx/src/System.Linq.Parallel/src/Resources/Strings.resx \
  16. ../../../external/corefx/src/System.Linq.Queryable/src/Resources/Strings.resx
  17. ifneq (2.1, $(FRAMEWORK_VERSION))
  18. LIB_MCS_FLAGS += -d:NET_3_5
  19. endif
  20. ifdef AOT_FRIENDLY_PROFILE
  21. extra_test_flags := -exclude:NotWorkingInterpreter
  22. LIB_MCS_FLAGS += -d:NO_FEATURE_STATIC_DELEGATE,FEATURE_MAKE_RUN_METHODS
  23. else
  24. LIB_MCS_FLAGS += -d:FEATURE_COMPILE,FEATURE_COMPILE_TO_METHODBUILDER,FEATURE_PDB_GENERATOR
  25. endif
  26. ifeq (monotouch_runtime, $(PROFILE))
  27. LIB_MCS_FLAGS += -d:FULL_AOT_RUNTIME
  28. endif
  29. ifneq (basic, $(PROFILE))
  30. CLR_PROFILE := $(filter 2.0 4.0 4.5, $(FRAMEWORK_VERSION))
  31. endif
  32. ifdef CLR_PROFILE
  33. LIB_REFS += Mono.Posix
  34. endif
  35. CC_PROFILE := $(filter monotouch% xammac, $(PROFILE))
  36. ifdef CC_PROFILE
  37. BUILT_SOURCES = \
  38. ../corlib/CommonCrypto/AesManaged.g.cs \
  39. ../corlib/CommonCrypto/AesCryptoServiceProvider.g.cs
  40. ../corlib/CommonCrypto/%.g.cs:
  41. $(MAKE) -C ../corlib/CommonCrypto
  42. endif
  43. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
  44. include ../../build/library.make
  45. TEST_HARNESS_EXCLUDES += $(extra_test_flags)