]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Move empathy-conf to libempathy-gtk. libempathy do not depend directly on gconf anymore.
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -DDATADIR=\""$(datadir)"\"                      \
5         $(LIBEMPATHY_CFLAGS)                            \
6         $(WARN_CFLAGS)
7
8 BUILT_SOURCES =                                         \
9         empathy-marshal.h                               \
10         empathy-marshal.c                               \
11         empathy-enum-types.h                            \
12         empathy-enum-types.c                            \
13         empathy-filter-glue.h                           \
14         empathy-chandler-glue.h
15
16 lib_LTLIBRARIES = libempathy.la
17
18 libempathy_la_SOURCES =                                 \
19         empathy-avatar.c                                \
20         empathy-time.c                                  \
21         empathy-presence.c                              \
22         empathy-status-presets.c                        \
23         empathy-debug.c                                 \
24         empathy-utils.c                                 \
25         empathy-message.c                               \
26         empathy-chatroom-manager.c                      \
27         empathy-chatroom.c                              \
28         empathy-contact.c                               \
29         empathy-contact-groups.c                        \
30         empathy-contact-list.c                          \
31         empathy-contact-manager.c                       \
32         empathy-contact-factory.c                       \
33         empathy-tp-contact-factory.c                    \
34         empathy-tp-group.c                              \
35         empathy-tp-contact-list.c                       \
36         empathy-tp-chat.c                               \
37         empathy-tp-chatroom.c                           \
38         empathy-tp-roomlist.c                           \
39         empathy-tp-call.c                               \
40         empathy-chandler.c                              \
41         empathy-filter.c                                \
42         empathy-idle.c                                  \
43         empathy-log-manager.c
44
45 # do not distribute generated files
46 nodist_libempathy_la_SOURCES =\
47         $(BUILT_SOURCES)
48
49 libempathy_la_LIBADD =          \
50         $(LIBEMPATHY_LIBS)
51
52 libempathy_la_LDFLAGS =         \
53         -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE}
54
55 libempathy_headers =                            \
56         empathy-avatar.h                        \
57         empathy-time.h                          \
58         empathy-presence.h                      \
59         empathy-status-presets.h                \
60         empathy-debug.h                         \
61         empathy-utils.h                         \
62         empathy-message.h                       \
63         empathy-chatroom-manager.h              \
64         empathy-chatroom.h                      \
65         empathy-contact.h                       \
66         empathy-contact-groups.h                \
67         empathy-contact-list.h                  \
68         empathy-contact-manager.h               \
69         empathy-contact-factory.h               \
70         empathy-tp-contact-factory.h            \
71         empathy-tp-group.h                      \
72         empathy-tp-contact-list.h               \
73         empathy-tp-chat.h                       \
74         empathy-tp-chatroom.h                   \
75         empathy-tp-roomlist.h                   \
76         empathy-tp-call.h                       \
77         empathy-chandler.h                      \
78         empathy-filter.h                        \
79         empathy-idle.h                          \
80         empathy-log-manager.h                   \
81         tp-stream-engine-gen.h
82
83 libempathy_includedir = $(includedir)/libempathy/
84 libempathy_include_HEADERS =                    \
85         $(libempathy_headers)                   \
86         empathy-enum-types.h
87
88 %-marshal.h: %-marshal.list Makefile
89         $(GLIB_GENMARSHAL) --header --prefix=$(subst -,_,$*)_marshal $< > $*-marshal.h
90
91 %-marshal.c: %-marshal.list Makefile
92         echo "#include \"empathy-marshal.h\"" > $@ && \
93         $(GLIB_GENMARSHAL) --body --prefix=$(subst -,_,$*)_marshal $< >> $*-marshal.c
94
95 empathy-chandler-glue.h: empathy-chandler.xml Makefile
96         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_chandler --mode=glib-server --output=$@ $<
97 empathy-filter-glue.h: empathy-filter.xml Makefile
98         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=empathy_filter --mode=glib-server --output=$@ $<
99
100 tp-stream-engine-gen.h: tp-stream-engine.xml Makefile.am
101         $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=tp_stream_engine --mode=glib-client --output=$@ $<
102
103
104 empathy-enum-types.h: stamp-empathy-enum-types.h
105         @true
106 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
107         (cd $(srcdir) \
108         && glib-mkenums \
109                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
110                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
111                         --fhead "#include <glib-object.h>\n\n" \
112                         --fhead "G_BEGIN_DECLS\n\n" \
113                         --ftail "G_END_DECLS\n\n" \
114                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
115                         --fprod "#include <libempathy/@filename@>\n" \
116                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
117                         --eprod "GType @enum_name@_get_type (void);\n" \
118                 $(libempathy_headers) ) > xgen-gth \
119         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
120         && rm -f xgen-gth \
121         && echo timestamp > $(@F)
122
123 empathy-enum-types.c: $(libempathy_headers) Makefile
124         (cd $(srcdir) \
125         && glib-mkenums \
126                         --fhead "#include <config.h>\n" \
127                         --fhead "#include <glib-object.h>\n" \
128                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
129                         --fprod "\n/* enumerations from \"@filename@\" */" \
130                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
131                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
132                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
133                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
134                         --vtail "  static GType type = 0;\n\n" \
135                         --vtail "  if (!type)\n" \
136                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
137                         --vtail "  return type;\n}\n\n" \
138                 $(libempathy_headers) ) > xgen-gtc \
139         && cp xgen-gtc $(@F) \
140         && rm -f xgen-gtc
141
142 dtddir = $(datadir)/empathy
143 dtd_DATA =                                      \
144         empathy-status-presets.dtd              \
145         empathy-contact-groups.dtd              \
146         empathy-chatroom-manager.dtd
147
148 stylesheetdir = $(datadir)/empathy
149 stylesheet_DATA =               \
150         empathy-log-manager.xsl
151
152 pkgconfigdir = $(libdir)/pkgconfig
153 pkgconfig_DATA = libempathy.pc
154
155 EXTRA_DIST =                    \
156         empathy-marshal.list    \
157         empathy-chandler.xml    \
158         empathy-filter.xml      \
159         tp-stream-engine.xml    \
160         $(stylesheet_DATA)      \
161         $(dtd_DATA)
162
163 CLEANFILES =                            \
164         $(BUILT_SOURCES)                \
165         stamp-empathy-enum-types.h