]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Merge branch 'ui-fixes'
[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         $(WARN_CFLAGS)                                  \
20         $(DISABLE_DEPRECATED)
21
22 BUILT_SOURCES =                                         \
23         empathy-enum-types.h                            \
24         empathy-enum-types.c
25
26 noinst_LTLIBRARIES = libempathy.la
27
28 libempathy_headers =                            \
29         action-chain-internal.h                 \
30         empathy-account-settings.h              \
31         empathy-auth-factory.h                  \
32         empathy-goa-auth-handler.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-contact-groups.h                \
40         empathy-contact-list.h                  \
41         empathy-contact-manager.h               \
42         empathy-contact.h                       \
43         empathy-debug.h                         \
44         empathy-ft-factory.h                    \
45         empathy-ft-handler.h                    \
46         empathy-gsettings.h                     \
47         empathy-presence-manager.h                              \
48         empathy-individual-manager.h            \
49         empathy-irc-network-manager.h           \
50         empathy-irc-network.h                   \
51         empathy-irc-server.h                    \
52         empathy-keyring.h                       \
53         empathy-location.h                      \
54         empathy-message.h                       \
55         empathy-request-util.h                  \
56         empathy-server-sasl-handler.h           \
57         empathy-server-tls-handler.h            \
58         empathy-status-presets.h                \
59         empathy-time.h                          \
60         empathy-tls-certificate.h               \
61         empathy-tls-verifier.h                  \
62         empathy-tp-chat.h                       \
63         empathy-tp-contact-factory.h            \
64         empathy-tp-contact-list.h               \
65         empathy-tp-file.h                       \
66         empathy-tp-roomlist.h                   \
67         empathy-tp-streamed-media.h             \
68         empathy-types.h                         \
69         empathy-utils.h
70
71 libempathy_handwritten_source =                         \
72         $(libempathy_headers)                           \
73         action-chain.c                                  \
74         empathy-account-settings.c                      \
75         empathy-auth-factory.c                          \
76         empathy-goa-auth-handler.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-contact-groups.c                        \
84         empathy-contact-list.c                          \
85         empathy-contact-manager.c                       \
86         empathy-contact.c                               \
87         empathy-debug.c                                 \
88         empathy-ft-factory.c                            \
89         empathy-ft-handler.c                            \
90         empathy-presence-manager.c                                      \
91         empathy-individual-manager.c                    \
92         empathy-irc-network-manager.c                   \
93         empathy-irc-network.c                           \
94         empathy-irc-server.c                            \
95         empathy-keyring.c                               \
96         empathy-message.c                               \
97         empathy-request-util.c                          \
98         empathy-server-sasl-handler.c                   \
99         empathy-server-tls-handler.c                    \
100         empathy-status-presets.c                        \
101         empathy-time.c                                  \
102         empathy-tls-certificate.c                       \
103         empathy-tls-verifier.c                          \
104         empathy-tp-chat.c                               \
105         empathy-tp-contact-factory.c                    \
106         empathy-tp-contact-list.c                       \
107         empathy-tp-file.c                               \
108         empathy-tp-roomlist.c                           \
109         empathy-tp-streamed-media.c                     \
110         empathy-utils.c
111
112 libempathy_la_SOURCES = \
113         $(libempathy_handwritten_source) \
114         cheese-camera-device-monitor.c cheese-camera-device-monitor.h
115
116 # do not distribute generated files
117 nodist_libempathy_la_SOURCES =\
118         $(BUILT_SOURCES)
119
120 libempathy_la_LIBADD =          \
121         $(top_builddir)/extensions/libemp-extensions.la \
122         $(top_builddir)/telepathy-yell/telepathy-yell/libtelepathy-yell.la \
123         $(GCR_LIBS) \
124         $(EMPATHY_LIBS) \
125         $(GEOCLUE_LIBS) \
126         $(GEOCODE_LIBS) \
127         $(NETWORK_MANAGER_LIBS) \
128         $(CONNMAN_LIBS) \
129         $(UDEV_LIBS) \
130         $(LIBM)
131
132 check_c_sources = \
133     $(libempathy_handwritten_source)
134 include $(top_srcdir)/tools/check-coding-style.mk
135 check-local: check-coding-style
136
137 empathy-enum-types.h: stamp-empathy-enum-types.h
138         $(AM_V_GEN)true
139 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
140         $(AM_V_GEN)(cd $(srcdir) \
141         && glib-mkenums \
142                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
143                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
144                         --fhead "#include <glib-object.h>\n\n" \
145                         --fhead "G_BEGIN_DECLS\n\n" \
146                         --ftail "G_END_DECLS\n\n" \
147                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
148                         --fprod "#include <libempathy/@filename@>\n" \
149                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
150                         --eprod "GType @enum_name@_get_type (void);\n" \
151                 $(libempathy_headers) ) > xgen-gth \
152         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
153         && rm -f xgen-gth \
154         && echo timestamp > $(@F)
155
156 empathy-enum-types.c: $(libempathy_headers) Makefile
157         $(AM_V_GEN)(cd $(srcdir) \
158         && glib-mkenums \
159                         --fhead "#include <config.h>\n" \
160                         --fhead "#include <glib-object.h>\n" \
161                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
162                         --fprod "\n/* enumerations from \"@filename@\" */" \
163                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
164                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
165                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
166                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
167                         --vtail "  static GType type = 0;\n\n" \
168                         --vtail "  if (!type)\n" \
169                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
170                         --vtail "  return type;\n}\n\n" \
171                 $(libempathy_headers) ) > xgen-gtc \
172         && cp xgen-gtc $(@F) \
173         && rm -f xgen-gtc
174
175 dtddir = $(datadir)/empathy
176 dtd_DATA =                                      \
177         empathy-status-presets.dtd              \
178         empathy-contact-groups.dtd              \
179         empathy-chatroom-manager.dtd            \
180         empathy-irc-networks.dtd
181
182 ircnetworksdir = $(datadir)/empathy
183 ircnetworks_DATA =              \
184         irc-networks.xml
185
186 EXTRA_DIST =                    \
187         $(dtd_DATA)             \
188         $(ircnetworks_DATA)
189
190 CLEANFILES =                            \
191         $(BUILT_SOURCES)                \
192         stamp-empathy-enum-types.h