Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. AUTOMAKE_OPTIONS = foreign
  2. ACLOCAL_AMFLAGS = -I .
  3. SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web msvc
  4. # Keep in sync with SUBDIRS
  5. ## 'tools' is not normally built
  6. DIST_SUBDIRS = libgc $(eglib_dir) mono ikvm-native support docs data runtime scripts man samples web tools msvc
  7. EXTRA_DIST= mono-uninstalled.pc.in LICENSE
  8. DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
  9. # Distribute the 'mcs' tree too
  10. dist-hook:
  11. test -d $(distdir)/mcs || mkdir $(distdir)/mcs
  12. d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=default distdir=$$d dist-recursive
  13. d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
  14. pkgconfigdir = $(libdir)/pkgconfig
  15. noinst_DATA = mono-uninstalled.pc
  16. DISTCLEANFILES= mono-uninstalled.pc
  17. .PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
  18. # building with monolite
  19. mcslib = $(mcs_topdir)/class/lib
  20. monolite = $(mcslib)/monolite
  21. monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
  22. get-monolite-latest:
  23. -rm -fr $(mcslib)/monolite-*
  24. -mkdir -p $(mcslib)
  25. test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
  26. test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
  27. cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
  28. cd $(mcslib) && mv -f monolite-* monolite
  29. compiler-tests: mcs-do-clean
  30. $(MAKE) all
  31. $(MAKE) mcs-do-compiler-tests
  32. compiler-tests-net_2_0:
  33. -rm -f $(mcs_topdir)/build/common/Consts.cs.save
  34. -mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
  35. cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
  36. cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
  37. -mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
  38. $(MAKE) all
  39. $(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
  40. bootstrap-world: compiler-tests
  41. $(MAKE) install
  42. bootstrap-world-net_2_0: compiler-tests-net_2_0
  43. $(MAKE) install
  44. # internal targets
  45. mcs-do-clean:
  46. cd runtime && $(MAKE) clean-local
  47. cd mono/tests && $(MAKE) clean
  48. mcs-do-compiler-tests:
  49. cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
  50. cd mono/tests && $(MAKE) check
  51. win32getdeps:
  52. wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
  53. wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
  54. wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
  55. wget http://www.go-mono.com/archive/libiconv-1.7.zip
  56. wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
  57. wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
  58. unzip -n -d / pkgconfig-0.11-20020310.zip
  59. unzip -n -d / glib-2.0.4-20020703.zip
  60. unzip -n -d / glib-dev-2.0.4-20020703.zip
  61. unzip -n -d / libiconv-1.7.zip
  62. unzip -n -d / libiconv-dev-1.7.zip
  63. unzip -n -d / libintl-0.10.40-20020101.zip
  64. win32setup:
  65. makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
  66. bootstrap: all
  67. @echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
  68. exit 1