]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
add EmpathyConnectionAggregator
[empathy.git] / libempathy / Makefile.am
1 include $(top_srcdir)/tools/flymake.mk
2
3 AM_CPPFLAGS =                                           \
4         $(ERROR_CFLAGS)                                 \
5         -I.                                             \
6         -I$(top_srcdir)                                 \
7         -I$(top_builddir)                               \
8         -DDATADIR=\""$(datadir)"\"                      \
9         -DLOCALEDIR=\""$(datadir)/locale"\"             \
10         -DG_LOG_DOMAIN=\"empathy\"                      \
11         -DGCR_API_SUBJECT_TO_CHANGE                     \
12         $(EMPATHY_CFLAGS)                               \
13         $(YELL_CFLAGS)                                  \
14         $(GEOCLUE_CFLAGS)                               \
15         $(GEOCODE_CFLAGS)                               \
16         $(NETWORK_MANAGER_CFLAGS)                       \
17         $(CONNMAN_CFLAGS)                               \
18         $(UDEV_CFLAGS)                                  \
19         $(GOA_CFLAGS)                                   \
20         $(WARN_CFLAGS)                                  \
21         $(DISABLE_DEPRECATED)
22
23 BUILT_SOURCES =                                         \
24         empathy-enum-types.h                            \
25         empathy-enum-types.c
26
27 noinst_LTLIBRARIES = libempathy.la
28
29 libempathy_headers =                            \
30         action-chain-internal.h                 \
31         empathy-account-settings.h              \
32         empathy-auth-factory.h                  \
33         empathy-camera-monitor.h                \
34         empathy-chatroom-manager.h              \
35         empathy-chatroom.h                      \
36         empathy-client-factory.h \
37         empathy-connection-managers.h           \
38         empathy-connectivity.h                  \
39         empathy-connection-aggregator.h         \
40         empathy-contact-groups.h                \
41         empathy-contact-list.h                  \
42         empathy-contact-manager.h               \
43         empathy-contact.h                       \
44         empathy-debug.h                         \
45         empathy-ft-factory.h                    \
46         empathy-ft-handler.h                    \
47         empathy-gsettings.h                     \
48         empathy-presence-manager.h                              \
49         empathy-individual-manager.h            \
50         empathy-irc-network-manager.h           \
51         empathy-irc-network.h                   \
52         empathy-irc-server.h                    \
53         empathy-keyring.h                       \
54         empathy-location.h                      \
55         empathy-message.h                       \
56         empathy-request-util.h                  \
57         empathy-server-sasl-handler.h           \
58         empathy-server-tls-handler.h            \
59         empathy-status-presets.h                \
60         empathy-time.h                          \
61         empathy-tls-certificate.h               \
62         empathy-tls-verifier.h                  \
63         empathy-tp-chat.h                       \
64         empathy-tp-contact-factory.h            \
65         empathy-tp-contact-list.h               \
66         empathy-tp-file.h                       \
67         empathy-tp-roomlist.h                   \
68         empathy-tp-streamed-media.h             \
69         empathy-types.h                         \
70         empathy-utils.h
71
72 libempathy_handwritten_source =                         \
73         $(libempathy_headers)                           \
74         action-chain.c                                  \
75         empathy-account-settings.c                      \
76         empathy-auth-factory.c                          \
77         empathy-camera-monitor.c                        \
78         empathy-chatroom-manager.c                      \
79         empathy-chatroom.c                              \
80         empathy-client-factory.c \
81         empathy-connection-managers.c                   \
82         empathy-connectivity.c                          \
83         empathy-connection-aggregator.c         \
84         empathy-contact-groups.c                        \
85         empathy-contact-list.c                          \
86         empathy-contact-manager.c                       \
87         empathy-contact.c                               \
88         empathy-debug.c                                 \
89         empathy-ft-factory.c                            \
90         empathy-ft-handler.c                            \
91         empathy-presence-manager.c                                      \
92         empathy-individual-manager.c                    \
93         empathy-irc-network-manager.c                   \
94         empathy-irc-network.c                           \
95         empathy-irc-server.c                            \
96         empathy-keyring.c                               \
97         empathy-message.c                               \
98         empathy-request-util.c                          \
99         empathy-server-sasl-handler.c                   \
100         empathy-server-tls-handler.c                    \
101         empathy-status-presets.c                        \
102         empathy-time.c                                  \
103         empathy-tls-certificate.c                       \
104         empathy-tls-verifier.c                          \
105         empathy-tp-chat.c                               \
106         empathy-tp-contact-factory.c                    \
107         empathy-tp-contact-list.c                       \
108         empathy-tp-file.c                               \
109         empathy-tp-roomlist.c                           \
110         empathy-tp-streamed-media.c                     \
111         empathy-utils.c
112
113 # these are sources that depend on GOA
114 goa_sources = \
115         empathy-goa-auth-handler.c \
116         empathy-goa-auth-handler.h \
117         $(NULL)
118
119 libempathy_la_SOURCES = \
120         $(libempathy_handwritten_source) \
121         cheese-camera-device-monitor.c cheese-camera-device-monitor.h
122
123 dtddir = $(datadir)/empathy
124 dtd_DATA =                                      \
125         empathy-status-presets.dtd              \
126         empathy-contact-groups.dtd              \
127         empathy-chatroom-manager.dtd            \
128         empathy-irc-networks.dtd
129
130 ircnetworksdir = $(datadir)/empathy
131 ircnetworks_DATA =              \
132         irc-networks.xml
133
134 EXTRA_DIST =                    \
135         $(dtd_DATA)             \
136         $(ircnetworks_DATA)
137
138 CLEANFILES =                            \
139         $(BUILT_SOURCES)                \
140         stamp-empathy-enum-types.h
141
142 if HAVE_GOA
143 libempathy_la_SOURCES += $(goa_sources)
144 else
145 EXTRA_DIST += $(goa_sources)
146 endif
147
148 # do not distribute generated files
149 nodist_libempathy_la_SOURCES =\
150         $(BUILT_SOURCES)
151
152 libempathy_la_LIBADD =          \
153         $(top_builddir)/extensions/libemp-extensions.la \
154         $(top_builddir)/telepathy-yell/telepathy-yell/libtelepathy-yell.la \
155         $(GCR_LIBS) \
156         $(EMPATHY_LIBS) \
157         $(GEOCLUE_LIBS) \
158         $(GEOCODE_LIBS) \
159         $(NETWORK_MANAGER_LIBS) \
160         $(CONNMAN_LIBS) \
161         $(UDEV_LIBS) \
162         $(GOA_LIBS) \
163         $(LIBM)
164
165 check_c_sources = \
166     $(libempathy_handwritten_source) \
167     $(goa_sources) \
168     $(NULL)
169
170 include $(top_srcdir)/tools/check-coding-style.mk
171 check-local: check-coding-style
172
173 empathy-enum-types.h: stamp-empathy-enum-types.h
174         $(AM_V_GEN)true
175 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
176         $(AM_V_GEN)(cd $(srcdir) \
177         && glib-mkenums \
178                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
179                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
180                         --fhead "#include <glib-object.h>\n\n" \
181                         --fhead "G_BEGIN_DECLS\n\n" \
182                         --ftail "G_END_DECLS\n\n" \
183                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
184                         --fprod "#include <libempathy/@filename@>\n" \
185                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
186                         --eprod "GType @enum_name@_get_type (void);\n" \
187                 $(libempathy_headers) ) > xgen-gth \
188         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
189         && rm -f xgen-gth \
190         && echo timestamp > $(@F)
191
192 empathy-enum-types.c: $(libempathy_headers) Makefile
193         $(AM_V_GEN)(cd $(srcdir) \
194         && glib-mkenums \
195                         --fhead "#include <config.h>\n" \
196                         --fhead "#include <glib-object.h>\n" \
197                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
198                         --fprod "\n/* enumerations from \"@filename@\" */" \
199                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
200                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
201                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
202                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
203                         --vtail "  static GType type = 0;\n\n" \
204                         --vtail "  if (!type)\n" \
205                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
206                         --vtail "  return type;\n}\n\n" \
207                 $(libempathy_headers) ) > xgen-gtc \
208         && cp xgen-gtc $(@F) \
209         && rm -f xgen-gtc