* ResolveAssemblyReference.cs: Don't resolve any dependencies for
[mcs.git] / Makefile
blob3d9d9d51638b53dafa43fdc5392456b49649da09
1 thisdir := .
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 docs
8 net_2_1_bootstrap_SUBDIRS := build mcs class
9 net_2_1_raw_SUBDIRS := build mcs class tools
10 net_2_1_SUBDIRS := tools tests errors
11 monotouch_SUBDIRS := build mcs class
12 net_3_5_SUBDIRS := build class
13 net_4_0_bootstrap_SUBDIRS := build mcs class tools
14 net_4_0_SUBDIRS := build mcs class nunit24 ilasm tools tests errors
16 # List of test subdirs that should pass 100%
17 centum_tests := \
18 class/corlib \
19 class/System \
20 class/System.XML \
21 class/Commons.Xml.Relaxng \
22 class/Cscompmgd \
23 class/Microsoft.JScript \
24 class/Mono.Posix \
25 class/Mono.Security \
26 class/System.Design \
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 \
33 class/System.Web \
34 class/System.Web.Services \
35 tests \
36 errors
38 default_centum_tests := \
39 $(centum_tests) \
40 class/System.Data
42 net_2_0_centum_tests := \
43 $(centum_tests) \
44 class/System.Core \
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.Web \
55 class/Mono.C5
57 # class/System.Web.Extensions
58 # class/Microsoft.Build.Tasks
60 # note that System.Xml.Linq is here to prevent this from being empty
61 net_3_5_centum_tests := \
62 class/System.Xml.Linq
64 ifdef ONLY_CENTUM_TESTS
65 TEST_SUBDIRS := $($(PROFILE)_centum_tests)
66 endif
68 ifdef TEST_SUBDIRS
69 $(PROFILE)_SUBDIRS := $(TEST_SUBDIRS)
70 endif
72 include build/rules.make
74 all-recursive $(STD_TARGETS:=-recursive): dir-check platform-check profile-check
76 .PHONY: all-local $(STD_TARGETS:=-local)
77 all-local $(STD_TARGETS:=-local):
80 dir-check:
81 @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
83 # fun specialty targets
85 PROFILES = net_2_0 net_3_5 net_4_0
87 .PHONY: all-profiles $(STD_TARGETS:=-profiles)
88 all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
91 profiles-do--%:
92 $(MAKE) $(PROFILES:%=profile-do--%--$*)
94 # The % below looks like profile-name--target-name
95 profile-do--%:
96 $(MAKE) PROFILE=$(subst --, ,$*)
98 # We don't want to run the tests in parallel. We want behaviour like -k.
99 profiles-do--run-test:
100 ret=:; $(foreach p,$(PROFILES), { $(MAKE) PROFILE=$(p) run-test || ret=false; }; ) $$ret
102 # Orchestrate the bootstrap here.
103 _boot_ = all clean install
104 $(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--net_4_0_bootstrap--%
105 $(_boot_:%=profile-do--net_4_0_bootstrap--%): profile-do--net_4_0_bootstrap--%: profile-do--net_2_0--%
106 $(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
107 $(_boot_:%=profile-do--net_2_1--%): profile-do--net_2_1--%: profile-do--net_2_1_raw--%
108 $(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--net_2_1_bootstrap--%
109 $(_boot_:%=profile-do--net_2_1_raw--%): profile-do--net_2_1_raw--%: profile-do--net_2_1_bootstrap--%
110 $(_boot_:%=profile-do--net_2_1_bootstrap--%): profile-do--net_2_1_bootstrap--%: profile-do--net_2_0--%
111 $(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--net_2_0_bootstrap--%
112 $(_boot_:%=profile-do--net_2_0_bootstrap--%): profile-do--net_2_0_bootstrap--%: profile-do--basic--%
114 testcorlib:
115 @cd class/corlib && $(MAKE) test run-test
117 compiler-tests:
118 $(MAKE) TEST_SUBDIRS="tests errors" run-test-profiles
120 package := mcs-$(VERSION)
122 DISTFILES = \
123 AUTHORS \
124 ChangeLog \
125 COPYING \
126 COPYING.LIB \
127 INSTALL.txt \
128 LICENSE \
129 LICENSE.GPL \
130 LICENSE.LGPL \
131 LICENSE.MPL \
132 Makefile \
133 mkinstalldirs \
134 MIT.X11 \
135 MonoIcon.png \
136 README \
137 ScalableMonoIcon.svg \
138 winexe.in \
139 nunit.key
141 dist-local: dist-default
143 dist-pre:
144 rm -rf $(package)
145 mkdir $(package)
147 dist-tarball: dist-pre
148 $(MAKE) distdir='$(package)' dist-recursive
149 tar cvjf $(package).tar.bz2 $(package)
151 dist: dist-tarball
152 rm -rf $(package)
154 # the egrep -v is kind of a hack (to get rid of the makefrags)
155 # but otherwise we have to make dist then make clean which
156 # is sort of not kosher. And it breaks with DIST_ONLY_SUBDIRS.
158 # We need to set prefix on make so class/System/Makefile can find
159 # the installed System.Xml to build properly
161 distcheck: dist-tarball
162 rm -rf InstallTest Distcheck-MCS ; \
163 mkdir InstallTest ; \
164 destdir=`cd InstallTest && pwd` ; \
165 mv $(package) Distcheck-MCS ; \
166 (cd Distcheck-MCS && \
167 $(MAKE) prefix=$(prefix) && $(MAKE) test && $(MAKE) install DESTDIR="$$destdir" && \
168 $(MAKE) clean && $(MAKE) dist || exit 1) || exit 1 ; \
169 mv Distcheck-MCS $(package) ; \
170 tar tjf $(package)/$(package).tar.bz2 |sed -e 's,/$$,,' |sort >distdist.list ; \
171 rm $(package)/$(package).tar.bz2 ; \
172 tar tjf $(package).tar.bz2 |sed -e 's,/$$,,' |sort >before.list ; \
173 find $(package) |egrep -v '(makefrag|response)' |sed -e 's,/$$,,' |sort >after.list ; \
174 cmp before.list after.list || exit 1 ; \
175 cmp before.list distdist.list || exit 1 ; \
176 rm -f before.list after.list distdist.list ; \
177 rm -rf $(package) InstallTest
179 monocharge:
180 chargedir=monocharge-`date -u +%Y%m%d` ; \
181 mkdir "$$chargedir" ; \
182 DESTDIR=`cd "$$chargedir" && pwd` ; \
183 $(MAKE) install DESTDIR="$$DESTDIR" || exit 1 ; \
184 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \
185 rm -rf "$$chargedir"
187 # A bare-bones monocharge.
189 monocharge-lite:
190 chargedir=monocharge-lite-`date -u +%Y%m%d` ; \
191 mkdir "$$chargedir" ; \
192 DESTDIR=`cd "$$chargedir" && pwd` ; \
193 $(MAKE) -C mcs install DESTDIR="$$DESTDIR" || exit 1; \
194 $(MAKE) -C class/corlib install DESTDIR="$$DESTDIR" || exit 1; \
195 $(MAKE) -C class/System install DESTDIR="$$DESTDIR" || exit 1; \
196 $(MAKE) -C class/System.XML install DESTDIR="$$DESTDIR" || exit 1; \
197 $(MAKE) -C class/Mono.CSharp.Debugger install DESTDIR="$$DESTDIR" || exit 1; \
198 tar cvjf "$$chargedir".tar.bz2 "$$chargedir" ; \
199 rm -rf "$$chargedir"