New tests, updates
[mono.git] / mcs / class / corlib / Makefile
1 thisdir = class/corlib
2 SUBDIRS =
3 include ../../build/rules.make
4 export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/corlib
5
6 LIBRARY = corlib.dll
7 LIBRARY_NAME = mscorlib.dll
8 LIB_MCS_FLAGS = $(corlib_flags) $(RESOURCE_FILES:%=-resource:%)
9 LIBRARY_USE_INTERMEDIATE_FILE = yes
10
11 LIBRARY_COMPILE = $(BOOT_COMPILE)
12 LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
13
14 AOT_IN_PROFILES = net_1_1
15
16 RESOURCE_FILES = \
17         resources/collation.core.bin \
18         resources/collation.tailoring.bin \
19         resources/collation.cjkCHS.bin \
20         resources/collation.cjkCHT.bin \
21         resources/collation.cjkJA.bin \
22         resources/collation.cjkKO.bin \
23         resources/collation.cjkKOlv2.bin
24
25 corlib_flags = -unsafe -nostdlib
26 LOCAL_MCS_FLAGS = -nowarn:612,618 -d:INSIDE_CORLIB
27
28 # this hack will be dropped once we get this working:
29 # http://www.mono-project.com/Moonlight/SecurityStatus#Assembly_Loading
30 ifdef MOON_A11Y_INTERNAL_HACK
31         MCS_FLAGS += -define:MOON_A11Y_INTERNAL_HACK
32 endif
33
34 # System.IO/DirectoryInfoTest.cs needs Mono.Posix
35 TEST_MCS_FLAGS = -debug+ -debug:full -nowarn:168,219,618,672 -unsafe -r:$(topdir)/class/lib/$(PROFILE)/Mono.Posix.dll -define:MONO_DATACONVERTER_STATIC_METHODS
36
37 EXTRA_DISTFILES = \
38         corlib.dll.win32-excludes               \
39         Test/ms_run_test.sh                     \
40         Test/resources/MyResources.resources    \
41         Test/resources/MyResources.de.resources \
42         Test/resources/Empty.resources          \
43         Test/resources/AFile.txt                \
44         Test/resources/StreamTest.resources     \
45         Test/resources/StreamTest.ja.resources  \
46         Test/resources/bug81759.resources       \
47         Test/resources/415628.bin               \
48         Test/resources/Fergie.GED               \
49         $(RESOURCE_FILES)
50
51 include $(topdir)/build/library.make
52
53 ifdef FIXME_CORLIB_CMP
54 # corlib_cmp
55 cmplib = $(topdir)/class/lib/$(PROFILE)/corlib_cmp.dll
56 cmppdb = $(cmplib:.dll=.pdb)
57 cmp_response = $(depsdir)/$(PROFILE)_corlib_cmp.dll.response
58 cmp_makefrag = $(depsdir)/$(PROFILE)_corlib_cmp.dll.makefrag
59 cmp_flags = -r:$(PLATFORM_CORLIB) $(corlib_flags)
60
61 EXTRA_DISTFILES += corlib_cmp.dll.excludes
62 CLEAN_FILES += $(cmplib) $(cmp_response) $(cmp_makefrag) $(cmppdb)
63
64 $(cmplib): $(cmp_makefrag) $(cmp_response)
65         $(BOOT_COMPILE) $(LIBRARY_FLAGS) $(cmp_flags) -target:library -out:$@ @$(cmp_response)
66
67 $(cmp_response): $(sourcefile) corlib_cmp.dll.excludes
68         @echo Creating $@ ...
69         @sort $(sourcefile) corlib_cmp.dll.excludes | uniq -u | $(PLATFORM_CHANGE_SEPARATOR_CMD) >$@
70
71 $(cmp_makefrag): $(cmp_response)
72         @echo Creating $@ ...
73         @sed 's,^,$(cmplib): ,' $< >$@
74
75 # Since we make corlib_cmp on demand, there isn't a real need
76 # to have full dep tracking for it. Also, the generation of this
77 # file is busted on Win32 ('sort' seems to mess up line endings),
78 # leading to a broken build.
79 #
80 # -include $(cmp_makefrag)
81
82 $(cmp_response) $(cmp_makefrag): Makefile $(depsdir)/.stamp
83 endif
84
85 #
86 # qh21 = Quick Hack for 2.1, to be used by impatient developers to get
87 # test builds done quickly
88 #
89 qh21:
90         make PROFILE=net_2_1_raw
91         (cd ../../tools/tuner; rm tune.stamp; make tune.stamp && make PROFILE=net_2_1 install)