2010-04-16 Sebastien Pouliot <sebastien@ximian.com>
[mono/afaerber.git] / Makefile.am
blob17c95137b57ed367f4652afa7f9b88487bb4e439
1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I .
4 MOONLIGHT_SUBDIRS =    $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir)         data
6 if CROSS_COMPILING
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
11 else
12 if ONLY_MOONLIGHT
13 SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
14 else
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
19 endif
20 endif
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
27 dist-hook:
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 # 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
39 .PHONY: get-monolite-latest 
40 get-monolite-latest:
41         -rm -fr $(mcslib)/monolite-*
42         -mkdir -p $(mcslib)
43         test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
44         test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
45         cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
46         cd $(mcslib) && mv -f monolite-* monolite
48 .PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
49 validate: do-build-mono-mcs
50         $(MAKE) mcs-do-tests
51 do-build-mono-mcs: mcs-do-clean
52         $(MAKE) all
53 mcs-do-clean:
54         cd runtime && $(MAKE) clean-local
55         cd mono/tests && $(MAKE) clean
56 mcs-do-tests:
57         cd runtime && $(MAKE) check-local
58         cd mono/tests && $(MAKE) check
60 .PHONY: compiler-tests mcs-do-compiler-tests
61 compiler-tests:
62         $(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
63 mcs-do-compiler-tests:
64         $(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
66 .PHONY: bootstrap-world
67 bootstrap-world: compiler-tests
68         $(MAKE) install
70 if MOONLIGHT
71 moon-do-build: config.h
72         @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
73           echo "Making all in $$subdir"; \
74           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) all); \
75         done;
76         cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw all
78 moon-do-clean:
79         @list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
80           echo "Making clean in $$subdir"; \
81           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean); \
82         done;
83         cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw clean
84 endif
86 win32getdeps:
87         wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
88         wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip 
89         wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip 
90         wget http://www.go-mono.com/archive/libiconv-1.7.zip 
91         wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip 
92         wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
93         unzip -n -d / pkgconfig-0.11-20020310.zip
94         unzip -n -d / glib-2.0.4-20020703.zip
95         unzip -n -d / glib-dev-2.0.4-20020703.zip
96         unzip -n -d / libiconv-1.7.zip
97         unzip -n -d / libiconv-dev-1.7.zip
98         unzip -n -d / libintl-0.10.40-20020101.zip
100 win32setup:
101         makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
103 patch-quiet:
104         find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
105         find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
107 update-csproj:
108         -rm msvc/scripts/order 
109         -mkdir msvc/scripts/inputs
110         (cd runtime; make V=1 extra_targets=csproj-local)
112 package-inputs:
113         echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
114         echo '<root>' >> msvc/scripts/order.xml
115         for i in `cat msvc/scripts/order`; do \
116                 set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
117                 cat msvc/scripts/inputs/$$2.input | \
118                 (echo "    <project dir=\"$$1\" library=\"$$2\">"; \
119                  read boot;   echo "      <boot>$$boot</boot>"; \
120                  read mcs;    echo "      <mcs>$$mcs</mcs>"; \
121                  read flags;  echo "      <flags>$$flags</flags>"; \
122                  read output; echo "      <output>$$output</output>"; \
123                  read built;  echo "      <built_sources>$$built</built_sources>"; \
124                  read libou;  echo "      <library_output>$$libou</library_output>"; \
125                  read resp;   echo "      <response>$$resp</response>"; \
126                 echo "    </project>") >> msvc/scripts/order.xml; \
127         done
128         echo "</root>" >> msvc/scripts/order.xml