Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Makefile.am')
-rw-r--r--runtime/Makefile.am151
1 files changed, 52 insertions, 99 deletions
diff --git a/runtime/Makefile.am b/runtime/Makefile.am
index 0096563a6f7..94ebc1097bc 100644
--- a/runtime/Makefile.am
+++ b/runtime/Makefile.am
@@ -2,108 +2,61 @@
# being compiled on windows.
#
-SUBDIRS = . net_1_1 net_2_0
-
-monobins_DATA = \
- monoresgen.exe \
- monoresgen.exe.mdb \
- secutil.exe \
- secutil.exe.mdb \
- ilasm.exe \
- ilasm.exe.mdb \
- cilc.exe \
- cilc.exe.mdb \
- xsd.exe \
- xsd.exe.mdb \
- wsdl.exe \
- wsdl.exe.mdb \
- wsdl2.exe \
- wsdl2.exe.mdb \
- genxs.exe \
- genxs.exe.mdb \
- al.exe \
- al.exe.mdb \
- disco.exe \
- disco.exe.mdb \
- sqlsharp.exe \
- sqlsharp.exe.mdb \
- signcode.exe \
- signcode.exe.mdb \
- chktrust.exe \
- chktrust.exe.mdb \
- soapsuds.exe \
- soapsuds.exe.mdb \
- monop.exe \
- monop.exe.mdb \
- mono-find-provides.exe \
- mono-find-provides.exe.mdb \
- mono-find-requires.exe \
- mono-find-requires.exe.mdb \
- setreg.exe \
- setreg.exe.mdb \
- cert2spc.exe \
- cert2spc.exe.mdb \
- certmgr.exe \
- certmgr.exe.mdb \
- MakeCert.exe \
- MakeCert.exe.mdb \
- gacutil.exe \
- gacutil.exe.mdb \
- sn.exe \
- sn.exe.mdb
-
-monoone_DATA = \
- mcs.exe \
- mcs.exe.mdb \
- mcs.exe.config \
- mbas.exe
-
-if ! PLATFORM_WIN32
-gmcs_exe = gmcs.exe gmcs.exe.config gmcs.exe.mdb
-endif
-monotwo_DATA = $(gmcs_exe)
+tmpinst = _tmpinst
-EXTRA_DIST= $(monobins_DATA) $(monoone_DATA) $(monotwo_DATA)
+noinst_SCRIPTS = mono-wrapper
-MAINTAINERCLEANFILES = $(EXTRA_DIST)
+symlinks = etc/mono/1.0/machine.config etc/mono/2.0/machine.config
-#
-# Keep in sync with mono/mono/metadata/Makefile.am
-#
-if PLATFORM_WIN32
-monobinsdir = $(libdir)
-monoonedir = $(libdir)
-monotwodir = $(libdir)
+etc/mono/1.0/machine.config: $(top_srcdir)/data/net_1_1/machine.config
+etc/mono/2.0/machine.config: $(top_srcdir)/data/net_2_0/machine.config
+
+$(symlinks):
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+
+all-local: $(symlinks) mono-wrapper
+ d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper all-profiles
+
+if INSTALL_2_0
+install_profiles = default net_2_0
else
-monobinsdir = $(bindir)
-monoonedir = $(libdir)/mono/1.0/
-monotwodir = $(libdir)/mono/2.0/
+install_profiles = default
endif
-$(monoone_DATA) $(monotwo_DATA) $(monobins_DATA):
- @name=`echo "$@" | sed 's,\.exe.*$$,,'`; \
- case $$name in \
- mcs | mbas | monoresgen | gmcs | ilasm) d=$$name ;; \
- cilc | genxs | al | disco | soapsuds | monop | browsercaps-updater | gacutil) d=tools/$$name ;; \
- chktrust | signcode | MakeCert | cert2spc | certmgr | secutil | setreg | sn) d=tools/security ;; \
- mono-find-provides | mono-find-requires) d=tools/mono-rpm-helpers/$$name ;; \
- xsd) d=tools/mono-xsd ;; \
- wsdl*) d=tools/wsdl ;; \
- sqlsharp) d=tools/SqlSharp ;; \
- esac; \
- echo "test -f $(mcs_topdir)/$$d/$@" ; \
- test -f $(mcs_topdir)/$$d/$@ || exit 1 ; \
- echo "rm -f $(srcdir)/$@" ; \
- rm -f $(srcdir)/$@ ; \
- echo "cd $(srcdir) && $(LN_S) $(mcs_topdir_from_srcdir)/$$d/$@ $@" ; \
- cd $(srcdir) && $(LN_S) $(mcs_topdir_from_srcdir)/$$d/$@ $@
-
-copy_dlls:
- cp /nt/mono/mcs/class/*/*.dll .
-
-push_dlls:
- scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls
-
-cleanassemblies:
- find -name \*.dll -exec rm -vf {} \;
- find -name \*.exe -exec rm -vf {} \;
+install-exec-local:
+ d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper prefix=$(exec_prefix) PROFILES='$(install_profiles)' install-profiles
+
+clean-local:
+ -rm -fr $(symlinks)
+ d=`pwd`; cd $(mcs_topdir) && $(MAKE) PROFILES='basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0' clean-profiles
+ -rm -fr $(tmpinst)
+
+TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
+check-local:
+ $(mkdir_p) $(tmpinst)/bin
+ $(MAKE) $(TEST_SUPPORT_FILES)
+ d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \
+ ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper run-test-profiles ) || ret=false ; \
+ rm -f $(tmpinst) ; $$ret
+
+$(tmpinst)/bin/mcs:
+ $(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe
+
+$(tmpinst)/bin/mbas:
+ $(MAKE) test-support-file target=$@ file=mbas/mbas.exe
+
+$(tmpinst)/bin/gmcs:
+ $(MAKE) test-support-file target=$@ file=gmcs/gmcs.exe
+
+$(tmpinst)/bin/ilasm:
+ $(MAKE) test-support-file target=$@ file=ilasm/ilasm.exe
+
+test-support-file:
+ echo '#! /bin/sh' > $(target)
+ r=`pwd`; m=`cd $(mcs_topdir) && pwd`; echo 'exec "'"$$r/mono-wrapper"'" "'"$$m/$(file)"'" "$$@"' >> $(target)
+ chmod +x $(target)
+
+$(tmpinst)/bin/pedump: $(srcdir)/Makefile.am
+ $(mkdir_p) $(@D)
+ (b=`pwd`; echo '#! /bin/sh'; echo 'exec "'"$$b/libtool"'" --mode=execute "'"$$b/mono/metadata/pedump"'" "$$@"') > $@
+ chmod +x $@