Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweak the Makefiles to enable monotouch builds to compile less stuff.

	* Makefile.am: Make it possible to only produce the monotouch
	byproducts.
  • Loading branch information...
commit cf754cdb634f2bdd5bc959cec66145372c301fba 1 parent 8e2374f
@kumpera kumpera authored
View
30 Makefile.am
@@ -1,6 +1,7 @@
ACLOCAL_AMFLAGS = -I m4
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
+MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir)
@@ -8,6 +9,9 @@ SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man
## 'tools' is not normally built
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs
else
+if ONLY_MONOTOUCH
+SUBDIRS = $(MONOTOUCH_SUBDIRS) runtime
+else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
@@ -17,6 +21,7 @@ SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scr
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
endif
endif
+endif
all: update_submodules
@@ -112,6 +117,31 @@ moon-do-clean:
endif
+if INSTALL_MONOTOUCH
+monotouch-do-build: config.h
+ @list='$(MONOTOUCH_SUBDIRS)'; for subdir in $$list; do \
+ case "x$$subdir" in \
+ xmono ) target="monotouch-do-build";; \
+ * ) target="all";; \
+ esac; \
+ echo "Making $$target in $$subdir"; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
+ done;
+ (cd runtime && $(MAKE) $(AM_MAKEFLAGS) monotouch-do-build)
+
+monotouch-do-clean:
+ @list='$(MONOTOUCH_SUBDIRS)'; for subdir in $$list; do \
+ case "x$$subdir" in \
+ xmono ) target="monotouch-do-clean";; \
+ * ) target="clean";; \
+ esac; \
+ echo "Making $$target in $$subdir"; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
+ done;
+ (cd runtime && $(MAKE) $(AM_MAKEFLAGS) monotouch-do-clean)
+
+endif
+
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
View
3  configure.in
@@ -2888,6 +2888,7 @@ AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install
AC_ARG_WITH(profile4_5,[ --with-profile4_5=yes,no If you want to install the 4.5 FX (defaults to yes)], [], [with_profile4_5=yes])
AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid assemblies (defaults to no)], [], [with_monodroid=no])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no,only If you want to build the MonoTouch assemblies (defaults to no)], [], [with_monotouch=no])
+AC_ARG_WITH(mobile, [ --with-mobile=yes,no If you want to build the Mobile assemblies (defaults to no)], [], [with_mobile=no])
OPROFILE=no
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofile support (defaults to no)],[
@@ -3002,6 +3003,8 @@ AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_4_5, [test "x$with_profile4_5" = xyes])
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" != "xno"])
+AM_CONDITIONAL(INSTALL_MOBILE, [test "x$with_mobile" = xyes])
+AM_CONDITIONAL(ONLY_MONOTOUCH, [test "x$with_monotouch" = "xonly"])
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
View
26 mono/Makefile.am
@@ -1,6 +1,31 @@
if CROSS_COMPILING
SUBDIRS = arch utils io-layer cil metadata $(interpreter_dir) mini dis
else
+if INSTALL_MONOTOUCH
+SUBDIRS = utils io-layer metadata arch mini
+
+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
@@ -30,4 +55,5 @@ 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
View
4 runtime/Makefile.am
@@ -34,6 +34,9 @@ moon-do-basic-clean:
cd $(mcs_topdir)/ && $(MAKE) NO_DIR_CHECK=1 PROFILE=moonlight_raw clean
endif
+if ONLY_MONOTOUCH
+build_profiles = monotouch
+else
if ONLY_MOONLIGHT
build_profiles = moonlight_raw
test_profiles = moonlight_raw
@@ -81,6 +84,7 @@ endif
test_profiles = $(build_profiles)
endif
+endif
if BUILD_MCS
Please sign in to comment.
Something went wrong with that request. Please try again.