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