PageRenderTime 49ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/gmime-2.6.4/mono/Makefile.am

#
Makefile | 107 lines | 93 code | 14 blank | 0 comment | 7 complexity | 54a7b9710dfb0cff9ae160e0afb68bcb MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0
  1. API = gmime-api.xml
  2. RAW_API = gmime-api.raw
  3. METADATA = GMime.metadata
  4. ASSEMBLY_NAME = gmime-sharp
  5. references = $(GLIB_SHARP_LIBS)
  6. SOURCES_XML = sources.xml
  7. PACKAGE_SHARP = $(PACKAGE)-sharp-$(GMIME_API_VERSION)
  8. TARGET = $(ASSEMBLY)
  9. ASSEMBLY = $(ASSEMBLY_NAME).dll
  10. noinst_DATA = $(API) $(ASSEMBLY) $(ASSEMBLY).config
  11. CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API)
  12. DISTCLEANFILES = $(ASSEMBLY).config AssemblyInfo.cs gmime-sharp-$(GMIME_API_VERSION).pc
  13. pkgconfigdir = $(libdir)/pkgconfig
  14. pkgconfig_DATA = $(PACKAGE_SHARP).pc
  15. sources = \
  16. StreamWrapper.cs \
  17. HeaderEnumerator.cs \
  18. Header.cs
  19. build_sources = \
  20. $(srcdir)/StreamWrapper.cs \
  21. $(srcdir)/HeaderEnumerator.cs \
  22. $(srcdir)/Header.cs \
  23. AssemblyInfo.cs
  24. customs = \
  25. CertificateCollection.custom \
  26. DataWrapper.custom \
  27. Global.custom \
  28. HeaderList.custom \
  29. InternetAddress.custom \
  30. InternetAddressList.custom \
  31. Message.custom \
  32. Multipart.custom \
  33. Object.custom \
  34. SignatureCollection.custom \
  35. Stream.custom
  36. build_customs = \
  37. $(srcdir)/CertificateCollection.custom \
  38. $(srcdir)/DataWrapper.custom \
  39. $(srcdir)/Global.custom \
  40. $(srcdir)/HeaderList.custom \
  41. $(srcdir)/InternetAddress.custom \
  42. $(srcdir)/InternetAddressList.custom \
  43. $(srcdir)/Message.custom \
  44. $(srcdir)/Multipart.custom \
  45. $(srcdir)/Object.custom \
  46. $(srcdir)/SignatureCollection.custom \
  47. $(srcdir)/Stream.custom
  48. EXTRA_DIST = \
  49. $(ASSEMBLY).config.in \
  50. $(ASSEMBLY_NAME).snk \
  51. AssemblyInfo.cs.in \
  52. $(METADATA) \
  53. $(RAW_API) \
  54. $(customs) \
  55. $(sources) \
  56. $(SOURCES_XML) \
  57. gmime-sharp.pc.in
  58. $(PACKAGE_SHARP).pc: gmime-sharp.pc
  59. -cp gmime-sharp.pc $(PACKAGE_SHARP).pc
  60. $(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
  61. cp $(srcdir)/$(RAW_API) $(API)
  62. chmod u+w $(API)
  63. $(GAPI_FIXUP) --api=$(API) --metadata=$(srcdir)/$(METADATA)
  64. generated-stamp: $(API) $(build_customs)
  65. rm -f generated/* && \
  66. $(GAPI_CODEGEN) --generate $(API) --outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
  67. && touch generated-stamp
  68. $(ASSEMBLY): $(build_sources) generated-stamp $(srcdir)/$(ASSEMBLY_NAME).snk
  69. $(CSC) -unsafe /out:$(ASSEMBLY) /target:library $(references) \
  70. -keyfile:$(srcdir)/$(ASSEMBLY_NAME).snk $(build_sources) generated/*.cs
  71. sn -q -R $(ASSEMBLY) $(srcdir)/$(ASSEMBLY_NAME).snk
  72. install-data-hook:
  73. @if test -n '$(TARGET)'; then \
  74. if test -n '$(DESTDIR)'; then \
  75. echo "$(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /root $(DESTDIR)$(libdir)"; \
  76. $(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /root $(DESTDIR)$(libdir) || exit 1; \
  77. else \
  78. echo "$(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(libdir)"; \
  79. $(GACUTIL) /i $(ASSEMBLY) /f /package $(PACKAGE_SHARP) /gacdir $(libdir) || exit 1; \
  80. fi; \
  81. fi
  82. uninstall-local:
  83. @if test -n '$(TARGET)'; then \
  84. if test -n '$(DESTDIR)'; then \
  85. echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package $(PACKAGE_SHARP) /root $(DESTDIR)$(libdir)"; \
  86. $(GACUTIL) /u $(ASSEMBLY_NAME) /package $(PACKAGE_SHARP) /root $(DESTDIR)$(libdir) || exit 1; \
  87. else \
  88. echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package $(PACKAGE_SHARP) /gacdir $(libdir)"; \
  89. $(GACUTIL) /u $(ASSEMBLY_NAME) /package $(PACKAGE_SHARP) /gacdir $(libdir) || exit 1; \
  90. fi; \
  91. fi
  92. parse:
  93. $(GAPI_PARSER) $(SOURCES_XML)