1 # This is just used to copy and install the DLL files that are currently
2 # being compiled on windows.
5 # hack to prevent 'check' from depending on 'all'
6 AUTOMAKE_OPTIONS = cygnus
10 noinst_SCRIPTS = mono-wrapper
12 symlinks = etc/mono/1.0/machine.config etc/mono/2.0/machine.config
14 etc/mono/1.0/machine.config: $(top_srcdir)/data/net_1_1/machine.config
15 etc/mono/2.0/machine.config: $(top_srcdir)/data/net_2_0/machine.config
18 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
20 # The write check is to foil 'make distcheck'
21 all-local: $(symlinks) mono-wrapper
22 if test -w $(mcs_topdir); then :; else chmod -R +w $(mcs_topdir); fi
23 d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' all-profiles
26 build_profiles = default net_2_0
27 clean_profiles = basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0
29 build_profiles = default
30 clean_profiles = basic net_1_1_bootstrap default
34 install: install-exec install-data
39 cd $(mcs_topdir) && $(MAKE) prefix='$(exec_prefix)' PROFILES='$(build_profiles)' \
40 RUNTIME=$$d/mono-wrapper RUNTIME_HAS_CONSISTENT_GACDIR=yes install-profiles
49 cd $(mcs_topdir) && $(MAKE) prefix='$(exec_prefix)' PROFILES='$(build_profiles)' \
50 RUNTIME=$$d/mono-wrapper RUNTIME_HAS_CONSISTENT_GACDIR=yes uninstall-profiles
53 d=`pwd`; cd $(mcs_topdir) && $(MAKE) PROFILES='$(clean_profiles)' clean-profiles
54 -rm -fr $(symlinks) $(tmpinst) .wapi
57 TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
59 TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm
65 test_select = TEST_SUBDIRS='tests errors'
69 d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' test-profiles
71 mcs-do-run-test-profiles:
72 $(mkinstalldirs) $(tmpinst)/bin
73 $(MAKE) $(TEST_SUPPORT_FILES)
74 d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \
75 ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \
76 rm -fr $(tmpinst) ; $$ret
78 check-local: mcs-do-test-profiles
79 $(MAKE) $(test_select) mcs-do-run-test-profiles
82 $(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe
85 $(MAKE) test-support-file target=$@ file=mbas/mbas.exe
88 $(MAKE) test-support-file target=$@ file=gmcs/gmcs.exe
91 $(MAKE) test-support-file target=$@ file=ilasm/ilasm.exe
94 echo '#! /bin/sh' > $(target)
95 r=`pwd`; m=`cd $(mcs_topdir) && pwd`; echo 'exec "'"$$r/mono-wrapper"'" "'"$$m/$(file)"'" "$$@"' >> $(target)
98 $(tmpinst)/bin/pedump: $(srcdir)/Makefile.am
100 (b=`pwd`; echo '#! /bin/sh'; echo 'exec "'"$$b/libtool"'" --mode=execute "'"$$b/mono/metadata/pedump"'" "$$@"') > $@
103 # the 'cygnus' option also disables the default 'distdir:' target, which we _do_ want
104 MYDISTFILES = Makefile.am Makefile.in mono-wrapper.in
105 distdir: $(MYDISTFILES)
108 test -z '$(MYDISTFILES)' || for file in ''$(MYDISTFILES); do \
109 if test -f $$file; then d=.; else d=$(srcdir); fi; \
110 cp -p $$d/$$file $(distdir) ; done
111 find $(distdir) -type f -exec chmod a+r {} ';'