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.
 
 
 
 
 

141 lines
4.2 KiB

  1. AM_CPPFLAGS = \
  2. -I$(top_srcdir) \
  3. -DG_LOG_DOMAIN=\"libxfce4panel\" \
  4. -DLIBXFCE4PANEL_COMPILATION \
  5. -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
  6. $(PLATFORM_CPPFLAGS)
  7. lib_LTLIBRARIES = \
  8. libxfce4panel-1.0.la
  9. libxfce4panel_public_built_sources = \
  10. libxfce4panel-enum-types.h
  11. libxfce4panel_built_sources = \
  12. $(libxfce4panel_public_built_sources) \
  13. libxfce4panel-alias.h \
  14. libxfce4panel-aliasdef.c \
  15. libxfce4panel-enum-types.c \
  16. libxfce4panel-marshal.c \
  17. libxfce4panel-marshal.h
  18. libxfce4panel_headers = \
  19. libxfce4panel.h \
  20. libxfce4panel-config.h \
  21. libxfce4panel-enums.h \
  22. xfce-arrow-button.h \
  23. xfce-hvbox.h \
  24. xfce-panel-convenience.h \
  25. xfce-panel-macros.h \
  26. xfce-panel-macros-46.h \
  27. xfce-panel-plugin.h \
  28. xfce-panel-plugin-provider.h \
  29. xfce-panel-image.h
  30. libxfce4panel_includedir = \
  31. $(includedir)/xfce4/libxfce4panel-$(LIBXFCE4PANEL_VERSION_API)/libxfce4panel
  32. libxfce4panel_include_HEADERS = \
  33. $(libxfce4panel_public_built_sources) \
  34. $(libxfce4panel_headers)
  35. libxfce4panel_1_0_la_SOURCES = \
  36. $(libxfce4panel_built_sources) \
  37. $(libxfce4panel_headers) \
  38. libxfce4panel-config.c \
  39. xfce-arrow-button.c \
  40. xfce-hvbox.c \
  41. xfce-panel-convenience.c \
  42. xfce-panel-plugin.c \
  43. xfce-panel-plugin-provider.c \
  44. xfce-panel-image.c
  45. libxfce4panel_1_0_la_CFLAGS = \
  46. $(GTK_CFLAGS) \
  47. $(LIBXFCE4UTIL_CFLAGS) \
  48. $(PLATFORM_CFLAGS)
  49. libxfce4panel_1_0_la_LDFLAGS = \
  50. -no-undefined \
  51. -export-dynamic \
  52. -version-info $(LIBXFCE4PANEL_VERINFO) \
  53. -export-symbols-regex '^[^_].*' \
  54. $(PLATFORM_LDFLAGS)
  55. libxfce4panel_1_0_la_LIBADD = \
  56. $(GTK_LIBS) \
  57. $(LIBXFCE4UTIL_LIBS) \
  58. -lm
  59. #
  60. # Pkg-config file
  61. #
  62. pkgconfigdir = $(libdir)/pkgconfig
  63. pkgconfig_DATA = libxfce4panel-$(LIBXFCE4PANEL_VERSION_API).pc
  64. #
  65. # Build sources
  66. #
  67. if MAINTAINER_MODE
  68. libxfce4panel-marshal.h: libxfce4panel-marshal.list Makefile
  69. $(AM_V_GEN) glib-genmarshal --prefix=_libxfce4panel_marshal --internal --header $< > $@
  70. libxfce4panel-marshal.c: libxfce4panel-marshal.list Makefile
  71. $(AM_V_GEN) echo "#include <libxfce4panel/libxfce4panel-marshal.h>" > $@ \
  72. && glib-genmarshal --prefix=_libxfce4panel_marshal --body $< >> $@
  73. libxfce4panel-alias.h: make-libxfce4panel-alias.pl libxfce4panel.symbols
  74. $(AM_V_GEN) $(PERL) $(srcdir)/make-libxfce4panel-alias.pl $(srcdir)/libxfce4panel.symbols > $@
  75. libxfce4panel-aliasdef.c: make-libxfce4panel-alias.pl libxfce4panel.symbols
  76. $(AM_V_GEN) $(PERL) $(srcdir)/make-libxfce4panel-alias.pl -def < $(srcdir)/libxfce4panel.symbols > $@
  77. libxfce4panel-enum-types.h: $(libxfce4panel_headers) Makefile
  78. $(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \
  79. --fhead "#ifndef __LIBXFCE4PANEL_ENUM_TYPES_H__\n#define __LIBXFCE4PANEL_ENUM_TYPES_H__\n#include <glib-object.h>\nG_BEGIN_DECLS\n" \
  80. --fprod "/* enumerations from \"@filename@\" */\n" \
  81. --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define XFCE_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
  82. --ftail "G_END_DECLS\n\n#endif /* !__LIBXFCE4PANEL_ENUM_TYPES_H__ */" \
  83. $(libxfce4panel_headers) ) > $@
  84. libxfce4panel-enum-types.c: $(libxfce4panel_headers) Makefile
  85. $(AM_V_GEN) ( cd $(srcdir) && glib-mkenums \
  86. --fhead "#include <libxfce4panel/libxfce4panel-enums.h>\n#include <libxfce4panel/libxfce4panel-enum-types.h>\n#include <libxfce4panel/libxfce4panel-alias.h>" \
  87. --fprod "\n/* enumerations from \"@filename@\" */" \
  88. --vhead "GType\n@enum_name@_get_type (void)\n{\n\tstatic GType type = 0;\n\tif (type == 0) {\n\tstatic const G@Type@Value values[] = {"\
  89. --vprod "\t{ @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
  90. --vtail "\t{ 0, NULL, NULL }\n\t};\n\ttype = g_@type@_register_static (\"@EnumName@\", values);\n }\n\treturn type;\n}\n" \
  91. --ftail "\n#define __LIBXFCE4PANEL_ENUM_TYPES_C__\n#include <libxfce4panel/libxfce4panel-aliasdef.c>\n" \
  92. $(libxfce4panel_headers) ) > $@
  93. DISTCLEANFILES = \
  94. $(libxfce4panel_built_sources)
  95. BUILT_SOURCES = \
  96. $(libxfce4panel_built_sources)
  97. CLEANFILES = \
  98. actual-abi \
  99. expected-abi
  100. endif
  101. EXTRA_DIST = \
  102. abicheck.sh \
  103. libxfce4panel.symbols \
  104. libxfce4panel-alias.h \
  105. libxfce4panel-aliasdef.c \
  106. libxfce4panel-marshal.list \
  107. make-libxfce4panel-alias.pl
  108. if HAVE_GNUC_VISIBILITY
  109. TESTS = abicheck.sh
  110. endif
  111. # required for gtk-doc
  112. dist-hook: all
  113. # vi:set ts=8 sw=8 noet ai nocindent syntax=automake: