source: libpipi/trunk/ThePimp/Makefile.am @ 2954

Last change on this file since 2954 was 2954, checked in by Sam Hocevar, 12 years ago

Rename win32/dist into win32/gtksharp because we might very well
put other runtimes in SVN.

File size: 1.5 KB
Line 
1# $Id: $
2
3pimp_sources = \
4        AssemblyInfo.cs \
5        Main.cs \
6        AboutWindow.cs \
7        ErrorWindow.cs \
8        MainWindow.cs \
9        NewFile.cs \
10        OpenFile.cs \
11        PictureView.cs \
12        SaveFile.cs \
13        ToolBox.cs \
14        gtk-gui/generated.cs \
15        gtk-gui/ThePimp.AboutWindow.cs \
16        gtk-gui/ThePimp.ErrorWindow.cs \
17        gtk-gui/ThePimp.MainWindow.cs \
18        gtk-gui/ThePimp.NewFile.cs \
19        gtk-gui/ThePimp.OpenFile.cs \
20        gtk-gui/ThePimp.PictureView.cs \
21        gtk-gui/ThePimp.SaveFile.cs \
22        gtk-gui/ThePimp.ToolBox.cs
23
24pimp_resources = \
25        gtk-gui/gui.stetic \
26        gtk-gui/objects.xml \
27        images/about.png
28
29image_sources = \
30        images/about.svg
31
32if USE_CSHARP
33bin_SCRIPTS = ThePimp.exe
34endif
35
36if USE_GTKSHARP
37pimp_flags = -pkg:gtk-sharp-2.0 -r:Mono.Posix
38else
39pimp_flags = \
40        -r:$(top_srcdir)/win32/gtksharp/bin/pango-sharp.dll \
41        -r:$(top_srcdir)/win32/gtksharp/bin/atk-sharp.dll \
42        -r:$(top_srcdir)/win32/gtksharp/bin/gdk-sharp.dll \
43        -r:$(top_srcdir)/win32/gtksharp/bin/gtk-sharp.dll \
44        -r:$(top_srcdir)/win32/gtksharp/bin/glib-sharp.dll \
45        -r:Mono.Posix
46endif
47
48EXTRA_DIST = $(pimp_sources) $(pimp_resources) $(image_sources)
49
50ThePimp.exe: ../pipi-sharp/pipi-sharp.dll $(pimp_sources) $(pimp_resources)
51        cp ../pipi-sharp/pipi-sharp.dll .
52        cp ../pipi-sharp/pipi-sharp.dll.config .
53        cp ../pipi-sharp/pipi-sharp.dll.mdb .
54        $(GMCS) -debug -codepage:utf8 -target:winexe -out:$@ $(pimp_flags) \
55        -lib:./ -r:pipi-sharp.dll \
56          $(addprefix $(srcdir)/, $(pimp_sources)) \
57          $(foreach x, $(pimp_resources), \
58                       -resource:$(srcdir)/$x,ThePimp.$(subst /,.,$x))
59
60clean-local:
61        rm -f pipi-sharp.dll.config
62        rm -f *.exe *.dll *.mdb
63
Note: See TracBrowser for help on using the repository browser.