Flush (work in progress)
[mono.git] / mcs / class / Microsoft.Build.Engine / Makefile
1 thisdir = class/Microsoft.Build.Engine
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = Microsoft.Build.Engine.dll
6
7 ifeq (1.0, $(FRAMEWORK_VERSION))
8 LIBRARY_NAME = dummy-Microsoft.Build.Engine.dll
9 NO_INSTALL = yes
10 NO_TEST = yes
11 NO_SIGN_ASSEMBLY = yes
12 endif
13
14 ifeq (3.5, $(FRAMEWORK_VERSION))
15 NAME_SUFFIX = .v3.5
16 else
17 ifeq (4.0, $(FRAMEWORK_VERSION))
18 NAME_SUFFIX = .v4.0
19 endif
20 endif
21
22 LIB_MCS_FLAGS = \
23         /r:$(corlib)                            \
24         /r:System.dll                           \
25         /r:System.Core.dll              \
26         /r:System.Xml.dll                       \
27         /r:Microsoft.Build.Framework.dll        \
28         /r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll
29
30 TEST_MCS_FLAGS = \
31         /r:Microsoft.Build.Framework.dll        \
32         /r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll
33
34 EXTRA_DISTFILES = \\r
35         Test/resources/TestTasks.cs             \\r
36         Test/resources/*.*proj  \
37         Test/test-config-file*
38
39 Test/resources/TestTasks.dll: Test/resources/TestTasks.cs
40         $(CSCOMPILE) Test/resources/TestTasks.cs /r:Microsoft.Build.Framework.dll /r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll /target:library
41
42 clean-local: clean-test-tasks
43
44 clean-test-tasks:
45         rm -f Test/resources/TestTasks.dll      
46
47 test-local: copy-config
48
49 ifeq (net_4_0, $(PROFILE))
50 copy-config:
51         cp Test/test-config-file-net-4.0 $(test_lib).config
52 else
53 ifeq (net_3_5, $(PROFILE))
54 copy-config:
55         cp Test/test-config-file-net-3.5 $(test_lib).config
56 else
57 copy-config:
58 endif
59 endif
60
61 export TESTING_MONO=a
62 XBUILD_DIR=../../tools/xbuild
63 include $(XBUILD_DIR)/xbuild_targets.make
64
65 test-local: Test/resources/TestTasks.dll
66
67 include ../../build/library.make