Debian Codegraph @

caca-sharp/Makefile.am

raw
1
2 include $(top_srcdir)/build/autotools/common.am
3
4 # We need to install the .config file ourselves because of a gacutil
5 # bug (https://bugzilla.novell.com/show_bug.cgi?id=363341)
6 monodir = $(libdir)/mono/caca-sharp-0.0
7 if USE_CSHARP
8 noinst_DATA = caca-sharp.dll caca-sharp.dll.config test.exe
9 endif
10
11 caca_sources = \
12 $(srcdir)/AssemblyInfo.cs \
13 $(srcdir)/Caca.cs \
14 $(srcdir)/Attr.cs \
15 $(srcdir)/Canvas.cs \
16 $(srcdir)/Display.cs \
17 $(srcdir)/Dither.cs \
18 $(srcdir)/Event.cs \
19 $(srcdir)/Font.cs
20
21 test_sources = \
22 $(srcdir)/test.cs
23
24 EXTRA_DIST = $(caca_sources) $(test_sources) \
25 caca-sharp.snk caca-sharp.pc.in caca-sharp.dll.config.in \
26 caca-sharp.csproj test-csharp.csproj
27
28 caca-sharp.dll: $(caca_sources)
29 $(CSC) -debug -unsafe $(caca_sources) -out:$@ -target:library \
30 -keyfile:$(srcdir)/caca-sharp.snk -r:System.Drawing.dll
31
32 test.exe: $(test_sources) caca-sharp.dll
33 $(CSC) -debug $(test_sources) -out:$@ -lib:./ \
34 -r:System.Drawing.dll -r:./caca-sharp.dll
35
36 if USE_CSHARP
37 install-data-local:
38 MONO_SHARED_DIR=$$HOME $(GACUTIL) -i caca-sharp.dll \
39 -package caca-sharp-0.0 -f -root $(DESTDIR)$(libdir)
40 $(mkinstalldirs) $(DESTDIR)$(monodir)
41 sed -e 's@target="[^"]*/@target="@' < caca-sharp.dll.config > $(DESTDIR)$(monodir)/caca-sharp.dll.config
42
43 uninstall-local:
44 MONO_SHARED_DIR=$$HOME $(GACUTIL) -u caca-sharp.dll, Version=0.0 \
45 -package caca-sharp-0.0 || true
46 rm -f $(DESTDIR)$(monodir)/caca-sharp.dll.config
47 rmdir $(DESTDIR)$(monodir) 2>/dev/null || true
48 endif
49
50 clean-local:
51 rm -f *.exe *.dll *.mdb
52