3 SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
5 basic_SUBDIRS := build jay mcs class
6 net_1_1_bootstrap_SUBDIRS := build jay mcs class ilasm tools
7 net_2_0_bootstrap_SUBDIRS := build jay mcs class ilasm tools
8 net_2_0_SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors
9 net_2_1_SUBDIRS := build mcs class tools
10 net_3_5_SUBDIRS := build class
12 # List of test subdirs that should pass 100%
17 class/Commons.Xml.Relaxng \
19 class/Microsoft.JScript \
22 class/System.Messaging \
23 class/System.Runtime.Remoting \
24 class/System.Runtime.Serialization.Formatters.Soap \
25 class/System.Security \
26 class/System.ServiceProcess \
27 class/System.Web.Services \
31 default_centum_tests := \
35 net_2_0_centum_tests := \
38 class/System.Configuration \
39 class/Microsoft.Build.Framework \
40 class/Microsoft.Build.Utilities \
41 class/Microsoft.Build.Engine
42 #class/Microsoft.Build.Tasks
45 net_3_5_centum_tests := \
47 #class/System.Web.Extensions
49 ifdef ONLY_CENTUM_TESTS
50 TEST_SUBDIRS := $($(PROFILE)_centum_tests)
54 $(PROFILE)_SUBDIRS := $(TEST_SUBDIRS)
57 include build/rules.make
59 all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check
61 .PHONY: all-local $(STD_TARGETS:=-local)
62 all-local $(STD_TARGETS:=-local):
65 # fun specialty targets
67 PROFILES = default net_2_0 net_3_5
69 .PHONY: all-profiles $(STD_TARGETS:=-profiles)
70 all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
74 $(MAKE) $(PROFILES:%=profile-do--%--$*)
76 # The % below looks like profile-name--target-name
78 $(MAKE) PROFILE=$(subst --, ,$*)
80 # We don't want to run the tests in parallel. We want behaviour like -k.
81 profiles-do--run-test:
82 ret=:; $(foreach p,$(PROFILES), { $(MAKE) PROFILE=$(p) run-test || ret=false; }; ) $$ret
84 # Orchestrate the bootstrap here.
85 _boot_ = all clean install
86 $(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
87 $(_boot_:%=profile-do--net_2_1--%): profile-do--net_2_1--%: profile-do--net_2_0--%
88 $(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
89 $(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--default--%
90 $(_boot_:%=profile-do--default--%): profile-do--default--%: profile-do--net_1_1_bootstrap--%
91 $(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
94 @cd class/corlib && $(MAKE) test run-test
97 $(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
99 test-installed-compiler:
100 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=default TEST_RUNTIME=mono MCS=mcs run-test
101 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_2_0 TEST_RUNTIME=mono MCS=gmcs run-test
103 package := mcs-$(VERSION)
120 ScalableMonoIcon.svg \
124 dist-local: dist-default
130 dist-tarball: dist-pre
131 $(MAKE) distdir='$(package)' dist-recursive
132 tar cvjf $(package).tar.bz2 $(package)
137 # the egrep -v is kind of a hack (to get rid of the makefrags)
138 # but otherwise we have to make dist then make clean which
139 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
141 # We need to set prefix on make so class/System/Makefile can find
142 # the installed System.Xml to build properly
144 distcheck: dist-tarball
145 rm -rf InstallTest Distcheck-MCS ; \
146 mkdir InstallTest ; \
147 destdir=`cd InstallTest && pwd` ; \
148 mv $(package) Distcheck-MCS ; \
149 (cd Distcheck-MCS && \
150 $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
151 $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
152 mv Distcheck-MCS $(package) ; \
153 tar tjf $(package)/$(package).tar.bz2 |sed -e 's,/$$,,' |sort >distdist.list ; \
154 rm $(package)/$(package).tar.bz2 ; \
155 tar tjf $(package).tar.bz2 |sed -e 's,/$$,,' |sort >before.list ; \
156 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
157 cmp before.list after.list || exit 1 ; \
158 cmp before.list distdist.list || exit 1 ; \
159 rm -f before.list after.list distdist.list ; \
160 rm -rf $(package) InstallTest
163 chargedir=monocharge-`date -u +%Y%m%d` ; \
164 mkdir "$$chargedir" ; \
165 DESTDIR=`cd "$$chargedir" && pwd` ; \
166 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
167 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \
170 # A bare-bones monocharge.
173 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
174 mkdir "$$chargedir" ; \
175 DESTDIR=`cd "$$chargedir" && pwd` ; \
176 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
177 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
178 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
179 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
180 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
181 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \