Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / Makefile.am
1 if SUPPORT_SGEN
2 sgen_dirs = sgen
3 endif
4
5 if BTLS
6 btls_dirs = btls
7 endif
8
9 if CROSS_COMPILING
10 SUBDIRS = $(btls_dirs) eglib arch utils cil metadata $(sgen_dirs) mini dis profiler
11 else
12 if INSTALL_MONOTOUCH
13 SUBDIRS = $(btls_dirs) eglib arch utils metadata $(sgen_dirs) mini profiler
14
15 monotouch-do-build:
16         @list='$(SUBDIRS)'; for subdir in $$list; do \
17           case "x$$subdir" in \
18                 xmetadata ) target="monotouch-do-build" ;; \
19                 xmini ) target="monotouch-do-build" ;; \
20                 * ) target="all" ;; \
21           esac; \
22           echo "Making $$target in $$subdir"; \
23           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
24     done;
25
26 monotouch-do-clean:
27         @list='$(SUBDIRS)'; for subdir in $$list; do \
28           case "x$$subdir" in \
29                 xmetadata ) target="monotouch-do-clean" ;; \
30                 xmini ) target="monotouch-do-clean" ;; \
31                 * ) target="clean" ;; \
32           esac; \
33           echo "Making $$target in $$subdir"; \
34           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
35     done;
36 else
37 SUBDIRS = $(btls_dirs) eglib arch utils cil metadata $(sgen_dirs) mini dis tests unit-tests benchmark profiler
38 endif
39 endif
40 DIST_SUBDIRS = btls eglib arch utils cil metadata $(sgen_dirs) mini dis tests unit-tests benchmark profiler