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

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

Improve "make install", especially for .NET assemblies.

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