You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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