New test.
[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 vs_files = genmdesc.vcproj libmono.vcproj mono.vcproj mono.sln
11
12 EXTRA_DIST= mono.pc.in mint.pc.in mono-uninstalled.pc.in dotnet.pc.in mono-cairo.pc.in LICENSE $(vs_files)
13
14 DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
15
16 # Distribute the 'mcs' tree too
17 dist-hook:
18         test -d $(distdir)/mcs || mkdir $(distdir)/mcs
19         d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=default distdir=$$d dist-recursive
20
21 pkgconfigdir = $(libdir)/pkgconfig
22 if JIT_SUPPORTED
23 if INTERP_SUPPORTED
24 pkgconfig_DATA= mono.pc mint.pc dotnet.pc mono-cairo.pc
25 else
26 pkgconfig_DATA= mono.pc dotnet.pc mono-cairo.pc
27 endif
28 else
29 pkgconfig_DATA= mint.pc mono-cairo.pc
30 endif
31 noinst_DATA = mono-uninstalled.pc
32 DISTCLEANFILES= mono.pc mint.pc mono-uninstalled.pc dotnet.pc mono-cairo.pc
33
34 .PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
35
36 # building with monolite
37 mcslib = $(mcs_topdir)/class/lib
38 monolite = $(mcslib)/monolite
39 get-monolite-latest:
40         -rm -fr $(mcslib)/monolite-*
41         test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
42         test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
43         cd $(mcslib) && { wget -O- http://www.go-mono.com/daily/monolite-latest.tar.gz | gzip -d | tar xf - ; }
44         cd $(mcslib) && mv -f monolite-* monolite
45
46 compiler-tests: mcs-do-clean
47         $(MAKE) all
48         $(MAKE) mcs-do-compiler-tests
49
50 compiler-tests-net_2_0:
51         -rm -f $(mcs_topdir)/build/common/Consts.cs.save
52         -mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
53         cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
54         cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
55         -mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
56         $(MAKE) all
57         $(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
58
59 bootstrap-world: compiler-tests
60         $(MAKE) install
61
62 bootstrap-world-net_2_0: compiler-tests-net_2_0
63         $(MAKE) install
64
65 # internal targets
66 mcs-do-clean:
67         cd runtime && $(MAKE) clean-local
68         cd mono/tests && $(MAKE) clean
69 mcs-do-compiler-tests:
70         cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
71         cd mono/tests && $(MAKE) check
72
73 win32getdeps:
74         wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
75         wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip 
76         wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip 
77         wget http://www.go-mono.com/archive/libiconv-1.7.zip 
78         wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip 
79         wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
80         unzip -n -d / pkgconfig-0.11-20020310.zip
81         unzip -n -d / glib-2.0.4-20020703.zip
82         unzip -n -d / glib-dev-2.0.4-20020703.zip
83         unzip -n -d / libiconv-1.7.zip
84         unzip -n -d / libiconv-dev-1.7.zip
85         unzip -n -d / libintl-0.10.40-20020101.zip
86
87 win32setup:
88         makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
89
90 bootstrap: all
91         @echo "*** 'make bootstrap' is obsolete.  Just run 'make' to perform a combined mono+mcs build"
92         exit 1