3 SUBDIRS
:= build jay mcs class nunit24 ilasm tools tests errors docs
5 basic_SUBDIRS
:= build jay mcs class tools
6 net_2_0_bootstrap_SUBDIRS
:= build tools
7 net_2_0_SUBDIRS
:= build mcs class nunit24 ilasm tools tests errors
8 moonlight_bootstrap_SUBDIRS
:= build mcs class
9 moonlight_raw_SUBDIRS
:= build mcs class tools
10 moonlight_SUBDIRS
:= tools tests errors
11 monotouch_SUBDIRS
:= build mcs class
12 monotouch_bootstrap_SUBDIRS
:= build mcs class
13 net_3_5_SUBDIRS
:= build class
14 net_4_0_bootstrap_SUBDIRS
:= build mcs class tools
15 net_4_0_SUBDIRS
:= build mcs class nunit24 ilasm tools tests errors docs
17 # List of test subdirs that should pass 100%
22 class
/Commons.Xml.Relaxng \
24 class
/Microsoft.JScript \
28 class
/System.DirectoryServices \
29 class
/System.Drawing \
30 class
/System.Runtime.Remoting \
31 class
/System.Runtime.Serialization.Formatters.Soap \
32 class
/System.Security \
33 class
/System.ServiceProcess \
35 class
/System.Web.Services \
39 default_centum_tests
:= \
43 net_2_0_centum_tests
:= \
46 class
/System.Configuration \
47 class
/System.Data.DataSetExtensions \
48 class
/System.Xml.Linq \
49 class
/System.Transactions \
50 class
/Microsoft.Build.Framework \
51 class
/Microsoft.Build.Utilities \
52 class
/Microsoft.Build.Engine \
53 class
/System.Runtime.Serialization \
54 class
/System.IdentityModel \
55 class
/System.ServiceModel \
56 class
/System.ServiceModel.Web \
59 # class/System.Web.Extensions
60 # class/Microsoft.Build.Tasks
62 # note that System.Xml.Linq is here to prevent this from being empty
63 net_3_5_centum_tests
:= \
66 ifdef ONLY_CENTUM_TESTS
67 TEST_SUBDIRS
:= $($(PROFILE
)_centum_tests
)
71 $(PROFILE
)_SUBDIRS
:= $(TEST_SUBDIRS
)
74 include build
/rules.make
76 all-recursive
$(STD_TARGETS
:=-recursive
): dir-check platform-check profile-check
78 .PHONY
: all-local
$(STD_TARGETS
:=-local
)
79 all-local
$(STD_TARGETS
:=-local
):
83 @if
[ "$(NO_DIR_CHECK)" = "" -a
"$(PROFILE)" != "basic" ]; then echo
"Running make from the mcs directory is not supported. Run make from the parent directory (if using a tarball), or from the directory where the runtime is checked out (if using an SVN checkout)."; exit
1; fi
85 # fun specialty targets
87 PROFILES
= net_2_0 net_3_5 net_4_0
89 .PHONY
: all-profiles
$(STD_TARGETS
:=-profiles
)
90 all-profiles
$(STD_TARGETS
:=-profiles
): %-profiles
: profiles-do--
%
94 $(MAKE
) $(PROFILES
:%=profile-do--
%--$*)
96 # The % below looks like profile-name--target-name
98 $(MAKE
) PROFILE
=$(subst --, ,$*)
100 # We don't want to run the tests in parallel. We want behaviour like -k.
101 profiles-do--run-test
:
102 ret
=:; $(foreach p
,$(PROFILES
), { $(MAKE
) PROFILE
=$(p
) run-test || ret
=false
; }; ) $$ret
104 # Orchestrate the bootstrap here.
105 _boot_
= all clean install
106 $(_boot_
:%=profile-do--net_4_0--
%): profile-do--net_4_0--
%: profile-do--net_4_0_bootstrap--
%
107 $(_boot_
:%=profile-do--net_4_0_bootstrap--
%): profile-do--net_4_0_bootstrap--
%: profile-do--net_2_0--
%
108 $(_boot_
:%=profile-do--net_3_5--
%): profile-do--net_3_5--
%: profile-do--net_2_0--
%
109 $(_boot_
:%=profile-do--moonlight--
%): profile-do--moonlight--
%: profile-do--moonlight_raw--
%
110 $(_boot_
:%=profile-do--monotouch--
%): profile-do--monotouch--
%: profile-do--monotouch_bootstrap--
%
111 $(_boot_
:%=profile-do--monotouch_bootstrap--
%): profile-do--monotouch_bootstrap--
%: profile-do--net_2_0--
%
112 $(_boot_
:%=profile-do--moonlight_raw--
%): profile-do--moonlight_raw--
%: profile-do--moonlight_bootstrap--
%
113 $(_boot_
:%=profile-do--moonlight_bootstrap--
%): profile-do--moonlight_bootstrap--
%: profile-do--basic--
%
114 $(_boot_
:%=profile-do--net_2_0--
%): profile-do--net_2_0--
%: profile-do--net_2_0_bootstrap--
%
115 $(_boot_
:%=profile-do--net_2_0_bootstrap--
%): profile-do--net_2_0_bootstrap--
%: profile-do--basic--
%
118 @cd class
/corlib
&& $(MAKE
) test run-test
121 $(MAKE
) TEST_SUBDIRS
="tests errors" run-test-profiles
123 package
:= mcs-
$(VERSION
)
140 ScalableMonoIcon.svg \
144 dist-local
: dist-default
152 dist-tarball
: dist-pre
153 $(MAKE
) distdir
='$(package)' dist-recursive
154 tar cvjf
$(package
).
tar.bz2
$(package
)
159 # the egrep -v is kind of a hack (to get rid of the makefrags)
160 # but otherwise we have to make dist then make clean which
161 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
163 # We need to set prefix on make so class/System/Makefile can find
164 # the installed System.Xml to build properly
166 distcheck
: dist-tarball
167 rm -rf InstallTest Distcheck-MCS
; \
168 mkdir InstallTest
; \
169 destdir
=`cd InstallTest && pwd` ; \
170 mv
$(package
) Distcheck-MCS
; \
171 (cd Distcheck-MCS
&& \
172 $(MAKE
) prefix=$(prefix) && $(MAKE
) test && $(MAKE
) install DESTDIR
="$$destdir" && \
173 $(MAKE
) clean && $(MAKE
) dist || exit
1) || exit
1 ; \
174 mv Distcheck-MCS
$(package
) ; \
175 tar tjf
$(package
)/$(package
).
tar.bz2 |sed
-e
's,/$$,,' |
sort >distdist.list
; \
176 rm $(package
)/$(package
).
tar.bz2
; \
177 tar tjf
$(package
).
tar.bz2 |sed
-e
's,/$$,,' |
sort >before.list
; \
178 find
$(package
) |egrep
-v
'(makefrag|response)' |sed
-e
's,/$$,,' |
sort >after.list
; \
179 cmp before.list after.list || exit
1 ; \
180 cmp before.list distdist.list || exit
1 ; \
181 rm -f before.list after.list distdist.list
; \
182 rm -rf
$(package
) InstallTest
185 chargedir
=monocharge-
`date -u +%Y%m%d` ; \
186 mkdir
"$$chargedir" ; \
187 DESTDIR
=`cd "$$chargedir" && pwd` ; \
188 $(MAKE
) install DESTDIR
="$$DESTDIR" || exit
1 ; \
189 tar cvjf
"$$chargedir".
tar.bz2
"$$chargedir" ; \
192 # A bare-bones monocharge.
195 chargedir
=monocharge-lite-
`date -u +%Y%m%d` ; \
196 mkdir
"$$chargedir" ; \
197 DESTDIR
=`cd "$$chargedir" && pwd` ; \
198 $(MAKE
) -C mcs
install DESTDIR
="$$DESTDIR" || exit
1; \
199 $(MAKE
) -C class
/corlib
install DESTDIR
="$$DESTDIR" || exit
1; \
200 $(MAKE
) -C class
/System
install DESTDIR
="$$DESTDIR" || exit
1; \
201 $(MAKE
) -C class
/System.XML
install DESTDIR
="$$DESTDIR" || exit
1; \
202 $(MAKE
) -C class
/Mono.CSharp.Debugger
install DESTDIR
="$$DESTDIR" || exit
1; \
203 tar cvjf
"$$chargedir".
tar.bz2
"$$chargedir" ; \