Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / class / System.Reactive.Core / Makefile
1 thisdir = class/System.Reactive.Core
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Reactive.Core.dll
6 LIB_MCS_FLAGS = \
7                 @more_build_args \
8                 -r:System.dll \
9                 -r:System.Core.dll \
10                 -r:System.Reactive.Interfaces.dll
11
12 ifeq (true, $(GENERATE_RESOURCES))
13 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
14 endif
15
16 RESX_RESOURCES = \
17         Strings_Core.resources
18
19 CLEAN_FILES += $(RESX_RESOURCES)
20
21 RESOURCES = $(RESX_RESOURCES)
22
23 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
24
25 ifeq (2.1, $(FRAMEWORK_VERSION))
26 LIB_MCS_FLAGS += -d:NO_TASK_DELAY
27 endif
28
29 NET_4_5 := $(filter 4.5, $(FRAMEWORK_VERSION))
30 ifdef NET_4_5
31 LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC
32 endif
33
34 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
35
36 EXTRA_DISTFILES = more_build_args $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)
37
38 VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
39 ifndef VALID_PROFILE
40 LIBRARY_NAME = dummy-System.System.Reactive.Core.dll
41 NO_SIGN_ASSEMBLY = yes
42 endif
43
44 NO_INSTALL = yes
45 NO_TEST = yes
46
47 include ../../build/library.make
48
49 $(the_lib): $(RESOURCES)
50
51 $(RESX_RESOURCES): %.resources: %.resx
52         $(RESGEN) $< || cp $@.prebuilt $@
53
54 $(PREBUILT): %.prebuilt: %
55         cp $* $@
56
57 dist-default: $(PREBUILT)
58