Fix bug with register usage on certain arithmetic operations
[mono.git] / scripts / Makefile.am
1 EXTRA_DIST = script.in script2.in mono-nunit.pc.in
2 DISTCLEANFILES = mono-nunit.pc
3
4 bin2dir = $(bindir)
5
6 bin_SCRIPTS = \
7         al                      \
8         caspol                  \
9         cert2spc                \
10         certmgr                 \
11         chktrust                \
12         cilc                    \
13         disco                   \
14         dtd2xsd                 \
15         gacutil                 \
16         genxs                   \
17         ilasm                   \
18         makecert                \
19         macpack                 \
20         mbas                    \
21         mcs                     \
22         mkbundle                \
23         mono-find-provides      \
24         mono-find-requires      \
25         monop                   \
26         monoresgen              \
27         permview                \
28         prj2make                \
29         resgen                  \
30         secutil                 \
31         setreg                  \
32         signcode                \
33         sn                      \
34         soapsuds                \
35         sqlsharp                \
36         wsdl                    \
37         xsd
38
39 bin2_SCRIPTS = gmcs wsdl2
40
41 CLEANFILES = $(bin_SCRIPTS) $(bin2_SCRIPTS)
42
43 if USE_JIT
44 MONO_INTERP = mono
45 else
46 MONO_INTERP = mint
47 endif
48
49 if PLATFORM_WIN32
50 plat_bindir = $(shell cygpath -m $(libdir))
51 mono_one_instdir = $(shell cygpath -m $(libdir))/mono/1.0
52 mono_two_instdir = $(shell cygpath -m $(libdir))/mono/2.0
53 else
54 plat_bindir = $(bindir)
55 mono_one_instdir = $(libdir)/mono/1.0
56 mono_two_instdir = $(libdir)/mono/2.0
57 endif
58
59 REWRITE = sed \
60         -e 's,@''bindir@,$(bindir),g'                           \
61         -e 's,@''plat_bindir@,$(plat_bindir),g'                 \
62         -e 's,@''mono_one_instdir@,$(mono_one_instdir),g'       \
63         -e 's,@''mono_two_instdir@,$(mono_two_instdir),g'       \
64         -e 's,@''gtkdir@,$(gtkdir),g'                           \
65         -e 's,@''exe_file@,$@.exe,g'                            \
66         -e 's,@''mono_interp@,$(MONO_INTERP),g'
67
68 $(bin_SCRIPTS): script.in Makefile.am
69         $(REWRITE) $(srcdir)/script.in > $@.tmp
70         mv $@.tmp $@
71
72 $(bin2_SCRIPTS): script2.in Makefile.am
73         $(REWRITE) $(srcdir)/script2.in > $@.tmp
74         mv $@.tmp $@
75
76 pkgconfigdir = $(libdir)/pkgconfig
77 pkgconfig_DATA= mono-nunit.pc
78