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

Last change on this file since 4880 was 4880, checked in by Sam Hocevar, 7 years ago

build: update build system.

File size: 1.6 KB
Line 
1# $Id: $
2
3mypkglibdir = $(libdir)/ThePimp
4
5pimp_sources = \
6        src/AssemblyInfo.cs \
7        src/Main.cs \
8        src/AboutWindow.cs \
9        src/ErrorWindow.cs \
10        src/MainWindow.cs \
11        src/NewFile.cs \
12        src/OpenFile.cs \
13        src/PictureView.cs \
14        src/SaveFile.cs \
15        src/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
35mypkglib_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        pimp.desktop
53
54ThePimp.exe: ../pipi-sharp/pipi-sharp.dll $(pimp_sources) $(pimp_resources)
55        cp ../pipi-sharp/pipi-sharp.dll .
56        cp ../pipi-sharp/pipi-sharp.dll.config .
57        cp ../pipi-sharp/pipi-sharp.dll.mdb .
58        $(GMCS) -debug -codepage:utf8 -target:winexe -out:$@ $(pimp_flags) \
59        -lib:./ -r:pipi-sharp.dll \
60          $(addprefix $(srcdir)/, $(pimp_sources)) \
61          $(foreach x, $(pimp_resources), \
62                       -resource:$(srcdir)/$x,ThePimp.$(subst /,.,$x))
63
64clean-local:
65        rm -f pipi-sharp.dll.config
66        rm -f *.exe *.dll *.mdb
67
Note: See TracBrowser for help on using the repository browser.