1 AUTOMAKE_OPTIONS = foreign
4 SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
6 # Keep in sync with SUBDIRS
7 ## 'tools' is not normally built
8 DIST_SUBDIRS = po libgc $(eglib_dir) mono ikvm-native support data runtime scripts man samples web tools msvc docs
10 EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs
12 DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
14 # Distribute the 'mcs' tree too
16 test -d $(distdir)/mcs || mkdir $(distdir)/mcs
17 d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_1_1 distdir=$$d dist-recursive
18 d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
20 pkgconfigdir = $(libdir)/pkgconfig
21 noinst_DATA = mono-uninstalled.pc
22 DISTCLEANFILES= mono-uninstalled.pc
24 .PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
26 # building with monolite
27 mcslib = $(mcs_topdir)/class/lib
28 monolite = $(mcslib)/monolite
29 monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
31 -rm -fr $(mcslib)/monolite-*
33 test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
34 test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
35 cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
36 cd $(mcslib) && mv -f monolite-* monolite
38 compiler-tests: build-test-mono-mcs-moon
40 compiler-tests-net_2_0:
41 -rm -f $(mcs_topdir)/build/common/Consts.cs.save
42 -mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
43 cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
44 cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
45 -mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
47 $(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
49 bootstrap-world: compiler-tests
52 bootstrap-world-net_2_0: compiler-tests-net_2_0
56 .PHONY: build-test-mono-mcs-moon
57 build-test-mono-mcs-moon: do-build-moon-maybe
58 $(MAKE) mcs-do-compiler-tests
60 .PHONY: do-build-mono-mcs
61 do-build-mono-mcs: mcs-do-clean
64 .PHONY: do-build-moon-maybe
65 do-build-moon-maybe: do-build-mono-mcs
66 cd runtime && $(MAKE) moon-do-build
69 cd runtime && $(MAKE) clean-local
70 cd mono/tests && $(MAKE) clean
71 mcs-do-compiler-tests:
72 cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
73 cd mono/tests && $(MAKE) check
76 wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
77 wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
78 wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
79 wget http://www.go-mono.com/archive/libiconv-1.7.zip
80 wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
81 wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
82 unzip -n -d / pkgconfig-0.11-20020310.zip
83 unzip -n -d / glib-2.0.4-20020703.zip
84 unzip -n -d / glib-dev-2.0.4-20020703.zip
85 unzip -n -d / libiconv-1.7.zip
86 unzip -n -d / libiconv-dev-1.7.zip
87 unzip -n -d / libintl-0.10.40-20020101.zip
90 makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
93 @echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
97 find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
98 find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
101 -rm msvc/scripts/order
102 -mkdir msvc/scripts/inputs
103 (cd runtime; make V=1 extra_targets=csproj-local)
106 echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
107 echo '<root>' >> msvc/scripts/order.xml
108 for i in `cat msvc/scripts/order`; do \
109 set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
110 cat msvc/scripts/inputs/$$2.input | \
111 (echo " <project dir=\"$$1\" library=\"$$2\">"; \
112 read boot; echo " <boot>$$boot</boot>"; \
113 read mcs; echo " <mcs>$$mcs</mcs>"; \
114 read flags; echo " <flags>$$flags</flags>"; \
115 read output; echo " <output>$$output</output>"; \
116 read built; echo " <built_sources>$$built</built_sources>"; \
117 read libou; echo " <library_output>$$libou</library_output>"; \
118 read resp; echo " <response>$$resp</response>"; \
119 echo " </project>") >> msvc/scripts/order.xml; \
121 echo "</root>" >> msvc/scripts/order.xml