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

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

Make the GTK# detection code more robust.

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