3 SUBDIRS := build jay mcs class nunit20 ilasm tools tests errors docs
4 DIST_ONLY_SUBDIRS := gmcs smcs
6 basic_SUBDIRS := build jay mcs class
7 net_1_1_bootstrap_SUBDIRS := build jay mcs class ilasm tools
8 net_2_0_bootstrap_SUBDIRS := build jay mcs class ilasm tools
9 net_2_0_SUBDIRS := build jay gmcs class nunit20 ilasm tools tests errors
10 net_2_1_SUBDIRS := build smcs class tools
12 # List of test subdirs that should pass 100%
16 class/Commons.Xml.Relaxng \
18 class/Microsoft.JScript \
21 class/System.Messaging \
22 class/System.Runtime.Remoting \
23 class/System.Runtime.Serialization.Formatters.Soap \
24 class/System.Security \
25 class/System.ServiceProcess \
26 class/System.Web.Services \
30 default_centum_tests := \
35 net_2_0_centum_tests := $(centum_tests) #class/Mono.C5
37 ifdef ONLY_CENTUM_TESTS
38 TEST_SUBDIRS := $($(PROFILE)_centum_tests)
42 $(PROFILE)_SUBDIRS := $(TEST_SUBDIRS)
45 include build/rules.make
47 all-recursive $(STD_TARGETS:=-recursive): platform-check profile-check
49 .PHONY: all-local $(STD_TARGETS:=-local)
50 all-local $(STD_TARGETS:=-local):
53 # fun specialty targets
55 PROFILES = default net_2_0
57 .PHONY: all-profiles $(STD_TARGETS:=-profiles)
58 all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
62 $(MAKE) $(PROFILES:%=profile-do--%--$*)
64 # The % below looks like profile-name--target-name
66 $(MAKE) PROFILE=$(subst --, ,$*)
68 # We don't want to run the tests in parallel. We want behaviour like -k.
69 profiles-do--run-test:
70 ret=:; $(foreach p,$(PROFILES), { $(MAKE) PROFILE=$(p) run-test || ret=false; }; ) $$ret
72 # Orchestrate the bootstrap here.
73 _boot_ = all clean install
74 $(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
75 $(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--default--%
76 $(_boot_:%=profile-do--default--%): profile-do--default--%: profile-do--net_1_1_bootstrap--%
77 $(_boot_:%=profile-do--net_1_1_bootstrap--%): profile-do--net_1_1_bootstrap--%: profile-do--basic--%
80 @cd class/corlib && $(MAKE) test run-test
83 $(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
85 test-installed-compiler:
86 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=default TEST_RUNTIME=mono MCS=mcs run-test
87 $(MAKE) TEST_SUBDIRS="tests errors" PROFILE=net_2_0 TEST_RUNTIME=mono MCS=gmcs run-test
89 package := mcs-$(VERSION)
106 ScalableMonoIcon.svg \
110 dist-local: dist-default
116 dist-tarball: dist-pre
117 $(MAKE) distdir='$(package)' dist-recursive
118 tar cvjf $(package).tar.bz2 $(package)
123 # the egrep -v is kind of a hack (to get rid of the makefrags)
124 # but otherwise we have to make dist then make clean which
125 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
127 # We need to set prefix on make so class/System/Makefile can find
128 # the installed System.Xml to build properly
130 distcheck: dist-tarball
131 rm -rf InstallTest Distcheck-MCS ; \
132 mkdir InstallTest ; \
133 destdir=`cd InstallTest && pwd` ; \
134 mv $(package) Distcheck-MCS ; \
135 (cd Distcheck-MCS && \
136 $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
137 $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
138 mv Distcheck-MCS $(package) ; \
139 tar tjf $(package)/$(package).tar.bz2 |sed -e 's,/$$,,' |sort >distdist.list ; \
140 rm $(package)/$(package).tar.bz2 ; \
141 tar tjf $(package).tar.bz2 |sed -e 's,/$$,,' |sort >before.list ; \
142 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
143 cmp before.list after.list || exit 1 ; \
144 cmp before.list distdist.list || exit 1 ; \
145 rm -f before.list after.list distdist.list ; \
146 rm -rf $(package) InstallTest
149 chargedir=monocharge-`date -u +%Y%m%d` ; \
150 mkdir "$$chargedir" ; \
151 DESTDIR=`cd "$$chargedir" && pwd` ; \
152 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
153 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \
156 # A bare-bones monocharge.
159 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
160 mkdir "$$chargedir" ; \
161 DESTDIR=`cd "$$chargedir" && pwd` ; \
162 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
163 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
164 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
165 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
166 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
167 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \