Remove negatives from z format; patch from Ed Thomson <ethomson@sourcegear.com>
[mono.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = @libgc_dir@ mono doc docs runtime scripts man data
4
5 dnl EXTRA_SUBDIRS = libgc
6
7 EXTRA_DIST= mono.pc.in mono.spec.in
8
9 pkgconfigdir = $(libdir)/pkgconfig
10 pkgconfig_DATA= mono.pc
11 DISTCLEANFILES= mono.pc
12
13 #
14 # The following target is used to compile and install
15 # mono and mcs without running into the out-of-sync
16 # problems by doing the compilation in the right order.
17 #
18
19 fullbuild: remove-binaries mcs-tree-safe-build xinstall-runtime mcs-rest install
20
21 mcs-tree-safe-build:
22         (cd ../mcs/jay; make)
23         (cd ../mcs/mcs; make MCS=mcs)
24         (cd ../mcs/class/corlib; make MCS=mcs)
25         cp ../mcs/class/lib/corlib.dll runtime
26         cp ../mcs/mcs/mcs.exe runtime
27
28 xinstall-runtime:
29         if echo $(SUBDIRS) | grep "libgc " > /dev/null; then (cd libgc; make && make install); fi
30         (cd mono; make && make install)
31
32 mcs-rest:
33         (cd ../mcs/class; make)
34
35 remove-binaries:
36         rm ../mcs/class/lib/corlib.dll ../mcs/mcs/mcs.exe runtime/*dll runtime/*.exe >& /dev/null; echo