1 ACLOCAL_AMFLAGS = -I m4
3 MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
6 SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir)
7 # Keep in sync with SUBDIRS
8 ## 'tools' is not normally built
9 DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs
12 SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
14 SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
15 # Keep in sync with SUBDIRS
16 ## 'tools' is not normally built
17 DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
26 mono-uninstalled.pc.in \
30 DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
32 # Distribute the 'mcs' tree too
33 GIT_DIR ?= $(srcdir)/.git
35 test -d $(distdir)/mcs || mkdir $(distdir)/mcs
36 d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
37 # Disable this for now because it is very slow and causes wrench to timeout:
38 # test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
40 pkgconfigdir = $(libdir)/pkgconfig
41 noinst_DATA = mono-uninstalled.pc
42 DISTCLEANFILES= mono-uninstalled.pc
44 # building with monolite
45 mcslib = $(mcs_topdir)/class/lib
46 monolite = $(mcslib)/monolite
47 mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
48 monolite_url = http://mono.ximian.com/daily/monolite-$(mono_corlib_version)-latest.tar.gz
49 .PHONY: get-monolite-latest
51 -rm -fr $(mcslib)/monolite-*
53 test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
54 test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
55 cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
56 cd $(mcslib) && mv -f monolite-* monolite
58 .PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
59 validate: do-build-mono-mcs
61 do-build-mono-mcs: mcs-do-clean
64 cd runtime && $(MAKE) clean-local
65 cd mono/tests && $(MAKE) clean
67 cd runtime && $(MAKE) check-local
68 cd mono/tests && $(MAKE) check
70 .PHONY: compiler-tests mcs-do-compiler-tests
72 $(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
73 mcs-do-compiler-tests:
74 $(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
76 .PHONY: bootstrap-world
77 bootstrap-world: compiler-tests
81 moon-do-build: config.h
82 @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
84 xmono ) target="moon-do-build";; \
87 echo "Making $$target in $$subdir"; \
88 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
90 (cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-build)
93 @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
95 xmono ) target="moon-do-clean";; \
96 * ) target="clean";; \
98 echo "Making $$target in $$subdir"; \
99 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
101 (cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-clean)
106 wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
107 wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
108 wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
109 wget http://www.go-mono.com/archive/libiconv-1.7.zip
110 wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
111 wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
112 unzip -n -d / pkgconfig-0.11-20020310.zip
113 unzip -n -d / glib-2.0.4-20020703.zip
114 unzip -n -d / glib-dev-2.0.4-20020703.zip
115 unzip -n -d / libiconv-1.7.zip
116 unzip -n -d / libiconv-dev-1.7.zip
117 unzip -n -d / libintl-0.10.40-20020101.zip
120 makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
123 find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
124 find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
127 -rm msvc/scripts/order
128 -mkdir msvc/scripts/inputs
129 (cd runtime; make V=1 extra_targets=csproj-local)
132 echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
133 echo '<root>' >> msvc/scripts/order.xml
134 for i in `cat msvc/scripts/order`; do \
135 set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
136 cat msvc/scripts/inputs/$$2.input | \
137 (echo " <project dir=\"$$1\" library=\"$$2\">"; \
138 read boot; echo " <boot>$$boot</boot>"; \
139 read mcs; echo " <mcs>$$mcs</mcs>"; \
140 read flags; echo " <flags>$$flags</flags>"; \
141 read output; echo " <output>$$output</output>"; \
142 read built; echo " <built_sources>$$built</built_sources>"; \
143 read libou; echo " <library_output>$$libou</library_output>"; \
144 read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
145 read resp; echo " <response>$$resp</response>"; \
146 echo " </project>") >> msvc/scripts/order.xml; \
148 echo "</root>" >> msvc/scripts/order.xml