[mono-api-html] Make the [Obsolete] a bit prettier when no text message is available
[mono-project.git] / mcs / Makefile
blob78af02bc44f60b892ed897af08dfdabac2393803
1 thisdir := .
3 SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs
5 # Resgen is corlib specific tool
7 basic_SUBDIRS := build jay mcs class
8 build_SUBDIRS := build class mcs class/aot-compiler tools
9 net_2_0_SUBDIRS := build class nunit24 ilasm tools tests errors docs
10 monodroid_SUBDIRS := build class
11 monotouch_SUBDIRS := build class
12 monotouch_runtime_SUBDIRS := build class
13 xammac_SUBDIRS := build class
14 mobile_SUBDIRS := build class
15 net_3_5_SUBDIRS := build class tools/xbuild
16 net_4_0_SUBDIRS := build class
17 net_4_5_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
18 xbuild_12_SUBDIRS := build class tools/xbuild
20 # List of test subdirs that should pass 100%
21 centum_tests := \
22 class/corlib \
23 class/System \
24 class/System.XML \
25 class/Commons.Xml.Relaxng \
26 class/Cscompmgd \
27 class/Microsoft.JScript \
28 class/Mono.Posix \
29 class/Mono.Security \
30 class/System.Design \
31 class/System.DirectoryServices \
32 class/System.Drawing \
33 class/System.Runtime.Remoting \
34 class/System.Runtime.Serialization.Formatters.Soap \
35 class/System.Security \
36 class/System.ServiceProcess \
37 class/System.Web \
38 class/System.Web.Services \
39 tests \
40 errors
42 default_centum_tests := \
43 $(centum_tests) \
44 class/System.Data
46 net_2_0_centum_tests := \
47 $(centum_tests) \
48 class/System.Core \
49 class/System.Configuration \
50 class/System.Data.DataSetExtensions \
51 class/System.Xml.Linq \
52 class/System.Transactions \
53 class/Microsoft.Build.Framework \
54 class/Microsoft.Build.Utilities \
55 class/Microsoft.Build.Engine \
56 class/System.Runtime.Serialization \
57 class/System.IdentityModel \
58 class/System.ServiceModel \
59 class/System.ServiceModel.Web \
60 class/Mono.C5
62 # class/System.Web.Extensions
63 # class/Microsoft.Build.Tasks
65 # note that System.Xml.Linq is here to prevent this from being empty
66 net_3_5_centum_tests := \
67 class/System.Xml.Linq
69 ifdef ONLY_CENTUM_TESTS
70 TEST_SUBDIRS := $($(PROFILE)_centum_tests)
71 endif
73 ifdef TEST_SUBDIRS
74 $(PROFILE)_SUBDIRS := $(TEST_SUBDIRS)
75 endif
77 include build/rules.make
79 all-recursive $(STD_TARGETS:=-recursive): dir-check platform-check profile-check
81 .PHONY: all-local $(STD_TARGETS:=-local)
82 all-local $(STD_TARGETS:=-local):
85 dir-check:
86 @if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then make -C ../runtime; fi
88 # fun specialty targets
90 PROFILES = net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12
92 .PHONY: all-profiles $(STD_TARGETS:=-profiles)
93 all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
96 profiles-do--%:
97 $(MAKE) $(PROFILES:%=profile-do--%--$*)
99 # The % below looks like profile-name--target-name
100 profile-do--%:
101 $(MAKE) PROFILE=$(subst --, ,$*)
103 # We don't want to run the tests in parallel. We want behaviour like -k.
104 profiles-do--run-test:
105 ret=:; $(foreach p,$(PROFILES), { $(MAKE) PROFILE=$(p) run-test || ret=false; }; ) $$ret
107 # Orchestrate the bootstrap here.
108 _boot_ = all clean install
109 $(_boot_:%=profile-do--xbuild_12--%): profile-do--xbuild_12--%: profile-do--net_4_5--%
110 $(_boot_:%=profile-do--net_4_5--%): profile-do--net_4_5--%: profile-do--build--%
111 $(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--build--%
112 $(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
113 $(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--build--%
114 $(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--build--%
115 $(_boot_:%=profile-do--monotouch_runtime--%): profile-do--monotouch_runtime--%: profile-do--build--%
116 $(_boot_:%=profile-do--xammac--%): profile-do--xammac--%: profile-do--build--%
117 $(_boot_:%=profile-do--mobile--%): profile-do--mobile--%: profile-do--build--%
118 $(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--build--%
119 $(_boot_:%=profile-do--build--%): profile-do--build--%: profile-do--basic--%
121 testcorlib:
122 @cd class/corlib && $(MAKE) test run-test
124 compiler-tests:
125 $(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
127 package := mcs-$(VERSION)
129 DISTFILES = \
130 AUTHORS \
131 ChangeLog \
132 COPYING \
133 COPYING.LIB \
134 INSTALL.txt \
135 LICENSE \
136 LICENSE.GPL \
137 LICENSE.LGPL \
138 LICENSE.MPL \
139 Makefile \
140 mkinstalldirs \
141 MIT.X11 \
142 MonoIcon.png \
143 README \
144 ScalableMonoIcon.svg \
145 winexe.in
147 dist-local: dist-default
149 csproj-local:
151 dist-pre:
152 rm -rf $(package)
153 mkdir $(package)
155 dist-tarball: dist-pre
156 $(MAKE) distdir='$(package)' dist-recursive
157 tar cvjf $(package).tar.bz2 $(package)
159 dist: dist-tarball
160 rm -rf $(package)
162 # the egrep -v is kind of a hack (to get rid of the makefrags)
163 # but otherwise we have to make dist then make clean which
164 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
166 # We need to set prefix on make so class/System/Makefile can find
167 # the installed System.Xml to build properly
169 distcheck: dist-tarball
170 rm -rf InstallTest Distcheck-MCS ; \
171 mkdir InstallTest ; \
172 destdir=`cd InstallTest && pwd` ; \
173 mv $(package) Distcheck-MCS ; \
174 (cd Distcheck-MCS && \
175 $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
176 $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
177 mv Distcheck-MCS $(package) ; \
178 tar tjf $(package)/$(package).tar.bz2 |sed -e 's,/$$,,' |sort >distdist.list ; \
179 rm $(package)/$(package).tar.bz2 ; \
180 tar tjf $(package).tar.bz2 |sed -e 's,/$$,,' |sort >before.list ; \
181 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
182 cmp before.list after.list || exit 1 ; \
183 cmp before.list distdist.list || exit 1 ; \
184 rm -f before.list after.list distdist.list ; \
185 rm -rf $(package) InstallTest
187 monocharge:
188 chargedir=monocharge-`date -u +%Y%m%d` ; \
189 mkdir "$$chargedir" ; \
190 DESTDIR=`cd "$$chargedir" && pwd` ; \
191 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
192 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \
193 rm -rf "$$chargedir"
195 # A bare-bones monocharge.
197 monocharge-lite:
198 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
199 mkdir "$$chargedir" ; \
200 DESTDIR=`cd "$$chargedir" && pwd` ; \
201 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
202 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
203 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
204 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
205 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
206 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \
207 rm -rf "$$chargedir"