2 include ..
/build
/rules.make
4 ROSLYN_CSC_DIR
= $(dir $(CSC_LOCATION
))
6 ROSLYN_FILES_FOR_MONO
= \
7 $(ROSLYN_CSC_DIR
)/csc.exe \
8 $(ROSLYN_CSC_DIR
)/csc.rsp \
9 $(ROSLYN_CSC_DIR
)/csc.exe.config \
10 $(ROSLYN_CSC_DIR
)/csi.exe \
11 $(ROSLYN_CSC_DIR
)/csi.exe.config \
12 $(ROSLYN_CSC_DIR
)/csi.rsp \
13 $(ROSLYN_CSC_DIR
)/vbc.exe \
14 $(ROSLYN_CSC_DIR
)/vbc.exe.config \
15 $(ROSLYN_CSC_DIR
)/vbc.rsp \
16 $(ROSLYN_CSC_DIR
)/Microsoft.CodeAnalysis.CSharp.dll \
17 $(ROSLYN_CSC_DIR
)/Microsoft.CodeAnalysis.CSharp.Scripting.dll \
18 $(ROSLYN_CSC_DIR
)/Microsoft.CodeAnalysis.VisualBasic.dll \
19 $(ROSLYN_CSC_DIR
)/Microsoft.CodeAnalysis.dll \
20 $(ROSLYN_CSC_DIR
)/Microsoft.CodeAnalysis.Scripting.dll \
21 $(ROSLYN_CSC_DIR
)/System.Collections.Immutable.dll \
22 $(ROSLYN_CSC_DIR
)/System.Reflection.Metadata.dll \
23 $(ROSLYN_CSC_DIR
)/System.Runtime.CompilerServices.Unsafe.dll \
24 $(ROSLYN_CSC_DIR
)/System.Threading.Tasks.Extensions.dll \
25 $(ROSLYN_CSC_DIR
)/System.Memory.dll \
26 $(ROSLYN_CSC_DIR
)/VBCSCompiler.exe \
27 $(ROSLYN_CSC_DIR
)/VBCSCompiler.exe.config
29 ROSLYN_FILES_TO_COPY_FOR_MSBUILD
= \
30 $(ROSLYN_CSC_DIR
)/Microsoft.Build.Tasks.CodeAnalysis.dll \
31 $(ROSLYN_CSC_DIR
)/Microsoft.CSharp.Core.targets \
32 $(ROSLYN_CSC_DIR
)/Microsoft.Managed.Core.targets \
33 $(ROSLYN_CSC_DIR
)/Microsoft.VisualBasic.Core.targets
35 DISTFILES
= $(ROSLYN_FILES_FOR_MONO
) $(ROSLYN_FILES_TO_COPY_FOR_MSBUILD
) csi-test.csx
37 ifeq ($(PROFILE
), $(DEFAULT_PROFILE
))
39 TARGET_DIR
= $(DESTDIR
)$(mono_libdir
)/mono
/$(FRAMEWORK_VERSION
)
40 MSBUILD_ROSLYN_DIR
= $(DESTDIR
)$(mono_libdir
)/mono
/msbuild
/Current
/bin
/Roslyn
43 $(MKINSTALLDIRS
) $(TARGET_DIR
)
44 $(INSTALL_LIB
) $(ROSLYN_FILES_FOR_MONO
) $(TARGET_DIR
)
45 $(MKINSTALLDIRS
) $(MSBUILD_ROSLYN_DIR
)
46 $(INSTALL_LIB
) $(ROSLYN_FILES_TO_COPY_FOR_MSBUILD
) $(MSBUILD_ROSLYN_DIR
)
48 (cd
$(MSBUILD_ROSLYN_DIR
); for asm in
$(ROSLYN_FILES_FOR_MONO
); do ln
-fs ..
/..
/..
/..
/$(FRAMEWORK_VERSION
)/$$(basename $$asm) .
; done
)
50 run-test-local
: test-csi
53 MONO_PATH
="$(topdir)/class/lib/$(PROFILE)" $(RUNTIME
) $(ROSLYN_CSC_DIR
)/csi.exe csi-test.csx
> csi-test-output.txt
54 cat csi-test-output.txt
&& grep
-q
"hello world" csi-test-output.txt
55 rm csi-test-output.txt
58 mkdir
-p
$(TEST_BUNDLE_PATH
)/tests
/csi
59 cp
-L
$(ROSLYN_CSC_DIR
)/* $(TEST_BUNDLE_PATH
)/tests
/csi
/
63 dist-local
: dist-default