2009-11-08 Chris Toshok <toshok@ximian.com>
[moon.git] / tools / munxap / Makefile.am
bloba94ad923a917879d5c766c8b13de3a87482c633f
1 moondir = $(pkglibdir)
3 bin_SCRIPTS = munxap
5 moon_DATA = munxap.exe
7 EXTRA_DIST = \
8         $(munxap_exe_CS) \
9         $(munxap_resources)
11 CLEANFILES =            \
12         munxap          \
13         munxap.exe      \
14         munxap.exe.mdb
16 munxap_exe_CS =                 \
17         $(srcdir)/munxap.cs     \
18         $(srcdir)/../Options.cs \
19         $(srcdir)/Zip.cs        \
20         $(srcdir)/View.cs
22 munxap_resources =                      \
23         $(srcdir)/cm/c.gif                      \
24         $(srcdir)/cm/d.gif                      \
25         $(srcdir)/cm/e.gif                      \
26         $(srcdir)/cm/en.gif                     \
27         $(srcdir)/cm/f.gif                      \
28         $(srcdir)/cm/i.gif                      \
29         $(srcdir)/cm/m.gif                      \
30         $(srcdir)/cm/n.gif                      \
31         $(srcdir)/cm/p.gif                      \
32         $(srcdir)/cm/r.gif                      \
33         $(srcdir)/cm/s.gif                      \
34         $(srcdir)/cm/sc.gif                     \
35         $(srcdir)/cm/se.gif                     \
36         $(srcdir)/cm/sm.gif                     \
37         $(srcdir)/cm/st.gif                     \
38         $(srcdir)/cm/sx.gif                     \
39         $(srcdir)/cm/tb.gif                     \
40         $(srcdir)/cm/tm.gif                     \
41         $(srcdir)/cm/tp.gif                     \
42         $(srcdir)/cm/w.gif                      \
43         $(srcdir)/cm/y.gif                      \
44         $(srcdir)/cm/mn.png
46 ress= $(foreach res,$(munxap_resources), $(addprefix -resource:,$(res)),$(notdir $(res)))
48 munxap.exe: $(munxap_exe_CS) 
49         gmcs -debug+ -out:$@ $(munxap_exe_CS) -r:System -r:System.Xml -pkg:gtk-sharp-2.0 -r:`pkg-config --variable=Libraries cecil` $(ress)
51 munxap: $(srcdir)/../launcher.in Makefile
52         $(do_subst) < $(srcdir)/../launcher.in > munxap
53         chmod +x munxap
55 do_subst = sed -e 's,[@]moondir[@],$(moondir),g' -e 's,[@]VERSION[@],$(VERSION),g' -e 's,[@]TOOL[@],munxap.exe,g'
57 run: munxap.exe
58         mono --debug munxap.exe