Merge pull request #409 from Alkarex/patch-1
[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 ifneq (2.1, $(FRAMEWORK_VERSION))
10 LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
11 endif
12
13 ifeq (monodroid, $(PROFILE))
14 LIB_MCS_FLAGS += -d:FEATURE_CORE_DLR,FEATURE_REFEMIT,ANDROID
15 endif
16
17 ifeq (monotouch, $(PROFILE))
18 LIB_MCS_FLAGS += -d:FULL_AOT_RUNTIME
19 endif
20
21 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
22 LIB_MCS_FLAGS += -d:FEATURE_CORE_DLR,FEATURE_REFEMIT,FEATURE_PDBEMIT
23 endif
24
25 ifneq (basic, $(PROFILE))
26 CLR_PROFILE := $(filter 2.0 4.0 4.5, $(FRAMEWORK_VERSION))
27 endif
28
29 ifdef CLR_PROFILE
30 LIB_MCS_FLAGS += -r:Mono.Posix.dll
31 endif
32
33 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
34
35 include ../../build/library.make
36