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