Merge pull request #3269 from alexanderkyte/silence_zero_len
[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 = /unsafe -D:MONO_DATACONVERTER_STATIC_METHODS -keyfile:$(LIBRARY_SNK) /publicsign
9
10 TEST_MCS_FLAGS =
11 TEST_LIB_REFS = Mono.Cecil System System.Core
12
13 VALID_TEST_PROFILE := $(filter net_4_x, $(PROFILE))
14
15 # The test exe is not profile specific, and compiling a 2.0 will make the 4.5 tests fail
16 ifdef VALID_TEST_PROFILE
17
18 TEST_HELPERS_SOURCES = \
19         ../test-helpers/NetworkHelpers.cs
20
21 test-local: dtest-app.exe dtest-excfilter.exe
22
23 dtest-app.exe: Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
24         $(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
25
26 dtest-excfilter.exe: Test/dtest-excfilter.il
27         MONO_PATH=$(topdir)/class/lib/$(PROFILE) $(INTERNAL_ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
28
29 else
30
31 NO_TEST=1
32 check:
33
34 endif
35
36 CLEAN_FILES = dtest-app.exe dtest-app.exe.mdb dtest-app.pdb dtest-excfilter.exe dtest-excfilter.exe.mdb dtest-excfilter.pdb
37
38 EXTRA_DISTFILES = \
39         Test/dtest-app.cs \
40         Test/dtest.cs \
41         Test/dtest-excfilter.il
42
43 #NO_TEST = yes
44
45 include ../../build/library.make