From 62ee0b445f49c66dd67a64f18690f67f8167ddf2 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sat, 2 Aug 2008 10:17:46 +0200 Subject: [PATCH] Added a Makefile.am for libmmanager/ and move the pkg-config spec file. --- libmmanager/Makefile.am | 138 +++++++++++++++++++++++++++++++++ {src => libmmanager}/libmmanager.pc.in | 0 2 files changed, 138 insertions(+) create mode 100644 libmmanager/Makefile.am rename {src => libmmanager}/libmmanager.pc.in (100%) diff --git a/libmmanager/Makefile.am b/libmmanager/Makefile.am new file mode 100644 index 0000000..f49ed4c --- /dev/null +++ b/libmmanager/Makefile.am @@ -0,0 +1,138 @@ +AM_CPPFLAGS = \ + -I. \ + -I$(top_srcdir) \ + -I$(top_builddir) + +AM_CFLAGS = \ + -Wall \ + -Werror \ + -g + +INCLUDES = \ + -DMMEDIAMANAGER_EXTENSIONDIR=\""$(libdir)/mmediamanager/extensions"\" + +lib_LTLIBRARIES = \ + libmmanager.la + +libmmanager_la_includedir=$(includedir)/libmmanager + +libmmanager_la_headers = \ + mm.h \ + mm-application.h \ + mm-dbus-application.h \ + mm-so-application.h \ + mm-application-provider.h \ + mm-category.h \ + mm-dbus-category.h \ + mm-so-category.h \ + mm-category-provider.h \ + mm-hit.h \ + mm-hit-collection.h \ + mm-hit-collection-provider.h \ + mm-manager.h \ + mm-module-manager.h \ + mm-filter.h \ + mm-attribute.h \ + mm-base-attributes.h \ + mm-filter-param.h \ + mm-attribute-manager.h \ + mm-attribute-base-manager.h \ + mm-module.h \ + mm-string-utils.h \ + mm-utils.h \ + mm-types.h \ + mm-error.h + +libmmanager_la_include_HEADERS = \ + $(libmmanager_la_headers) \ + mm-type-builtins.h + +libmmanager_la_SOURCES = \ + mm-application.c \ + mm-dbus-application.c \ + mm-so-application.c \ + mm-application-provider.c \ + mm-category.c \ + mm-dbus-category.c \ + mm-so-category.c \ + mm-category-provider.c \ + mm-hit.c \ + mm-hit-collection.c \ + mm-hit-collection-provider.c \ + mm-manager.c \ + mm-module.c \ + mm-module-manager.c \ + mm-type-builtins.c \ + mm-filter.c \ + mm-attribute.c \ + mm-filter-param.c \ + mm-attribute-manager.c \ + mm-string-utils.c \ + mm-utils.c \ + mm-attribute-base-manager.c + +libmmanager_la_CFLAGS = \ + $(MMEDIAMANAGER_CFLAGS) \ + $(DBUS_CFLAGS) + +libmmanager_la_LIBADD = \ + $(MMEDIAMANAGER_LIBS) \ + $(DBUS_LIBS) + +BUILT_SOURCES = \ + mm-type-builtins.c \ + mm-type-builtins.h + +stamp_files = \ + stamp-mm-type-builtins.c \ + stamp-mm-type-builtins.h + +mm-type-builtins.c: stamp-mm-type-builtins.c Makefile + @true +stamp-mm-type-builtins.c: Makefile $(libmmanager_la_headers) + $(GLIB_MKENUMS) \ + --fhead "#include \n\n" \ + --fhead "#include \"mm-type-builtins.h\"\n\n" \ + --fprod "\n/* enumerations from \"@filename@\" */" \ + --fprod "\n#include \"@filename@\"" \ + --vhead "GType\n@enum_name@_get_type (void)\n{\n" \ + --vhead " static GType type = 0;\n\n" \ + --vhead " if (G_UNLIKELY (type == 0))\n {\n" \ + --vhead " static const G@Type@Value _@enum_name@_values[] = {" \ + --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ + --vtail " { 0, NULL, NULL }\n };\n\n" \ + --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n }\n\n" \ + --vtail " return type;\n}\n\n" \ + $(libmmanager_la_headers) > xgen-$(@F) \ + && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \ + && rm -f xgen-$(@F) \ + && echo timestamp > $(@F) + +mm-type-builtins.h: stamp-mm-type-builtins.h Makefile + @true +stamp-mm-type-builtins.h: Makefile $(libmmanager_la_headers) + $(GLIB_MKENUMS) \ + --fhead "#ifndef __MM_TYPE_BUILTINS_H__\n" \ + --fhead "#define __MM_TYPE_BUILTINS_H__\n\n" \ + --fhead "#include \n\n" \ + --fhead "G_BEGIN_DECLS\n\n" \ + --ftail "G_END_DECLS\n\n" \ + --ftail "#endif /* __MM_TYPE_BUILTINS_H__ */\n" \ + --fprod "\n/* --- @filename@ --- */" \ + --eprod "#define MM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ + --eprod "GType @enum_name@_get_type (void);\n" \ + $(libmmanager_la_headers) > xgen-$(@F) \ + && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \ + && rm -f xgen-$(@F) \ + && echo timestamp > $(@F) + +CLEANFILES = $(stamp_files) $(BUILT_SOURCES) +DISTCLEANFILES = $(stamp_files) $(BUILT_SOURCES) +MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES) + +pkgconfigdir=$(libdir)/pkgconfig +pkgconfig_DATA=libmmanager.pc + +EXTRA_DIST = \ + libmmanager.pc.in + diff --git a/src/libmmanager.pc.in b/libmmanager/libmmanager.pc.in similarity index 100% rename from src/libmmanager.pc.in rename to libmmanager/libmmanager.pc.in -- 2.11.4.GIT