X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2FMakefile.am;h=ef41dfeef5c4c27a659ea515e327bfa2c09c9ebf;hb=87a2e8742e14007da3126d6577fce6796d1e165d;hp=07aa76caabb96a7bcf703a5bde21621bc6c4a03e;hpb=a5e40870bd3bb18e1681afed6c71e7edfdb80534;p=mono.git diff --git a/mono/Makefile.am b/mono/Makefile.am index 07aa76caabb..ef41dfeef5c 100644 --- a/mono/Makefile.am +++ b/mono/Makefile.am @@ -1,3 +1,36 @@ +if SUPPORT_SGEN +sgen_dirs = sgen +endif -SUBDIRS = utils io-layer 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 = utils io-layer metadata arch $(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