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