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