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