12 -DMMEDIAMANAGER_EXTENSIONDIR=\""$(libdir)/mmediamanager/extensions"\"
17 libmmanager_la_includedir=$(includedir)/libmmanager
19 libmmanager_la_headers = \
22 mm-dbus-application.h \
24 mm-application-provider.h \
28 mm-category-provider.h \
31 mm-hit-collection-provider.h \
36 mm-base-attributes.h \
38 mm-attribute-manager.h \
39 mm-attribute-base-manager.h \
46 libmmanager_la_include_HEADERS = \
47 $(libmmanager_la_headers) \
50 libmmanager_la_SOURCES = \
52 mm-dbus-application.c \
54 mm-application-provider.c \
58 mm-category-provider.c \
61 mm-hit-collection-provider.c \
69 mm-attribute-manager.c \
72 mm-attribute-base-manager.c
74 libmmanager_la_CFLAGS = \
75 $(MMEDIAMANAGER_CFLAGS) \
78 libmmanager_la_LIBADD = \
79 $(MMEDIAMANAGER_LIBS) \
87 stamp-mm-type-builtins.c \
88 stamp-mm-type-builtins.h
90 mm-type-builtins.c: stamp-mm-type-builtins.c Makefile
92 stamp-mm-type-builtins.c: Makefile $(libmmanager_la_headers)
94 --fhead "#include <config.h>\n\n" \
95 --fhead "#include \"mm-type-builtins.h\"\n\n" \
96 --fprod "\n/* enumerations from \"@filename@\" */" \
97 --fprod "\n#include \"@filename@\"" \
98 --vhead "GType\n@enum_name@_get_type (void)\n{\n" \
99 --vhead " static GType type = 0;\n\n" \
100 --vhead " if (G_UNLIKELY (type == 0))\n {\n" \
101 --vhead " static const G@Type@Value _@enum_name@_values[] = {" \
102 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
103 --vtail " { 0, NULL, NULL }\n };\n\n" \
104 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n }\n\n" \
105 --vtail " return type;\n}\n\n" \
106 $(libmmanager_la_headers) > xgen-$(@F) \
107 && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
108 && rm -f xgen-$(@F) \
109 && echo timestamp > $(@F)
111 mm-type-builtins.h: stamp-mm-type-builtins.h Makefile
113 stamp-mm-type-builtins.h: Makefile $(libmmanager_la_headers)
115 --fhead "#ifndef __MM_TYPE_BUILTINS_H__\n" \
116 --fhead "#define __MM_TYPE_BUILTINS_H__\n\n" \
117 --fhead "#include <glib-object.h>\n\n" \
118 --fhead "G_BEGIN_DECLS\n\n" \
119 --ftail "G_END_DECLS\n\n" \
120 --ftail "#endif /* __MM_TYPE_BUILTINS_H__ */\n" \
121 --fprod "\n/* --- @filename@ --- */" \
122 --eprod "#define MM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
123 --eprod "GType @enum_name@_get_type (void);\n" \
124 $(libmmanager_la_headers) > xgen-$(@F) \
125 && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
126 && rm -f xgen-$(@F) \
127 && echo timestamp > $(@F)
129 CLEANFILES = $(stamp_files) $(BUILT_SOURCES)
130 DISTCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
131 MAINTAINERCLEANFILES = \
137 pkgconfigdir=$(libdir)/pkgconfig
138 pkgconfig_DATA=libmmanager.pc