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

Last change on this file since 2072 was 2072, checked in by Sam Hocevar, 13 years ago
  • Install CLI bindings to $(libdir)/cucul-sharp and $(libdir)/caca-sharp.
File size: 832 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 $(cucul_sources) -out:$@ -target:library  -unsafe
21
22caca-sharp.dll: $(caca_sources) cucul-sharp.dll
23        gmcs $(caca_sources) -out:$@ -target:library \
24             -r:./cucul-sharp.dll -lib:./ -unsafe
25
26test.exe: test.cs caca-sharp.dll cucul-sharp.dll
27        gmcs test.cs -out:$@ \
28             -r:./cucul-sharp.dll -r:./caca-sharp.dll -lib:./ -unsafe
29
30clean-local:
31        rm -f *.exe *.dll
32
Note: See TracBrowser for help on using the repository browser.