Makefile.am 3.2 KB

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