Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. ifneq (2.1, $(FRAMEWORK_VERSION))
  31. LIB_REFS += Mono.Posix
  32. endif
  33. endif
  34. CC_PROFILE := $(filter monotouch% xammac, $(PROFILE))
  35. ifdef CC_PROFILE
  36. BUILT_SOURCES = \
  37. ../corlib/CommonCrypto/AesManaged.g.cs \
  38. ../corlib/CommonCrypto/AesCryptoServiceProvider.g.cs
  39. ../corlib/CommonCrypto/%.g.cs:
  40. $(MAKE) -C ../corlib/CommonCrypto
  41. endif
  42. TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
  43. include ../../build/library.make
  44. TEST_HARNESS_EXCLUDES += $(extra_test_flags)