[msvc] Update csproj files
[mono.git] / mono / Makefile.am
index 07d0f0a0ef966291138fef160e94d8450ac27d50..8c9c2cbac2f6ef09407d2aa29ad319471b20cb44 100644 (file)
@@ -1,3 +1,40 @@
+if SUPPORT_SGEN
+sgen_dirs = sgen
+endif
 
-SUBDIRS = utils io-layer monoburg os cil metadata \
-      arch interpreter mini dis monograph tests benchmark profiler
+if BTLS
+btls_dirs = btls
+endif
+
+if CROSS_COMPILING
+SUBDIRS = $(btls_dirs) arch utils cil metadata $(sgen_dirs) mini dis profiler
+else
+if INSTALL_MONOTOUCH
+SUBDIRS = $(btls_dirs) arch utils 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 = $(btls_dirs) arch utils cil metadata $(sgen_dirs) mini dis tests unit-tests benchmark profiler
+endif
+endif
+DIST_SUBDIRS = btls arch utils cil metadata $(sgen_dirs) mini dis tests unit-tests benchmark profiler