In build:
[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 RESOURCE_FILES = \
15         resources/collation.core.bin \
16         resources/collation.tailoring.bin \
17         resources/collation.cjkCHS.bin \
18         resources/collation.cjkCHT.bin \
19         resources/collation.cjkJA.bin \
20         resources/collation.cjkKO.bin \
21         resources/collation.cjkKOlv2.bin
22
23 corlib_flags = -unsafe -nostdlib
24 LOCAL_MCS_FLAGS = -nowarn:169,612,618,649 -d:INSIDE_CORLIB
25
26 ifneq ($(FRAMEWORK_VERSION),1.0)
27 LOCAL_MCS_FLAGS += -nowarn:414
28 endif
29
30 TEST_MCS_FLAGS = -debug+ -debug:full -nowarn:168,219,618,672 -unsafe
31
32 EXTRA_DISTFILES = \
33         corlib.dll.win32-excludes               \
34         Test/ms_run_test.sh                     \
35         Test/resources/MyResources.resources    \
36         Test/resources/MyResources.de.resources \
37         Test/resources/Empty.resources          \
38         Test/resources/AFile.txt                \
39         $(RESOURCE_FILES)
40
41 include $(topdir)/build/library.make
42
43 ifdef FIXME_CORLIB_CMP
44 # corlib_cmp
45 cmplib = $(topdir)/class/lib/$(PROFILE)/corlib_cmp.dll
46 cmppdb = $(cmplib:.dll=.pdb)
47 cmp_response = $(depsdir)/$(PROFILE)_corlib_cmp.dll.response
48 cmp_makefrag = $(depsdir)/$(PROFILE)_corlib_cmp.dll.makefrag
49 cmp_flags = -r:$(PLATFORM_CORLIB) $(corlib_flags)
50
51 EXTRA_DISTFILES += corlib_cmp.dll.excludes
52 CLEAN_FILES += $(cmplib) $(cmp_response) $(cmp_makefrag) $(cmppdb)
53
54 $(cmplib): $(cmp_makefrag) $(cmp_response)
55         $(BOOT_COMPILE) $(LIBRARY_FLAGS) $(cmp_flags) -target:library -out:$@ @$(cmp_response)
56
57 $(cmp_response): $(sourcefile) corlib_cmp.dll.excludes
58         @echo Creating $@ ...
59         @sort $(sourcefile) corlib_cmp.dll.excludes | uniq -u | $(PLATFORM_CHANGE_SEPARATOR_CMD) >$@
60
61 $(cmp_makefrag): $(cmp_response)
62         @echo Creating $@ ...
63         @sed 's,^,$(cmplib): ,' $< >$@
64
65 # Since we make corlib_cmp on demand, there isn't a real need
66 # to have full dep tracking for it. Also, the generation of this
67 # file is busted on Win32 ('sort' seems to mess up line endings),
68 # leading to a broken build.
69 #
70 # -include $(cmp_makefrag)
71
72 $(cmp_response) $(cmp_makefrag): Makefile | $(depsdir)
73 endif