Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

Makefile.am 1.4 KiB

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