1 AUTOMAKE_OPTIONS = foreign
4 MOONLIGHT_SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data
7 SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
8 # Keep in sync with SUBDIRS
9 ## 'tools' is not normally built
10 DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
13 SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
15 SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
16 # Keep in sync with SUBDIRS
17 ## 'tools' is not normally built
18 DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples web tools msvc docs
22 EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs autogen.sh
24 DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
26 # Distribute the 'mcs' tree too
28 test -d $(distdir)/mcs || mkdir $(distdir)/mcs
29 d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
31 pkgconfigdir = $(libdir)/pkgconfig
32 noinst_DATA = mono-uninstalled.pc
33 DISTCLEANFILES= mono-uninstalled.pc
35 .PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
37 # building with monolite
38 mcslib = $(mcs_topdir)/class/lib
39 monolite = $(mcslib)/monolite
40 monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
42 -rm -fr $(mcslib)/monolite-*
44 test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
45 test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
46 cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
47 cd $(mcslib) && mv -f monolite-* monolite
49 compiler-tests: build-test-mono-mcs-moon
51 compiler-tests-net_2_0:
52 -rm -f $(mcs_topdir)/build/common/Consts.cs.save
53 -mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
54 cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
55 cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
56 -mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
58 $(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
60 bootstrap-world: compiler-tests
63 bootstrap-world-net_2_0: compiler-tests-net_2_0
67 .PHONY: build-test-mono-mcs-moon
68 build-test-mono-mcs-moon: do-build-moon-maybe
69 $(MAKE) mcs-do-compiler-tests
71 .PHONY: do-build-mono-mcs
72 do-build-mono-mcs: mcs-do-clean
76 moon-do-build: config.h
77 @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
78 echo "Making all in $$subdir"; \
79 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) all); \
81 cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw all
84 @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
85 echo "Making clean in $$subdir"; \
86 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean); \
88 cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw clean
92 cd runtime && $(MAKE) clean-local
93 cd mono/tests && $(MAKE) clean
94 mcs-do-compiler-tests:
95 cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
96 cd mono/tests && $(MAKE) check
99 wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
100 wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
101 wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
102 wget http://www.go-mono.com/archive/libiconv-1.7.zip
103 wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
104 wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
105 unzip -n -d / pkgconfig-0.11-20020310.zip
106 unzip -n -d / glib-2.0.4-20020703.zip
107 unzip -n -d / glib-dev-2.0.4-20020703.zip
108 unzip -n -d / libiconv-1.7.zip
109 unzip -n -d / libiconv-dev-1.7.zip
110 unzip -n -d / libintl-0.10.40-20020101.zip
113 makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
116 @echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
120 find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
121 find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
124 -rm msvc/scripts/order
125 -mkdir msvc/scripts/inputs
126 (cd runtime; make V=1 extra_targets=csproj-local)
129 echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
130 echo '<root>' >> msvc/scripts/order.xml
131 for i in `cat msvc/scripts/order`; do \
132 set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
133 cat msvc/scripts/inputs/$$2.input | \
134 (echo " <project dir=\"$$1\" library=\"$$2\">"; \
135 read boot; echo " <boot>$$boot</boot>"; \
136 read mcs; echo " <mcs>$$mcs</mcs>"; \
137 read flags; echo " <flags>$$flags</flags>"; \
138 read output; echo " <output>$$output</output>"; \
139 read built; echo " <built_sources>$$built</built_sources>"; \
140 read libou; echo " <library_output>$$libou</library_output>"; \
141 read resp; echo " <response>$$resp</response>"; \
142 echo " </project>") >> msvc/scripts/order.xml; \
144 echo "</root>" >> msvc/scripts/order.xml