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