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 monodis-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 SUPPORT_FILES = $(symlinks) mono-wrapper wrapper-config
22 # The write check is to foil 'make distcheck'
23 all-local: $(SUPPORT_FILES)
24 if test -w $(mcs_topdir); then :; else chmod -R +w $(mcs_topdir); fi
25 d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper ILDISASM=$$d/monodis-wrapper PROFILES='$(build_profiles)' all-profiles
28 build_profiles = default net_2_0
30 build_profiles = default
34 install: install-exec install-data
37 install-exec: $(SUPPORT_FILES)
39 cd $(mcs_topdir) && $(MAKE) PROFILES='$(build_profiles)' \
40 RUNTIME=$$d/mono-wrapper ILDISASM=$$d/monodis-wrapper RUNTIME_HAS_CONSISTENT_GACDIR=yes install-profiles
49 cd $(mcs_topdir) && $(MAKE) PROFILES='$(build_profiles)' \
50 RUNTIME=$$d/mono-wrapper ILDISASM=$$d/monodis-wrapper RUNTIME_HAS_CONSISTENT_GACDIR=yes uninstall-profiles
53 d=`pwd`; cd $(mcs_topdir) && $(MAKE) PROFILES='$(build_profiles)' clean-profiles
54 -rm -fr $(symlinks) $(tmpinst) .wapi
57 TEST_SUPPORT_FILES = $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
59 TEST_SUPPORT_FILES = $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm
62 # now a misnomer, but it'll go away soon enough.
66 test_select = ONLY_CENTUM_TESTS=yes
70 d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper ILDISASM=$$d/monodis-wrapper PROFILES='$(build_profiles)' test-profiles
72 mcs-do-run-test-profiles: test-support-files
73 d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \
74 ( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper ILDISASM=$$d/monodis-wrapper PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \
75 rm -fr $(tmpinst); $$ret
78 cur_dir_cmd = cygpath -w -a .
79 PLATFORM_PATH_SEPARATOR = ;
82 PLATFORM_PATH_SEPARATOR = :
85 # Use --compile-all as a poor man's PEVerify to detect invalid IL
86 mcs-compileall: mono-wrapper wrapper-config
87 save_MONO_PATH=$$MONO_PATH; mcs_topdir=`cd $(mcs_topdir) && $(cur_dir_cmd)`; ret=:; \
88 for profile in $(build_profiles); do \
89 MONO_PATH="$$mcs_topdir/class/lib/$$profile$(PLATFORM_PATH_SEPARATOR)$$save_MONO_PATH"; export MONO_PATH; \
90 for i in $(mcs_topdir)/class/lib/$$profile/*.dll $(mcs_topdir)/class/lib/$$profile/*.exe $(mcs_topdir)/class/Microsoft.VisualBasic/fixup/$$profile/*.dll; do \
91 if ./mono-wrapper --compile-all $$i; then \
92 echo $$i verified OK; \
94 echo $$i verification failed; ret=false; \
98 check-local: mcs-compileall mcs-do-test-profiles
99 $(MAKE) $(test_select) mcs-do-run-test-profiles
101 CLEANFILES = wrapper-config
103 wrapper-config: ../data/config Makefile
104 d=`cd ../support && pwd`; \
105 sed 's,target="libMonoPosixHelper[^"]*",target="'$$d/libMonoPosixHelper.la'",' ../data/config > $@
106 if test -z "$(libgdiplus_loc)"; then :; else \
108 sed 's,<configuration>,& <dllmap dll="gdiplus.dll" target="$(libgdiplus_loc)" />,' $@t > $@; \
112 $(tmpinst)/bin/mono: mono-wrapper wrapper-config
116 $(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe
119 $(MAKE) test-support-file target=$@ file=mbas/mbas.exe
122 $(MAKE) test-support-file target=$@ file=gmcs/gmcs.exe
124 $(tmpinst)/bin/ilasm:
125 $(MAKE) test-support-file target=$@ file=ilasm/ilasm.exe
128 $(mkinstalldirs) $(tmpinst)/bin
129 $(MAKE) $(TEST_SUPPORT_FILES)
132 echo '#! /bin/sh' > $(target)
133 r=`pwd`; m=`cd $(mcs_topdir) && pwd`; echo 'exec "'"$$r/mono-wrapper"'" "'"$$m/$(file)"'" "$$@"' >> $(target)
136 $(tmpinst)/bin/pedump: $(srcdir)/Makefile.am
138 (b=`pwd`; echo '#! /bin/sh'; echo 'exec "'"$$b/libtool"'" --mode=execute "'"$$b/mono/metadata/pedump"'" "$$@"') > $@
141 # the 'cygnus' option also disables the default 'distdir:' target, which we _do_ want
142 MYDISTFILES = Makefile.am Makefile.in mono-wrapper.in monodis-wrapper.in
143 distdir: $(MYDISTFILES)
146 test -z '$(MYDISTFILES)' || for file in ''$(MYDISTFILES); do \
147 if test -f $$file; then d=.; else d=$(srcdir); fi; \
148 cp -p $$d/$$file $(distdir) ; done
149 find $(distdir) -type f -exec chmod a+r {} ';'