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
10 moonlight_raw_SUBDIRS
:= build class
11 monodroid_SUBDIRS
:= build class
12 monotouch_SUBDIRS
:= build class
13 net_3_5_SUBDIRS
:= build class tools
/xbuild
14 net_4_0_SUBDIRS
:= build mcs class nunit24 ilasm tools tests errors docs
16 # List of test subdirs that should pass 100%
21 class
/Commons.Xml.Relaxng \
23 class
/Microsoft.JScript \
27 class
/System.DirectoryServices \
28 class
/System.Drawing \
29 class
/System.Runtime.Remoting \
30 class
/System.Runtime.Serialization.Formatters.Soap \
31 class
/System.Security \
32 class
/System.ServiceProcess \
34 class
/System.Web.Services \
38 default_centum_tests
:= \
42 net_2_0_centum_tests
:= \
45 class
/System.Configuration \
46 class
/System.Data.DataSetExtensions \
47 class
/System.Xml.Linq \
48 class
/System.Transactions \
49 class
/Microsoft.Build.Framework \
50 class
/Microsoft.Build.Utilities \
51 class
/Microsoft.Build.Engine \
52 class
/System.Runtime.Serialization \
53 class
/System.IdentityModel \
54 class
/System.ServiceModel \
55 class
/System.ServiceModel.Web \
58 # class/System.Web.Extensions
59 # class/Microsoft.Build.Tasks
61 # note that System.Xml.Linq is here to prevent this from being empty
62 net_3_5_centum_tests
:= \
65 ifdef ONLY_CENTUM_TESTS
66 TEST_SUBDIRS
:= $($(PROFILE
)_centum_tests
)
70 $(PROFILE
)_SUBDIRS
:= $(TEST_SUBDIRS
)
73 include build
/rules.make
75 all-recursive
$(STD_TARGETS
:=-recursive
): dir-check platform-check profile-check
77 .PHONY
: all-local
$(STD_TARGETS
:=-local
)
78 all-local
$(STD_TARGETS
:=-local
):
82 @if
[ "$(NO_DIR_CHECK)" = "" -a
"$(PROFILE)" != "basic" ]; then echo
"Running make from the mcs directory is not supported. Run make from the parent directory."; exit
1; fi
84 # fun specialty targets
86 PROFILES
= net_2_0 net_3_5 net_4_0
88 .PHONY
: all-profiles
$(STD_TARGETS
:=-profiles
)
89 all-profiles
$(STD_TARGETS
:=-profiles
): %-profiles
: profiles-do--
%
93 $(MAKE
) $(PROFILES
:%=profile-do--
%--$*)
95 # The % below looks like profile-name--target-name
97 $(MAKE
) PROFILE
=$(subst --, ,$*)
99 # We don't want to run the tests in parallel. We want behaviour like -k.
100 profiles-do--run-test
:
101 ret
=:; $(foreach p
,$(PROFILES
), { $(MAKE
) PROFILE
=$(p
) run-test || ret
=false
; }; ) $$ret
103 # Orchestrate the bootstrap here.
104 _boot_
= all clean install
105 $(_boot_
:%=profile-do--net_4_0--
%): profile-do--net_4_0--
%: profile-do--build--
%
106 $(_boot_
:%=profile-do--net_3_5--
%): profile-do--net_3_5--
%: profile-do--net_2_0--
%
107 $(_boot_
:%=profile-do--moonlight--
%): profile-do--moonlight--
%: profile-do--moonlight_raw--
%
108 $(_boot_
:%=profile-do--monodroid--
%): profile-do--monodroid--
%: profile-do--build--
%
109 $(_boot_
:%=profile-do--monotouch--
%): profile-do--monotouch--
%: profile-do--build--
%
110 $(_boot_
:%=profile-do--moonlight_raw--
%): profile-do--moonlight_raw--
%: profile-do--build--
%
111 $(_boot_
:%=profile-do--net_2_0--
%): profile-do--net_2_0--
%: profile-do--build--
%
112 $(_boot_
:%=profile-do--build--
%): profile-do--build--
%: profile-do--basic--
%
115 @cd class
/corlib
&& $(MAKE
) test run-test
118 $(MAKE
) TEST_SUBDIRS
="tests errors" run-test-profiles
120 package
:= mcs-
$(VERSION
)
137 ScalableMonoIcon.svg \
140 dist-local
: dist-default
148 dist-tarball
: dist-pre
149 $(MAKE
) distdir
='$(package)' dist-recursive
150 tar cvjf
$(package
).
tar.bz2
$(package
)
155 # the egrep -v is kind of a hack (to get rid of the makefrags)
156 # but otherwise we have to make dist then make clean which
157 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
159 # We need to set prefix on make so class/System/Makefile can find
160 # the installed System.Xml to build properly
162 distcheck
: dist-tarball
163 rm -rf InstallTest Distcheck-MCS
; \
164 mkdir InstallTest
; \
165 destdir
=`cd InstallTest && pwd` ; \
166 mv
$(package
) Distcheck-MCS
; \
167 (cd Distcheck-MCS
&& \
168 $(MAKE
) prefix=$(prefix) && $(MAKE
) test && $(MAKE
) install DESTDIR
="$$destdir" && \
169 $(MAKE
) clean && $(MAKE
) dist || exit
1) || exit
1 ; \
170 mv Distcheck-MCS
$(package
) ; \
171 tar tjf
$(package
)/$(package
).
tar.bz2 |sed
-e
's,/$$,,' |
sort >distdist.list
; \
172 rm $(package
)/$(package
).
tar.bz2
; \
173 tar tjf
$(package
).
tar.bz2 |sed
-e
's,/$$,,' |
sort >before.list
; \
174 find
$(package
) |egrep
-v
'(makefrag|response)' |sed
-e
's,/$$,,' |
sort >after.list
; \
175 cmp before.list after.list || exit
1 ; \
176 cmp before.list distdist.list || exit
1 ; \
177 rm -f before.list after.list distdist.list
; \
178 rm -rf
$(package
) InstallTest
181 chargedir
=monocharge-
`date -u +%Y%m%d` ; \
182 mkdir
"$$chargedir" ; \
183 DESTDIR
=`cd "$$chargedir" && pwd` ; \
184 $(MAKE
) install DESTDIR
="$$DESTDIR" || exit
1 ; \
185 tar cvjf
"$$chargedir".
tar.bz2
"$$chargedir" ; \
188 # A bare-bones monocharge.
191 chargedir
=monocharge-lite-
`date -u +%Y%m%d` ; \
192 mkdir
"$$chargedir" ; \
193 DESTDIR
=`cd "$$chargedir" && pwd` ; \
194 $(MAKE
) -C mcs
install DESTDIR
="$$DESTDIR" || exit
1; \
195 $(MAKE
) -C class
/corlib
install DESTDIR
="$$DESTDIR" || exit
1; \
196 $(MAKE
) -C class
/System
install DESTDIR
="$$DESTDIR" || exit
1; \
197 $(MAKE
) -C class
/System.XML
install DESTDIR
="$$DESTDIR" || exit
1; \
198 $(MAKE
) -C class
/Mono.CSharp.Debugger
install DESTDIR
="$$DESTDIR" || exit
1; \
199 tar cvjf
"$$chargedir".
tar.bz2
"$$chargedir" ; \