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%
25 class
/Commons.Xml.Relaxng \
27 class
/Microsoft.JScript \
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 \
38 class
/System.Web.Services \
42 default_centum_tests
:= \
46 net_2_0_centum_tests
:= \
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 \
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
:= \
69 ifdef ONLY_CENTUM_TESTS
70 TEST_SUBDIRS
:= $($(PROFILE
)_centum_tests
)
74 $(PROFILE
)_SUBDIRS
:= $(TEST_SUBDIRS
)
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
):
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--
%
97 $(MAKE
) $(PROFILES
:%=profile-do--
%--$*)
99 # The % below looks like profile-name--target-name
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--
%
122 @cd class
/corlib
&& $(MAKE
) test run-test
125 $(MAKE
) TEST_SUBDIRS
="tests errors" run-test-profiles
127 package
:= mcs-
$(VERSION
)
144 ScalableMonoIcon.svg \
147 dist-local
: dist-default
155 dist-tarball
: dist-pre
156 $(MAKE
) distdir
='$(package)' dist-recursive
157 tar cvjf
$(package
).
tar.bz2
$(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
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" ; \
195 # A bare-bones monocharge.
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" ; \