X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2FMakefile.am;h=7bf7b5c3dedfa0122abb5dba36dd6120370cb231;hb=680fe21e6952ba6dc73ad89095b34ebb3a9bfc86;hp=07d0f0a0ef966291138fef160e94d8450ac27d50;hpb=f84f760a1c8a8c0ec6ae16b7f38d14a49d329ad7;p=mono.git diff --git a/mono/Makefile.am b/mono/Makefile.am index 07d0f0a0ef9..7bf7b5c3ded 100644 --- a/mono/Makefile.am +++ b/mono/Makefile.am @@ -1,3 +1,36 @@ +if SUPPORT_SGEN +sgen_dirs = sgen +endif -SUBDIRS = utils io-layer monoburg os cil metadata \ - arch interpreter mini dis monograph tests benchmark profiler +if CROSS_COMPILING +SUBDIRS = arch utils io-layer cil metadata $(sgen_dirs) mini dis profiler +else +if INSTALL_MONOTOUCH +SUBDIRS = arch utils io-layer metadata $(sgen_dirs) mini profiler + +monotouch-do-build: + @list='$(SUBDIRS)'; for subdir in $$list; do \ + case "x$$subdir" in \ + xmetadata ) target="monotouch-do-build" ;; \ + xmini ) target="monotouch-do-build" ;; \ + * ) target="all" ;; \ + esac; \ + echo "Making $$target in $$subdir"; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \ + done; + +monotouch-do-clean: + @list='$(SUBDIRS)'; for subdir in $$list; do \ + case "x$$subdir" in \ + xmetadata ) target="monotouch-do-clean" ;; \ + xmini ) target="monotouch-do-clean" ;; \ + * ) target="clean" ;; \ + esac; \ + echo "Making $$target in $$subdir"; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \ + done; +else +SUBDIRS = arch utils io-layer cil metadata $(sgen_dirs) mini dis tests unit-tests benchmark profiler +endif +endif +DIST_SUBDIRS = arch utils io-layer cil metadata $(sgen_dirs) mini dis tests unit-tests benchmark profiler