Split MMApplication into MMSoApplication and a base implementation. This
[mmediamanager.git] / src / Makefile.am
blob4b44d3f248c1fc18f24e689c0a4189abd7078141
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-so-application.h \
42   mm-application-provider.h \
43   mm-category.h \
44   mm-category-provider.h \
45   mm-hit.h \
46   mm-hit-collection.h \
47   mm-hit-collection-provider.h \
48   mm-manager.h \
49   mm-module-manager.h \
50   mm-filter.h \
51   mm-attribute.h \
52   mm-base-attributes.h \
53   mm-filter-param.h \
54   mm-attribute-manager.h \
55   mm-attribute-base-manager.h \
56   mm-module.h \
57   mm-utils.h \
58   mm-types.h
60 libmmanager_include_HEADERS = \
61   $(libmmanager_headers) \
62   mm-type-builtins.h
64 libmmanager_la_SOURCES = \
65   mm-application.c \
66   mm-so-application.c \
67   mm-application-provider.c \
68   mm-category.c \
69   mm-category-provider.c \
70   mm-hit.c \
71   mm-hit-collection.c \
72   mm-hit-collection-provider.c \
73   mm-manager.c \
74   mm-module.c \
75   mm-module-manager.c \
76   mm-type-builtins.c \
77   mm-filter.c \
78   mm-attribute.c \
79   mm-filter-param.c \
80   mm-attribute-manager.c \
81   mm-utils.c \
82   mm-attribute-base-manager.c
84 BUILT_SOURCES = \
85   mm-type-builtins.c \
86   mm-type-builtins.h \
87   mm-dbus-manager-client-bindings.h \
88   mm-dbus-manager-server-bindings.h \
89   mm-dbus-manager-type-builtins.c \
90   mm-dbus-manager-type-builtins.h
92 stamp_files = \
93   stamp-mm-type-builtins.c \
94   stamp-mm-type-builtins.h \
95   stamp-mm-dbus-manager-client-bindings.h \
96   stamp-mm-dbus-manager-server-bindings.h \
97   stamp-mm-dbus-manager-type-builtins.c \
98   stamp-mm-dbus-manager-type-builtins.h
100 mm-type-builtins.c: stamp-mm-type-builtins.c Makefile
101         @true
102 stamp-mm-type-builtins.c: Makefile $(libmmanager_headers)
103         $(GLIB_MKENUMS) \
104                 --fhead "#include <config.h>\n\n" \
105                 --fhead "#include \"mm-type-builtins.h\"\n\n" \
106                 --fprod "\n/* enumerations from \"@filename@\" */" \
107                 --fprod "\n#include \"@filename@\"" \
108                 --vhead "GType\n@enum_name@_get_type (void)\n{\n" \
109                 --vhead "  static GType type = 0;\n\n" \
110                 --vhead "  if (G_UNLIKELY (type == 0))\n  {\n" \
111                 --vhead "    static const G@Type@Value _@enum_name@_values[] = {" \
112                 --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
113                 --vtail "      { 0, NULL, NULL }\n    };\n\n" \
114                 --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n  }\n\n" \
115                 --vtail "  return type;\n}\n\n" \
116                 $(libmmanager_headers) > xgen-$(@F) \
117         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
118         && rm -f xgen-$(@F) \
119         && echo timestamp > $(@F)
121 mm-type-builtins.h: stamp-mm-type-builtins.h Makefile
122         @true
123 stamp-mm-type-builtins.h: Makefile $(libmmanager_headers)
124         $(GLIB_MKENUMS) \
125                 --fhead "#ifndef __MM_TYPE_BUILTINS_H__\n" \
126                 --fhead "#define __MM_TYPE_BUILTINS_H__\n\n" \
127                 --fhead "#include <glib-object.h>\n\n" \
128                 --fhead "G_BEGIN_DECLS\n\n" \
129                 --ftail "G_END_DECLS\n\n" \
130                 --ftail "#endif /* __MM_TYPE_BUILTINS_H__ */\n" \
131                 --fprod "\n/* --- @filename@ --- */" \
132                 --eprod "#define MM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
133                 --eprod "GType @enum_name@_get_type (void);\n" \
134                 $(libmmanager_headers) > xgen-$(@F) \
135         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
136         && rm -f xgen-$(@F) \
137         && echo timestamp > $(@F)
138         
139 mm-dbus-manager-type-builtins.c: stamp-mm-dbus-manager-type-builtins.c Makefile
140         @true
141 stamp-mm-dbus-manager-type-builtins.c: Makefile $(mm_dbus_manager_headers)
142         $(GLIB_MKENUMS) \
143                 --fhead "#include <config.h>\n\n" \
144                 --fhead "#include \"mm-type-builtins.h\"\n\n" \
145                 --fprod "\n/* enumerations from \"@filename@\" */" \
146                 --fprod "\n#include \"@filename@\"" \
147                 --vhead "GType\n@enum_name@_get_type (void)\n{\n" \
148                 --vhead "  static GType type = 0;\n\n" \
149                 --vhead "  if (G_UNLIKELY (type == 0))\n  {\n" \
150                 --vhead "    static const G@Type@Value _@enum_name@_values[] = {" \
151                 --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
152                 --vtail "      { 0, NULL, NULL }\n    };\n\n" \
153                 --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n  }\n\n" \
154                 --vtail "  return type;\n}\n\n" \
155                 $(mm_dbus_manager_headers) > xgen-$(@F) \
156         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
157         && rm -f xgen-$(@F) \
158         && echo timestamp > $(@F)
160 mm-dbus-manager-type-builtins.h: stamp-mm-dbus-manager-type-builtins.h Makefile
161         @true
162 stamp-mm-dbus-manager-type-builtins.h: Makefile $(mm_dbus_manager_headers)
163         $(GLIB_MKENUMS) \
164                 --fhead "#ifndef __MM_TYPE_BUILTINS_H__\n" \
165                 --fhead "#define __MM_TYPE_BUILTINS_H__\n\n" \
166                 --fhead "#include <glib-object.h>\n\n" \
167                 --fhead "G_BEGIN_DECLS\n\n" \
168                 --ftail "G_END_DECLS\n\n" \
169                 --ftail "#endif /* __MM_TYPE_BUILTINS_H__ */\n" \
170                 --fprod "\n/* --- @filename@ --- */" \
171                 --eprod "#define MM_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
172                 --eprod "GType @enum_name@_get_type (void);\n" \
173                 $(mm_dbus_manager_headers) > xgen-$(@F) \
174         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
175         && rm -f xgen-$(@F) \
176         && echo timestamp > $(@F)
178 mm-dbus-manager-server-bindings.h: stamp-mm-dbus-manager-server-bindings.h
179         @true
180 stamp-mm-dbus-manager-server-bindings.h: mm-dbus-manager-info.xml Makefile
181         $(DBUS_BINDING_TOOL) --prefix=mm_dbus_manager --mode=glib-server $< > xgen-$(@F) \
182         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
183         && rm -f xgen-$(@F) \
184         && echo timestamp > $(@F)
186 mm-dbus-manager-client-bindings.h: stamp-mm-dbus-manager-client-bindings.h
187         @true
188 stamp-mm-dbus-manager-client-bindings.h: mm-dbus-manager-info.xml Makefile
189         $(DBUS_BINDING_TOOL) --prefix=mm_dbus_manager --mode=glib-client $< > xgen-$(@F) \
190         && ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
191         && rm -f xgen-$(@F) \
192         && echo timestamp > $(@F)
194 CLEANFILES = $(stamp_files) $(BUILT_SOURCES)
195 DISTCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
196 MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES)
198 pkgconfigdir=$(libdir)/pkgconfig
199 pkgconfig_DATA=libmmanager.pc
201 EXTRA_DIST = \
202   libmmanager.pc.in \
203   mm-dbus-manager-info.xml