X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2FMakefile.am;h=0345c9ddd82d3832a9b3b0ca5dd5d7b5bca3e504;hb=675328ef1686ce884326df89f8c570943e2d20d2;hp=07d0f0a0ef966291138fef160e94d8450ac27d50;hpb=a8b22e0e864c03b8cfd2f2cb5a8075b6611c5553;p=mono.git diff --git a/mono/Makefile.am b/mono/Makefile.am index 07d0f0a0ef9..0345c9ddd82 100644 --- a/mono/Makefile.am +++ b/mono/Makefile.am @@ -1,3 +1,59 @@ +if CROSS_COMPILING +SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis profiler +else +if INSTALL_MONOTOUCH +SUBDIRS = utils io-layer metadata arch mini profiler -SUBDIRS = utils io-layer monoburg os cil metadata \ - arch interpreter mini dis monograph tests benchmark 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 +if MOONLIGHT +SUBDIRS = arch utils io-layer metadata mini + +moon-do-build: + @list='$(SUBDIRS)'; for subdir in $$list; do \ + case "x$$subdir" in \ + xmetadata ) target="moon-do-build" ;; \ + xmini ) target="moon-do-build" ;; \ + * ) target="all" ;; \ + esac; \ + echo "Making $$target in $$subdir"; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \ + done; + +moon-do-clean: + @list='$(SUBDIRS)'; for subdir in $$list; do \ + case "x$$subdir" in \ + xmetadata ) target="moon-do-clean" ;; \ + xmini ) target="moon-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 $(interpreter_dir) mini dis monograph tests benchmark profiler +endif +endif +endif +DIST_SUBDIRS = arch utils io-layer cil metadata interpreter mini dis monograph tests benchmark profiler