Add missing files from last commit
[mono-project.git] / Makefile.am
blob74f28ed2bcf78a4a5485cdde201508d73eb4c1cf
1 ACLOCAL_AMFLAGS = -I m4
3 MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
5 if CROSS_COMPILING
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
10 else
11 if ONLY_MOONLIGHT
12 SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
13 else
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
18 endif
19 endif
21 EXTRA_DIST= \
22             LICENSE \
23             autogen.sh \
24             build-mingw32.sh \
25             mkinstalldirs \
26             mono-uninstalled.pc.in \
27             winconfig.h
29 DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
31 # Distribute the 'mcs' tree too
32 GIT_DIR ?= $(srcdir)/.git
33 dist-hook:
34         test -d $(distdir)/mcs || mkdir $(distdir)/mcs
35         d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
36 # Disable this for now because it is very slow and causes wrench to timeout:
37 #       test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
39 pkgconfigdir = $(libdir)/pkgconfig
40 noinst_DATA = mono-uninstalled.pc
41 DISTCLEANFILES= mono-uninstalled.pc
43 # building with monolite
44 mcslib = $(mcs_topdir)/class/lib
45 monolite = $(mcslib)/monolite
46 mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
47 monolite_url = http://mono.ximian.com/daily/monolite-$(mono_corlib_version)-latest.tar.gz
48 .PHONY: get-monolite-latest 
49 get-monolite-latest:
50         -rm -fr $(mcslib)/monolite-*
51         -mkdir -p $(mcslib)
52         test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
53         test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
54         cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
55         cd $(mcslib) && mv -f monolite-* monolite
57 .PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
58 validate: do-build-mono-mcs
59         $(MAKE) mcs-do-tests
60 do-build-mono-mcs: mcs-do-clean
61         $(MAKE) all
62 mcs-do-clean:
63         cd runtime && $(MAKE) clean-local
64         cd mono/tests && $(MAKE) clean
65 mcs-do-tests:
66         cd runtime && $(MAKE) check-local
67         cd mono/tests && $(MAKE) check
69 .PHONY: compiler-tests mcs-do-compiler-tests
70 compiler-tests:
71         $(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
72 mcs-do-compiler-tests:
73         $(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
75 .PHONY: bootstrap-world
76 bootstrap-world: compiler-tests
77         $(MAKE) install
79 if MOONLIGHT
80 moon-do-build: config.h
81         @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
82           case "x$$subdir" in \
83                 xmono ) target="moon-do-build";; \
84                 * ) target="all";; \
85           esac; \
86           echo "Making $$target in $$subdir"; \
87           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
88         done;
89         (cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-build)
91 moon-do-clean:
92         @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
93           case "x$$subdir" in \
94                 xmono ) target="moon-do-clean";; \
95                 * ) target="clean";; \
96           esac; \
97           echo "Making $$target in $$subdir"; \
98           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
99         done;
100         (cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-clean)
102 endif
104 win32getdeps:
105         wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
106         wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip 
107         wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip 
108         wget http://www.go-mono.com/archive/libiconv-1.7.zip 
109         wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip 
110         wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
111         unzip -n -d / pkgconfig-0.11-20020310.zip
112         unzip -n -d / glib-2.0.4-20020703.zip
113         unzip -n -d / glib-dev-2.0.4-20020703.zip
114         unzip -n -d / libiconv-1.7.zip
115         unzip -n -d / libiconv-dev-1.7.zip
116         unzip -n -d / libintl-0.10.40-20020101.zip
118 win32setup:
119         makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
121 patch-quiet:
122         find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
123         find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
125 update-csproj:
126         -rm msvc/scripts/order 
127         -mkdir msvc/scripts/inputs
128         (cd runtime; make V=1 extra_targets=csproj-local)
130 package-inputs:
131         echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
132         echo '<root>' >> msvc/scripts/order.xml
133         for i in `cat msvc/scripts/order`; do \
134                 set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
135                 cat msvc/scripts/inputs/$$2.input | \
136                 (echo "    <project dir=\"$$1\" library=\"$$2\">"; \
137                  read boot;   echo "      <boot>$$boot</boot>"; \
138                  read mcs;    echo "      <mcs>$$mcs</mcs>"; \
139                  read flags;  echo "      <flags>$$flags</flags>"; \
140                  read output; echo "      <output>$$output</output>"; \
141                  read built;  echo "      <built_sources>$$built</built_sources>"; \
142                  read libou;  echo "      <library_output>$$libou</library_output>"; \
143                  read fx_ver; echo "      <fx_version>$$fx_ver</fx_version>"; \
144                  read resp;   echo "      <response>$$resp</response>"; \
145                 echo "    </project>") >> msvc/scripts/order.xml; \
146         done
147         echo "</root>" >> msvc/scripts/order.xml