[xbuild] Make Engine.DefaultToolsVersion 2.0 .
[mono.git] / mono / Makefile.am
index 0c1c2e3ad53d86c8a9ec482d01e08697cc4249e3..98be7cfd0dc1ee21d2d354dd54d18398e735197e 100644 (file)
@@ -1,7 +1,33 @@
-# the handles dir doesn't apply to windows
-if ! PLATFORM_WIN32
-HANDLES = handles
-endif
+if CROSS_COMPILING
+SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis
+else
+if MOONLIGHT
+SUBDIRS = utils io-layer metadata arch 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;
 
-SUBDIRS = utils io-layer monoburg os cil metadata dis \
-      arch monograph interpreter mini tests benchmark $(HANDLES) profiler
+else
+SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis monograph tests benchmark profiler
+endif
+endif
+DIST_SUBDIRS = utils io-layer cil metadata arch interpreter mini dis monograph tests benchmark profiler