Do not remap framework assembly if it's version is higher than the runtime version
[mono.git] / mono / Makefile.am
index 209387678fe3c16c691fa7c88bc7d525d1c7cf33..7bf7b5c3dedfa0122abb5dba36dd6120370cb231 100644 (file)
@@ -1,9 +1,36 @@
+if SUPPORT_SGEN
+sgen_dirs = sgen
+endif
+
 if CROSS_COMPILING
-SUBDIRS = utils io-layer cil metadata arch $(interpreter_dir) mini dis
+SUBDIRS = arch utils io-layer cil metadata $(sgen_dirs) mini dis profiler
 else
-if MOONLIGHT
-SUBDIRS = utils io-layer     metadata arch $(interpreter_dir) mini
+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 = utils io-layer cil metadata arch $(interpreter_dir) mini dis monograph tests benchmark profiler
+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