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

Last change on this file since 2937 was 2937, checked in by Sam Hocevar, 14 years ago

Improve the Win32 cross-build script. Still doesn't work well.

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/assembly/pango-sharp.dll \
41        -r:$(top_srcdir)/win32/assembly/atk-sharp.dll \
42        -r:$(top_srcdir)/win32/assembly/gdk-sharp.dll \
43        -r:$(top_srcdir)/win32/assembly/gtk-sharp.dll \
44        -r:$(top_srcdir)/win32/assembly/glib-sharp.dll
45endif
46
47EXTRA_DIST = $(pimp_sources) $(pimp_resources) $(image_sources)
48
49ThePimp.exe: ../pipi-sharp/pipi-sharp.dll $(pimp_sources) $(pimp_resources)
50        $(GMCS) -debug -codepage:utf8 -out:$@ $(pimp_flags) -lib:./ \
51          $(addprefix $(srcdir)/, $(pimp_sources)) \
52          $(foreach x, $(pimp_resources), \
53                       -resource:$(srcdir)/$x,ThePimp.$(subst /,.,$x)) \
54          -r:pipi-sharp.dll
55        cp ../pipi-sharp/pipi-sharp.dll .
56        cp ../pipi-sharp/pipi-sharp.dll.config .
57        cp ../pipi-sharp/pipi-sharp.dll.mdb .
58
59clean-local:
60        rm -f pipi-sharp.dll.config
61        rm -f *.exe *.dll *.mdb
62
Note: See TracBrowser for help on using the repository browser.