source: libcaca/trunk/csharp/Makefile.am @ 2078

Last change on this file since 2078 was 2078, checked in by Sam Hocevar, 13 years ago
  • Use System.Drawing.Rectangle etc. for cucul-sharp and caca-sharp arguments, allowing for much cleaner code (at the expense of an extra dependency).
File size: 888 bytes
Line 
1# $Id: $
2
3cuculdir = $(libdir)/cucul-sharp
4cacadir = $(libdir)/caca-sharp
5
6cucul_sources = AssemblyInfo.cs Cucul.cs
7caca_sources = AssemblyInfo.cs Caca.cs
8
9if USE_CSHARP
10cucul_DATA = cucul-sharp.dll cucul-sharp.dll.config
11caca_DATA = caca-sharp.dll caca-sharp.dll.config
12noinst_DATA = test.exe
13endif
14
15EXTRA_DIST = $(cucul_sources) cucul-sharp.dll.config \
16             $(caca_sources) caca-sharp.dll.config \
17             test.cs
18
19cucul-sharp.dll: $(cucul_sources)
20        gmcs -unsafe $(cucul_sources) -out:$@ -target:library \
21          -r:System.Drawing.dll
22
23caca-sharp.dll: $(caca_sources) cucul-sharp.dll
24        gmcs -unsafe $(caca_sources) -out:$@ -target:library -lib:./ \
25          -r:System.Drawing.dll -r:./cucul-sharp.dll
26
27test.exe: test.cs caca-sharp.dll cucul-sharp.dll
28        gmcs test.cs -out:$@ -lib:./ \
29          -r:System.Drawing.dll -r:./cucul-sharp.dll -r:./caca-sharp.dll
30
31clean-local:
32        rm -f *.exe *.dll
33
Note: See TracBrowser for help on using the repository browser.