* SoapBinding.cs: Added missing attributes. The class is not sealed.
[mono.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = @libgc_dir@ mono @ikvm_jni_dir@ docs runtime scripts man data samples support web
4
5 # Keep in sync with SUBDIRS
6 DIST_SUBDIRS = libgc mono ikvm-jni docs runtime scripts man data samples support web
7
8 EXTRA_DIST= mono.pc.in mono.spec.in mint.pc.in
9
10 pkgconfigdir = $(libdir)/pkgconfig
11 if JIT_SUPPORTED
12 pkgconfig_DATA= mono.pc mint.pc
13 else
14 pkgconfig_DATA= mint.pc
15 endif
16 DISTCLEANFILES= mono.pc mint.pc
17
18 #
19 # The following target is used to compile and install
20 # mono and mcs without running into the out-of-sync
21 # problems by doing the compilation in the right order.
22 #
23
24 mcs_topdir=$(top_srcdir)/../mcs
25
26 .PHONY: tmpinst-dir tmpinst-runtime bootstrap stage1 stage2 stage3 stage1-mono stage1-mcs
27
28 if USE_JIT
29 mono_runtime = mono/mini/mono
30 else
31 mono_runtime = mono/interpreter/mint
32 endif
33
34 bootstrap: stage3
35         rm -f $(top_srcdir)/runtime/*/*.dll $(top_srcdir)/runtime/*.exe
36         $(MAKE)
37
38 # Build stripped down versions of 'mcs', 'mscorlib.dll' and 'System.dll' with installed 'mcs'
39 ## remove System.Xml.dll since it's a soft-dependency of System.dll
40 stage1-mcs: 
41         rm -f $(mcs_topdir)/mcs/mcs.exe $(mcs_topdir)/class/lib/default/mscorlib.dll
42         rm -f $(mcs_topdir)/class/lib/default/System.dll $(mcs_topdir)/class/lib/default/System.Xml.dll
43         cd $(mcs_topdir)/jay && $(MAKE)
44         cd $(mcs_topdir)/mcs && $(MAKE) PROFILE=default BOOTSTRAP_MCS="mcs -d:BOOTSTRAP_WITH_OLDLIB"
45         cd $(mcs_topdir)/class/corlib && $(MAKE) PROFILE=default BOOTSTRAP_MCS="mcs -d:BOOTSTRAP_WITH_OLDLIB"
46         cd $(mcs_topdir)/class/System && $(MAKE) PROFILE=default BOOTSTRAP_MCS="mcs -d:BOOTSTRAP_WITH_OLDLIB" MCS="mcs -d:BOOTSTRAP_WITH_OLDLIB"
47
48 # Build enough of 'mono' to run the stage1 mcs.exe
49 stage1-mono: $(CONFIG_HEADER)
50         if test -z "$(libgc_dir)"; then :; else cd libgc && $(MAKE) ; fi
51         cd mono && $(MAKE)
52
53 # (takes advantage of 'make -j': independent subtasks are separate dependencies)
54 stage1: stage1-mcs stage1-mono tmpinst-dir
55         $(MAKE) tmpinst-runtime
56
57 # Use stage1 'mcs', 'mscorlib.dll' and 'System.dll' to build fuller versions
58 # FIXME: Mono.CSharp.Debugger is built only on Linux in the MCS tree.
59 #        At least the SymbolWriter stuff seems portable enough.  So either
60 #        fix the MCS tree, or fix it here
61 stage2: stage1
62         set -e ; \
63         tmpinst=`cd _tmpinst && pwd` ; mcs_topdir=`cd $(mcs_topdir) && pwd` ; \
64         PATH=$$tmpinst/bin:$$PATH; export PATH ; \
65         cd $$mcs_topdir/mcs && $(MAKE) PROFILE=default ; \
66         cd $$mcs_topdir/class/corlib && $(MAKE) PROFILE=default ; \
67         cd $$mcs_topdir/class/System && $(MAKE) PROFILE=default ; \
68         cd $$mcs_topdir/class/Mono.CSharp.Debugger && $(MAKE) PROFILE=default
69         $(MAKE) tmpinst-runtime
70
71 # Use stage2 binaries to build the whole tree
72 stage3: stage2
73         tmpinst=`cd _tmpinst && pwd` ; \
74         PATH=$$tmpinst/bin:$$PATH ; export PATH ; \
75         cd $(mcs_topdir) && $(MAKE)
76         -rm -fr _tmpinst
77
78 tmpinst-dir:
79         set -e ; \
80         rootme=`pwd`; tmpinst=$$rootme/_tmpinst ; \
81         mkdir -p $$tmpinst $$tmpinst/bin $$tmpinst/lib ; \
82         echo '#! /bin/sh' > $$tmpinst/bin/mono ; \
83         echo 'if test -z "$$MONO_PATH" ; then MONO_PATH="'"$$tmpinst/lib"'"' >> $$tmpinst/bin/mono ; \
84         echo 'else MONO_PATH=$${MONO_PATH}:"'"$$tmpinst/lib"'" ; fi' >> $$tmpinst/bin/mono ; \
85         echo 'export MONO_PATH' >> $$tmpinst/bin/mono ; \
86         echo 'exec "'"$$rootme/libtool"'" --mode=execute "'"$$rootme/$(mono_runtime)"'" "$$@"' >> $$tmpinst/bin/mono ; \
87         echo '#! /bin/sh' > $$tmpinst/bin/mcs ; \
88         echo 'exec "'"$$tmpinst/bin/mono"'" "'"$$tmpinst/lib/mcs.exe"'" "$$@"' >> $$tmpinst/bin/mcs ; \
89         chmod +x $$tmpinst/bin/mono $$tmpinst/bin/mcs
90
91 tmpinst-runtime:
92         tmpinst=`cd _tmpinst && pwd` && \
93         mv -f $(mcs_topdir)/mcs/mcs.exe $$tmpinst/lib && \
94         mv -f $(mcs_topdir)/class/lib/default/mscorlib.dll $(mcs_topdir)/class/lib/default/System.dll $$tmpinst/lib && \
95         if test -f $(mcs_topdir)/class/lib/default/Mono.CSharp.Debugger.dll; then \
96           mv -f $(mcs_topdir)/class/lib/default/Mono.CSharp.Debugger.dll $$tmpinst/lib ; else : ; fi
97
98 # Obsolete target -- don't use.
99 .PHONY: fullbuild
100 fullbuild: bootstrap
101         $(MAKE) install
102         echo "*** 'fullbuild' is an obsolete target. Use 'make bootstrap && make install'."
103         exit 1
104
105 win32getdeps:
106         wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
107         wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip 
108         wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip 
109         wget http://www.go-mono.com/archive/libiconv-1.7.zip 
110         wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip 
111         wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
112         wget http://www.jroith.de/nsis4cygwin.zip
113         unzip -n -d / pkgconfig-0.11-20020310.zip
114         unzip -n -d / glib-2.0.4-20020703.zip
115         unzip -n -d / glib-dev-2.0.4-20020703.zip
116         unzip -n -d / libiconv-1.7.zip
117         unzip -n -d / libiconv-dev-1.7.zip
118         unzip -n -d / libintl-0.10.40-20020101.zip
119         unzip -n -d / nsis4cygwin.zip
120
121 win32setup:
122         cp /usr/lib/libglib-2.0-0.dll @prefix@/lib
123         cp /usr/lib/iconv.dll @prefix@/lib
124         cp /usr/lib/libgmodule-2.0-0.dll @prefix@/lib
125         cp /usr/lib/libgobject-2.0-0.dll @prefix@/lib
126         cp /usr/lib/libgthread-2.0-0.dll @prefix@/lib
127         cp /usr/lib/libintl-1.dll @prefix@/lib
128         makensis /DMILESTONE=@VERSION@ /DSOURCE_INSTALL_DIR=`cygpath -a -w @prefix@`\\* monowiz.win32.nsi