Merge pull request #900 from Blewzman/FixAggregateExceptionGetBaseException
[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 LIB_MCS_FLAGS = -d:INSIDE_SYSCORE -d:LIBC /r:System.dll -unsafe
8
9 INTERPRETER_DEP := Mono.Dynamic.Interpreter.dll
10 INTERPRETER_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(INTERPRETER_DEP))
11
12 ifneq (2.1, $(FRAMEWORK_VERSION))
13 LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
14 endif
15
16 ifeq (monodroid, $(PROFILE))
17 LIB_MCS_FLAGS += -d:FEATURE_CORE_DLR,FEATURE_REFEMIT,ANDROID
18 endif
19
20 ifeq (xammac, $(PROFILE))
21 LIB_MCS_FLAGS += -d:FEATURE_CORE_DLR,FEATURE_REFEMIT
22 endif
23
24 ifeq (monotouch, $(PROFILE))
25 LIBRARY_USE_INTERMEDIATE_FILE = yes
26
27 CYCLIC_DEPS := $(INTERPRETER_DEP)
28 CYCLIC_DEP_FILES := $(INTERPRETER_DEP_FILE)
29 LIB_MCS_FLAGS += -d:FEATURE_CORE_DLR
30
31 ifdef CYCLIC_DEP_FILES
32 LIB_MCS_FLAGS += -d:MONO_INTERPRETER -r:$(INTERPRETER_DEP)
33 else
34 NO_SIGN_ASSEMBLY = yes
35 NO_INSTALL = yes
36 endif
37
38 endif
39
40 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
41 LIB_MCS_FLAGS += -d:FEATURE_CORE_DLR,FEATURE_REFEMIT,FEATURE_PDBEMIT
42 endif
43
44 ifneq (basic, $(PROFILE))
45 CLR_PROFILE := $(filter 2.0 4.0 4.5, $(FRAMEWORK_VERSION))
46 endif
47
48 ifdef CLR_PROFILE
49 LIB_MCS_FLAGS += -r:Mono.Posix.dll
50 endif
51
52 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
53
54 include ../../build/library.make
55
56 ifdef CYCLIC_DEP_FILES
57 TEST_HARNESS_EXCLUDES += -exclude:NotWorkingInterpreter
58 $(build_lib): $(INTERPRETER_DEP_FILE)
59 endif
60