Merge pull request #1695 from gregoryyoung/master
[mono.git] / mcs / class / Mono.Debugger.Soft / Makefile
1 thisdir = class/Mono.Debugger.Soft
2 include ../../build/rules.make
3
4 LIBRARY = Mono.Debugger.Soft.dll
5 LIBRARY_SNK = ../mono.snk
6
7 LIB_REFS = System Mono.Cecil System.Core
8 LIB_MCS_FLAGS = /r:$(corlib) /unsafe -D:MONO_DATACONVERTER_STATIC_METHODS -keyfile:$(LIBRARY_SNK)
9
10 TEST_MCS_FLAGS = /r:Mono.Cecil.dll /r:System.dll /r:System.Core.dll
11
12 VALID_TEST_PROFILE := $(filter net_4_5, $(PROFILE))
13
14 # The test exe is not profile specific, and compiling a 2.0 will make the 4.5 tests fail
15 ifdef VALID_TEST_PROFILE
16
17 test-local: dtest-app.exe dtest-excfilter.exe
18
19 dtest-app.exe: Test/dtest-app.cs
20         $(CSCOMPILE) -out:$@ -unsafe -debug -optimize- Test/dtest-app.cs
21
22 dtest-excfilter.exe: Test/dtest-excfilter.il
23         MONO_PATH=$(topdir)/class/lib/$(PROFILE) $(INTERNAL_ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
24
25 else
26
27 NO_TEST=1
28 check:
29
30 endif
31
32 CLEAN_FILES = dtest-app.exe dtest-app.exe.mdb dtest-excfilter.exe dtest-excfilter.exe.mdb
33
34 EXTRA_DISTFILES = \
35         Test/dtest-app.cs \
36         Test/dtest.cs \
37         Test/dtest-excfilter.il
38
39 #NO_TEST = yes
40
41 include ../../build/library.make