Split MMCategory into MMSoCategory and MMDBusCategory. The DBus one
[mmediamanager.git] / src / Makefile.am
blob18ff0cab24f09cb9ece979e258c2b68c4265919b
1 ## Process this file with automake to produce Makefile.in
3 AM_CPPFLAGS = \
4   -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
5   -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
6   -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
7   $(MMEDIAMANAGER_CFLAGS)
9 AM_CFLAGS =\
10   -Wall\
11   -Werror\
12   -g
13   
14 bin_PROGRAMS = \
15   mm-dbus-manager
17 lib_LTLIBRARIES = \
18   libmmanager.la
20 mm_dbus_manager_headers = \
21   mm-dbus-manager.h
23 mm_dbus_manager_SOURCES = \
24   mm-dbus-manager-main.c \
25   mm-dbus-manager.c \
26   mm-dbus-manager-type-builtins.c \
27   mm-dbus-manager-type-builtins.h \
28   $(mm_dbus_manager_headers)
30 mm_dbus_manager_INCLUDES = \
31   $(DBUS_CFLAGS)
33 mm_dbus_manager_LDADD = \
34   $(DBUS_LIBS)
36 libmmanager_includedir=$(includedir)/libmmanager
38 libmmanager_headers = \
39   mm.h \
40   mm-application.h \
41   mm-dbus-application.h \
42   mm-so-application.h \
43   mm-application-provider.h \
44   mm-category.h \
45   mm-dbus-category.h \
46   mm-so-category.h \
47   mm-category-provider.h \
48   mm-hit.h \
49   mm-hit-collection.h \
50   mm-hit-collection-provider.h \
51   mm-manager.h \
52   mm-module-manager.h \
53   mm-filter.h \
54   mm-attribute.h \
55   mm-base-attributes.h \
56   mm-filter-param.h \
57   mm-attribute-manager.h \
58   mm-attribute-base-manager.h \
59   mm-module.h \
60   mm-utils.h \
61   mm-types.h
63 libmmanager_include_HEADERS = \
64   $(libmmanager_headers) \
65   mm-type-builtins.h
67 libmmanager_la_SOURCES = \
68   mm-application.c \
69   mm-dbus-application.c \
70   mm-so-application.c \
71   mm-application-provider.c \
72   mm-category.c \
73   mm-dbus-category.c \
74   mm-so-category.c \
75   mm-category-provider.c \
76   mm-hit.c \
77   mm-hit-collection.c \
78   mm-hit-collection-provider.c \
79   mm-manager.c \
80   mm-module.c \
81   mm-module-manager.c \
82   mm-type-builtins.c \
83   mm-filter.c \
84   mm-attribute.c \
85   mm-filter-param.c \
86   mm-attribute-manager.c \
87   mm-utils.c \
88   mm-attribute-base-manager.c
90 BUILT_SOURCES = \
91   mm-type-builtins.c \
92   mm-type-builtins.h \
93   mm-dbus-manager-client-bindings.h \
94   mm-dbus-manager-server-bindings.h \
95   mm-dbus-manager-type-builtins.c \
96   mm-dbus-manager-type-builtins.h
98 stamp_files = \
99   stamp-mm-type-builtins.c \
100   stamp-mm-type-builtins.h \
101   stamp-mm-dbus-manager-client-bindings.h \
102   stamp-mm-dbus-manager-server-bindings.h \
103   stamp-mm-dbus-manager-type-builtins.c \
104   stamp-mm-dbus-manager-type-builtins.h
106 mm-type-builtins.c: stamp-mm-type-builtins.c Makefile
107         @true
108 stamp-mm-type-builtins.c: Makefile $(libmmanager_headers)
109         $(GLIB_MKENUMS) \
110                 --fhead "#include <config.h>\n\n" \
111                 --fhead "#include \"mm-type-builtins.h\"\n\n" \
112                 --fprod "\n/* enumerations from \"@filename@\" */" \
113                 --fprod "\n#include \"@filename@\"" \
114                 --vhead "GType\n@enum_name@_get_type (void)\n{\n" \
115                 --vhead "  static GType type = 0;\n\n" \
116                 --vhead "  if (G_UNLIKELY (type == 0))\n  {\n" \
117                 --vhead "    static const G@Type@Value _@enum_name@_values[] = {" \
118                 --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
119                 --vtail "      { 0, NULL, NULL }\n    };\n\n" \
120                 --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n  }\n\n" \
121                 --vtail "  return type;\n}\n\n" \
122                 $(libmmanager_headers) > xgen-$(@F) \
123         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
124         && rm -f xgen-$(@F) \
125         && echo timestamp > $(@F)
127 mm-type-builtins.h: stamp-mm-type-builtins.h Makefile
128         @true
129 stamp-mm-type-builtins.h: Makefile $(libmmanager_headers)
130         $(GLIB_MKENUMS) \
131                 --fhead "#ifndef __MM_TYPE_BUILTINS_H__\n" \
132                 --fhead "#define __MM_TYPE_BUILTINS_H__\n\n" \
133                 --fhead "#include <glib-object.h>\n\n" \
134                 --fhead "G_BEGIN_DECLS\n\n" \
135                 --ftail "G_END_DECLS\n\n" \
136                 --ftail "#endif /* __MM_TYPE_BUILTINS_H__ */\n" \
137                 --fprod "\n/* --- @filename@ --- */" \
138                 --eprod "#define MM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
139                 --eprod "GType @enum_name@_get_type (void);\n" \
140                 $(libmmanager_headers) > xgen-$(@F) \
141         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
142         && rm -f xgen-$(@F) \
143         && echo timestamp > $(@F)
144         
145 mm-dbus-manager-type-builtins.c: stamp-mm-dbus-manager-type-builtins.c Makefile
146         @true
147 stamp-mm-dbus-manager-type-builtins.c: Makefile $(mm_dbus_manager_headers)
148         $(GLIB_MKENUMS) \
149                 --fhead "#include <config.h>\n\n" \
150                 --fhead "#include \"mm-type-builtins.h\"\n\n" \
151                 --fprod "\n/* enumerations from \"@filename@\" */" \
152                 --fprod "\n#include \"@filename@\"" \
153                 --vhead "GType\n@enum_name@_get_type (void)\n{\n" \
154                 --vhead "  static GType type = 0;\n\n" \
155                 --vhead "  if (G_UNLIKELY (type == 0))\n  {\n" \
156                 --vhead "    static const G@Type@Value _@enum_name@_values[] = {" \
157                 --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
158                 --vtail "      { 0, NULL, NULL }\n    };\n\n" \
159                 --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n  }\n\n" \
160                 --vtail "  return type;\n}\n\n" \
161                 $(mm_dbus_manager_headers) > xgen-$(@F) \
162         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
163         && rm -f xgen-$(@F) \
164         && echo timestamp > $(@F)
166 mm-dbus-manager-type-builtins.h: stamp-mm-dbus-manager-type-builtins.h Makefile
167         @true
168 stamp-mm-dbus-manager-type-builtins.h: Makefile $(mm_dbus_manager_headers)
169         $(GLIB_MKENUMS) \
170                 --fhead "#ifndef __MM_TYPE_BUILTINS_H__\n" \
171                 --fhead "#define __MM_TYPE_BUILTINS_H__\n\n" \
172                 --fhead "#include <glib-object.h>\n\n" \
173                 --fhead "G_BEGIN_DECLS\n\n" \
174                 --ftail "G_END_DECLS\n\n" \
175                 --ftail "#endif /* __MM_TYPE_BUILTINS_H__ */\n" \
176                 --fprod "\n/* --- @filename@ --- */" \
177                 --eprod "#define MM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
178                 --eprod "GType @enum_name@_get_type (void);\n" \
179                 $(mm_dbus_manager_headers) > xgen-$(@F) \
180         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
181         && rm -f xgen-$(@F) \
182         && echo timestamp > $(@F)
184 mm-dbus-manager-server-bindings.h: stamp-mm-dbus-manager-server-bindings.h
185         @true
186 stamp-mm-dbus-manager-server-bindings.h: mm-dbus-manager-info.xml Makefile
187         $(DBUS_BINDING_TOOL) --prefix=mm_dbus_manager --mode=glib-server $< > xgen-$(@F) \
188         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
189         && rm -f xgen-$(@F) \
190         && echo timestamp > $(@F)
192 mm-dbus-manager-client-bindings.h: stamp-mm-dbus-manager-client-bindings.h
193         @true
194 stamp-mm-dbus-manager-client-bindings.h: mm-dbus-manager-info.xml Makefile
195         $(DBUS_BINDING_TOOL) --prefix=mm_dbus_manager --mode=glib-client $< > xgen-$(@F) \
196         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
197         && rm -f xgen-$(@F) \
198         && echo timestamp > $(@F)
200 CLEANFILES = $(stamp_files) $(BUILT_SOURCES)
201 DISTCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
202 MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
204 pkgconfigdir=$(libdir)/pkgconfig
205 pkgconfig_DATA=libmmanager.pc
207 EXTRA_DIST = \
208   libmmanager.pc.in \
209   mm-dbus-manager-info.xml