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