Share OnCookieAdd implementation with Mono (no #if TARGET_J2EE)
[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 $(vs_files)
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 pkgconfig_DATA= mono.pc mint.pc
22 else
23 pkgconfig_DATA= mint.pc
24 endif
25 noinst_DATA = mono-uninstalled.pc
26 DISTCLEANFILES= mono.pc mint.pc mono-uninstalled.pc
27
28 .PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
29
30 # building with monolite
31 mcslib = $(mcs_topdir)/class/lib
32 monolite = $(mcslib)/monolite
33 get-monolite-latest:
34         -rm -fr $(mcslib)/monolite-*
35         test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
36         test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
37         cd $(mcslib) && { wget -O- http://www.go-mono.com/daily/monolite-latest.tar.gz | gzip -d | tar xf - ; }
38         cd $(mcslib) && mv -f monolite-* monolite
39
40 compiler-tests: mcs-do-clean
41         $(MAKE) all
42         $(MAKE) mcs-do-compiler-tests
43
44 compiler-tests-net_2_0:
45         cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
46         cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
47         $(MAKE) all
48         $(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
49
50 bootstrap-world: compiler-tests
51         $(MAKE) install
52
53 bootstrap-world-net_2_0: compiler-tests-net_2_0
54         $(MAKE) install
55
56 # internal targets
57 mcs-do-clean:
58         cd runtime && $(MAKE) clean-local
59 mcs-do-compiler-tests:
60         cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
61
62 win32getdeps:
63         wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
64         wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip 
65         wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip 
66         wget http://www.go-mono.com/archive/libiconv-1.7.zip 
67         wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip 
68         wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
69         unzip -n -d / pkgconfig-0.11-20020310.zip
70         unzip -n -d / glib-2.0.4-20020703.zip
71         unzip -n -d / glib-dev-2.0.4-20020703.zip
72         unzip -n -d / libiconv-1.7.zip
73         unzip -n -d / libiconv-dev-1.7.zip
74         unzip -n -d / libintl-0.10.40-20020101.zip
75
76 win32setup:
77         makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
78
79 bootstrap: all
80         @echo "*** 'make bootstrap' is obsolete.  Just run 'make' to perform a combined mono+mcs build"
81         exit 1