updating to the latest module.
[mono.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2 ACLOCAL_AMFLAGS = -I .
3
4 SUBDIRS = $(libgc_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web 
5
6 # Keep in sync with SUBDIRS
7 ## 'tools' is not normally built
8 DIST_SUBDIRS = libgc mono ikvm-native support docs data runtime scripts man samples web tools 
9
10 EXTRA_DIST= mono.pc.in mono.spec.in mint.pc.in
11
12 # Distribute the 'mcs' tree too
13 dist-hook:
14         test -d $(distdir)/mcs || mkdir $(distdir)/mcs
15         d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=default distdir=$$d dist-recursive
16
17 pkgconfigdir = $(libdir)/pkgconfig
18 if JIT_SUPPORTED
19 pkgconfig_DATA= mono.pc mint.pc
20 else
21 pkgconfig_DATA= mint.pc
22 endif
23 DISTCLEANFILES= mono.pc mint.pc
24
25 .PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
26
27 # building with monolite
28 mcslib = $(mcs_topdir)/class/lib
29 monolite = $(mcslib)/monolite
30 get-monolite-latest:
31         -rm -fr $(mcslib)/monolite-*
32         test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
33         test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
34         cd $(mcslib) && { wget -O- http://www.go-mono.com/daily/monolite-latest.tar.gz | gzip -d | tar xf - ; }
35         cd $(mcslib) && mv -f monolite-* monolite
36
37 compiler-tests: mcs-do-clean
38         $(MAKE) all
39         $(MAKE) mcs-do-compiler-tests
40
41 compiler-tests-net_2_0:
42         cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
43         cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
44         $(MAKE) all
45         $(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
46
47 bootstrap-world: compiler-tests
48         $(MAKE) install
49
50 bootstrap-world-net_2_0: compiler-tests-net_2_0
51         $(MAKE) install
52
53 # internal targets
54 mcs-do-clean:
55         cd runtime && $(MAKE) clean-local
56 mcs-do-compiler-tests:
57         cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
58
59 win32getdeps:
60         wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
61         wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip 
62         wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip 
63         wget http://www.go-mono.com/archive/libiconv-1.7.zip 
64         wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip 
65         wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
66         unzip -n -d / pkgconfig-0.11-20020310.zip
67         unzip -n -d / glib-2.0.4-20020703.zip
68         unzip -n -d / glib-dev-2.0.4-20020703.zip
69         unzip -n -d / libiconv-1.7.zip
70         unzip -n -d / libiconv-dev-1.7.zip
71         unzip -n -d / libintl-0.10.40-20020101.zip
72
73 win32setup:
74         makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
75
76 bootstrap: all
77         @echo "*** 'make bootstrap' is obsolete.  Just run 'make' to perform a combined mono+mcs build"
78         exit 1